Exemplo n.º 1
0
function remote_upload($n, $f)
{
    global $xpl, $url;
    echo "\n[-] Remote File Upload";
    if (is_forbidden($url)) {
        die("\n[!] Error - The /client/ directory is forbidden\n");
    }
    $code = file_get_contents($f);
    $form = array(frmdt_url => $url . 'admin/photo_rubrique.php', 'action' => 'ajouter', 'rubid' => $n, 'photo1' => array(frmdt_filename => $f, frmdt_type => 'image/jpeg', frmdt_content => $code));
    if ($xpl->formdata($form) && $code) {
        echo "\n[!] Done - Now go on {$url}/client/gfx/photos/rubrique";
    } else {
        die("\n[!] Error - Maybe the id isn't good\n");
    }
}
Exemplo n.º 2
0
        echo "\\n\n\\r</textarea><br>Click back on your browser, remove the above characters and try again.\n        </b><br><br><br><br>Thankfully protected by phpFormMailer freely available from:\n        <a href=\"http://thedemosite.co.uk/phpformmailer/\">http://thedemosite.co.uk/phpformmailer/</a>";
        exit;
    } else {
        return $str;
    }
}
// ***********************以下是接收表單資料的程式碼**************************************************
/*文字欄位*/
$con_name = $_POST["con_name"];
$con_tel = $_POST["con_tel"];
$con_fax = $_POST["con_fax"];
$con_address = $_POST["con_address"];
$con_title = $_POST["con_title"];
$con_email = is_forbidden($_POST["con_email"]);
/*E-mail專用*/
$con_message = is_forbidden($_POST["con_message"], false);
$thesubject = "這是大湧木構造工程網站來的名單";
//信件主旨
// ***********************以上是接收表單資料的程式碼**************************************************
//*******************************下面是呈現信件裡欄位的程式碼*****************************************
$themessage = " 公司名稱:{$con_title} \n 聯絡人:{$con_name} \n 電話:{$con_tel} \n 手機:{$con_fax} \n 地址:{$con_address} \n E-MAIL:{$con_email} \n 內容:{$con_message} \n ";
//*******************************上面是呈現信件裡欄位的程式碼*****************************************
/*			   
echo "<script>";
echo "alert(\"$replyemail\");";			   
echo "</script>";	   
*/
mb_send_mail("{$replyemail}", "{$thesubject}", "{$themessage}", "From: {$replyemail}");
echo "<script>";
echo "alert(\"感謝您的填寫\");";
echo "location.href = \"http://www.greenbuildingwood.com/trans/form.htm\";";
Exemplo n.º 3
0
    }
    if ($forbidden) {
        echo "<font color=red><center><h3>STOP! Message not sent.</font></h3><br><b>\n        The text you entered is forbidden, it includes one or more of the following:\n        <br><textarea rows=9 cols=25>";
        foreach ($patterns as $key => $value) {
            echo $value . "\n";
        }
        echo "\\n\n\\r</textarea><br>Click back on your browser, remove the above characters and try again.\n        </b><br><br><br><br>Thankfully protected by phpFormMailer freely available from:\n        <a href=\"http://thedemosite.co.uk/phpformmailer/\">http://thedemosite.co.uk/phpformmailer/</a>";
        exit;
    } else {
        return $str;
    }
}
$name = is_forbidden($_POST["name"]);
$email = is_forbidden($_POST["email"]);
$thesubject = is_forbidden($_POST["thesubject"]);
$themessage = is_forbidden($_POST["themessage"], false);
console . log($themessage);
$success_sent_msg = '<p align="center"><strong>&nbsp;</strong></p>
                   <p align="center"><strong>Your message has been successfully sent to us<br>
                   </strong> and we will reply as soon as possible.</p>
                   <p align="center">A copy of your query has been sent to you.</p>
                   <p align="center">Thank you for contacting us.</p>
				   <p align="center"<a href="index.html">Click here to return to the Custom Built Cabinetry site...</a></p>';
$replymessage = "Hi {$name}\n\nThank you for your email.\n\nWe will endeavour to reply to you shortly.\n\nPlease DO NOT reply to this email.\n\nBelow is a copy of the message you submitted:\n--------------------------------------------------\nSubject: {$thesubject}\nQuery:\n{$themessage}\n--------------------------------------------------\n\nThank you";
$themessage = "name: {$name} \nEmail: {$email} \nPhone: {$phone} \nQuery: {$themessage}";
mail("{$replyemail}", "Custom Built Cabinetry Inquiry...", "{$themessage}", "From: {$email}\nReply-To: {$email}");
mail("{$email}", "Receipt: {$thesubject}", "{$replymessage}", "From: {$replyemail}\nReply-To: {$replyemail}");
echo $success_sent_msg;
/*
  PHP Form Mailer - phpFormMailer (easy to use and more secure than many cgi form mailers)
   FREE from: