Ejemplo n.º 1
0
function Login()
{
    if (!isset($_GET["login"]) or !isset($_GET["pass"])) {
        exit("Login or password not set");
    }
    $login = CleanString($_GET["login"]);
    $pass = CleanString($_GET["pass"]);
    $result = ExecQueryAndReturnResult("SELECT `Id` FROM `users` WHERE `Login` = '{$login}' and `Password` = '{$pass}' and `Banned` = 0");
    if (count($result) == 1) {
        session_start();
        $_SESSION['login_user'] = $result[0][0];
        echo "OK";
    } else {
        MailSmtp("*****@*****.**", "Test message", "Hi!");
        exit("Wrong password");
    }
}
Ejemplo n.º 2
0
$dataout = date('d.m.y');
$out = '<a href=file_send_mail.csv">результат отправки</a>';
$maillist = $_FILES['maillist']['tmp_name'];
print_r($_FILES);
$file = fopen($maillist, "r") or die("Warning!");
// открываем файл csv для чтения и работы с ним если не смогли пишем ошибку
$outfile = fopen("file_send_mail.csv", "w");
for ($i = 0; $info = fgetcsv($file, 1000, ";"); $i++) {
    // разбираем строки по переменным $site-адрес сайта, $to-почта
    list($site, $to) = $info;
    // загаловок с определение кодировки текста
    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=utf-8\r\n";
    $headers .= "To: {$to}\r\n";
    $headers .= "From: DataLife Engine <*****@*****.**>";
    // заголовок письма
    $subject = "Claim {$site}";
    // текст письма
    $message = "<b>Dear hosting (telecommunications) company.</b><br>\n<br>\nOn your servers or in your subnet hosted website <b>\"{$site}\"</b> , violate our copyrights.<br>\n<br>\nPlease take appropriate measures to address the site owner of copyright infringement, namely the site blocking to eliminate violations. You have the right to ask the client documents for the right placement of the content management system on the site.\nIt should be noted also that, in accordance with the legislation of the Russian Federation bears the burden of proving the circumstances of the party that they are referenced. That is, the site owner should provide you with supporting documents about the presence of a licensed version of the program; otherwise, without providing supporting evidence, it is believed that the owner of the website uses unlicensed content.<br>\n<br>\nThis site illegally used and / or distributed the original computer program «DataLife Engine» registered as an object of intellectual property Federal Service for Intellectual Property, Patents and Trademarks under {$fips} in the registry of the computer programs April 12, 2010 Exclusive rights to the Software belong to LLC \"SoftNyus Media Group\", according to the notice on state registration of the alienation of the exclusive right (№ RD0183156 from 04.10.2015). The official patent (contract on alienation), You can see in the open access to the link: http://www1.fips.ru/Archive/EVM/2015/2015.11.20/Index.htm, choose: Notice - PrEVM contract for the alienation - number {$fips}. This program is a content management system (CMS), is running on the specified sites.<br>\n<br>\nPlease be informed that Art. 1253.1 of the Civil Code establishes liability information broker (Hosting Service Provider) for failure to take the necessary and sufficient measures to stop the violation of intellectual property rights, after receiving the application owner for violation of intellectual property rights with an indication of the site and (or) network address in the network \"Internet\".\nBased on the above, please take proactive measures to eliminate violations of the law, up to block the site.<br>\n<br>\nBelow is the text of a letter sent by the administrator of the site on which the elimination of violations of copyright law was not followed. Text of the letter:<br>\n<i>“Dear Sirs,\nYour site is based on a computer program «DataLife Engine». Maybe you do not know, but this program is copyrighted and protected by Russian and international legislation, registered as an object of intellectual property Federal Service for Intellectual Property, Patents and Trademarks under {$fips} in the registry of the computer programs April 12, 2010 Exclusive rights to the Software belong to LLC \"SoftNyus Media Group,\" according to the notice on state registration of the alienation of the exclusive right (№ RD0183156 from 04.10.2015).\nIn connection with the amendments of 01/05/2015 which entered the Federal Law № 149-FZ \"On information, information technologies and information protection\" we have the right to go to court to block your site because of illegal use of computer programs (the use of unlicensed software version) .\nBased on this, we invite you to resolve this situation in the pre-trial order with minimal cost on your part.\nBased on this, we ask you to stop infringement of intellectual property rights, namely, use licensed version of the computer software program «DataLife Engine». To do this you need to pay a license on our {$buy} , which costs 3990 rub.\nAfter payment, please, inform us on e-mail: legacy@dle-news.ru that you have purchased a license for the Program, specifying the domain and account on {$dle} for which you purchased the Program. It is necessary to remove your address from the database of illegal copies.\nWe hope for your understanding and stop of copyright infringement.\nAlso, the use of illegal copies of our programs can pose a substantial threat to the security of your site and lead to unauthorized access to your site and its malicious user since very often in the distribution downloaded is not officially intruders entered various backdoor, allowing to carry out unauthorized access to the site.\nOtherwise, discharging is distributed by fourteen (14) days, we're going to stop the illegal use of your computer programs «DataLife Engine» and for this we will:\n1. we will ask the hosting provider to shut down your site\n2. we will be forced to use judicial measures of protection\nIf you have any questions, you can contact our email {$mailto}.\nIt should be noted that the use of illegal copies of our program is not only a violation of our rights and laws of the Russian Federation, but also can be a significant threat to the security of your site and lead to unauthorized access to your website by hackers and hacking, as very often in the distribution downloaded is not officially introduced various backdoor by attackers, allowing to carry out unauthorized access to the site.”</i><br>\n<br>\nWe hope for your understanding.<br>\n<br>\nSincerely,<br>\nThe administration of \"SoftNews Media Group\"\n";
    // подключаем ранее упомянутый файл с функцией MailSmtp
    require_once "smtp.php";
    MailSmtp($to, $subject, $message, $headers);
    //echo "$message";
    echo "Ваше сообщение для {$site} отправленно в {$time} <br><br>";
    fputcsv($outfile, array($site, $to, $dataout, $time), ";");
    // делаем паузу в цикле для уменьшения запросов на smtp сервер
    sleep(2);
}
fclose($file);
fclose($outfile);
//echo $out;
Ejemplo n.º 3
0
<?php

include "smtp.php";
header("Content-Type: text/html; charset=utf-8");
$backurl = "http://stolar.by";
$problem = htmlspecialchars($_POST['problem']);
$name = htmlspecialchars($_POST['name']);
$email_address = htmlspecialchars($_POST['email']);
$phone = htmlspecialchars($_POST['phone']);
$message = htmlspecialchars($_POST['message']);
// Create the email and send the message
$to = '*****@*****.**';
// Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
$email_subject = "Форма заказа:  {$name}";
$email_body = "Вы получили новое сообщение с сайта.\n\n" . "Вот детали:\n\nПроблема: {$problem}\n\nИмя: {$problem}\n\nEmail: {$email_address}\n\nPhone: {$phone}\n\nПолное сообщение:\n{$message}";
$headers = "From: noreply@stolar.com\n";
// This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers .= "Reply-To: {$email_address}";
MailSmtp($to, $email_subject, $email_body, $headers);
//return true;
print "\n<script language='javascript'>\n    function reload() {location = \"{$backurl}?su=t\"}; reload();\n</script>\n";