コード例 #1
0
ファイル: _functions.php プロジェクト: pioytazsko/drell
function prepare_text_send($email, $table, $reply)
{
    global $REQUEST_URI, $HTTP_HOST, $pt_l_name, $pt_l;
    $filename = "";
    $j = 0;
    for ($i = 1; $i <= 500; $i++) {
        if ($pt_l_name[$i]) {
            $filename[$j][0] = $pt_l_name[$i];
            $filename[$j][1] = $pt_l[$i];
            $j++;
        }
    }
    $from = ereg_replace("www\\.", "feedback@", $HTTP_HOST);
    if ($reply) {
        $reply = $pt_l[$reply] ? $pt_l[$reply] : $from;
    } else {
        $reply = $from;
    }
    //mail($email, $HTTP_HOST, convert_cyr_string($table, "w", "k") , "From: ".$from." \n".$reply."MIME-Version: 1.0\nContent-Type: text/html;\n	charset=\"koi8-r\"\nContent-Transfer-Encoding: 7bit\n");
    XMail($reply, $email, $HTTP_HOST, convert_cyr_string($table, "w", "k"), $filename);
}
コード例 #2
0
ファイル: _bfunctions.php プロジェクト: pioytazsko/drell
function prepare_text_send($email, $table, $reply)
{
    global $REQUEST_URI, $HTTP_HOST, $pt_l_name, $pt_l;
    $filename = "";
    $j = 0;
    for ($i = 1; $i <= 500; $i++) {
        if ($pt_l_name[$i]) {
            $filename[$j][0] = $pt_l_name[$i];
            $filename[$j][1] = $pt_l[$i];
            $j++;
        }
    }
    $from = ereg_replace("www\\.", "feedback@", $HTTP_HOST);
    if ($reply) {
        $reply = $pt_l[$reply] ? $pt_l[$reply] : $from;
    } else {
        $reply = $from;
    }
    //mail($email, $HTTP_HOST, convert_cyr_string($table, "w", "k") , "From: ".$from." \n".$reply."MIME-Version: 1.0\nContent-Type: text/html;\n	charset=\"koi8-r\"\nContent-Transfer-Encoding: 7bit\n");
    $v = ereg_replace(".*value='([^']+)'.*", "\\1", $table);
    $v = ereg_replace("&qout;", "\"", $v);
    $v = ereg_replace("&lt;", "<", $v);
    $v = ereg_replace("&gt;", ">", $v);
    $table = ereg_replace("'>", "", $table);
    $table = ereg_replace("<input[^]+", "", $table);
    $table = $v . $table;
    //echo "------------------------".$table;
    //echo $email;
    //XMail("*****@*****.**","*****@*****.**",$HTTP_HOST,$table,$filename);
    //.
    $equery = "SELECT * FROM mail WHERE 1";
    //echo $equery;
    $e_res = mysql_query($equery);
    while ($res_email = mysql_fetch_assoc($e_res)) {
        XMail("*****@*****.**", trim($res_email['mail']), $HTTP_HOST, $table, $filename);
    }
}
コード例 #3
0
    }
    $document->setValue('doc_osn_others', $doc_osn_others);
    //
    //-------------------------------------------------------------------------------------
    $name_of_file = 'files/' . time() . 'dogovor_full.docx';
    setcookie('name_of_doc', $name_of_file);
    $document->save($name_of_file);
    // Сохранение документа
}
// ----------------------------------------------------------------------------------------
// Отправка копии документа на почту
$from = '>Jera<';
$to = $_POST['email'];
$subj = 'Electronic dogovor';
$text = 'Congratz, you have file';
XMail($from, $to, $subj, $text, $name_of_file);
// ----------------------------------------------------------------------------------------
// Отправка данных на сервис хранения почты
include 'send_email_to_db.php';
send_email_to_db($to);
// ----------------------------------------------------------------------------------------
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Конструктор договоров купли-продажи квартиры</title>
    <!-- Bootstrap -->
コード例 #4
0
ファイル: exec.status.php プロジェクト: BillTheBest/1.6.x
     exit;
 }
 if ($argv[1] == "--amavis") {
     echo "\n" . amavis();
     exit;
 }
 if ($argv[1] == "--amavis-milter") {
     echo "\n" . amavis_milter();
     exit;
 }
 if ($argv[1] == "--amavisdb") {
     echo "\n" . amavisdb();
     exit;
 }
 if ($argv[1] == "--xmail") {
     XMail();
     exim4();
     exit;
 }
 if ($argv[1] == "--bwm-ng") {
     echo bwm_ng();
     exit;
 }
 if ($argv[1] == "--ntopng") {
     echo ntopng() . "\n" . redis_server() . "\n" . bwm_ng() . "\n";
     exit;
 }
 if ($argv[1] == "--load-stats") {
     $GLOBALS["VERBOSE"] = true;
     load_stats();
     exit;