PHP Kodu

<?php

error_reporting(E_ALL);

ini_set("display_errors", 1);

function temizle($metin) {

return addslashes(htmlspecialchars($metin));

}

if( !stristr($_SERVER["HTTP_REFERER"], "non-stopenglish.com") ) die("Olmadı be canım");

if( $_POST["email"] && $_POST["ad"] && $_POST["soyad"] && $_POST["telefon"] && $_POST["sehir"] && $_POST["Not"] ) {

$adsoyad = $_POST["ad"] . " " . $_POST["soyad"];


 

$Baglan = @mysql_connect("localhost", "crmnon_yeni", "115ve9fK") or die("Bağlanamadık");

@mysql_select_db("crmnon_yeni");



 

$Sorgu = "INSERT INTO toplu VALUES('', '"

.temizle($adsoyad) . "', '"

.temizle($_POST["email"]) . "', '"

.temizle($_POST["telefon"]) . "', '"

.temizle($_POST["sehir"]) . "', '"

.temizle($_POST["Not"]) . "', '"

.$_SERVER["HTTP_REFERER"] ."',"

."NOW(), 0 )";

@mysql_query($Sorgu) or die(mysql_error());

mysql_close();

ini_set("SMTP", "localhost");

$eol = "\r\n";

$headers  = 'MIME-Version: 1.0' .$eol;

$headers .= 'Content-type: text/html; charset=windows-1254'.$eol;

$headers .= 'From: Form Bilgisi <[email protected]>'.$eol;

$headers .= 'Reply-To: Form Bilgisi <[email protected]>'.$eol;

$headers .= 'Return-Path: [email protected]'.$eol;    // these two to set reply address

$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;

$headers .= "X-Mailer: PHP v".phpversion().$eol;          // These two to help avoid spam-filters  

$Gonderilecek = "Ad Soyad: ". $adsoyad . "<br>\n"

. "Telefon : ". $_POST["telefon"] . "<br>\n"

. "E-posta : ". $_POST["email"] . "<br>\n"

. "Sehir   : ". $_POST["sehir"] . "<br>\n"

. "Not     : ". $_POST["Not"] . "<br>\n";

// Yok sana posta mosta ;) // Yeni sistemin serefine ;)

mail( "[email protected]", "5 Gunde Ingilizce Formu: ". $adsoyad,$Gonderilecek, $headers);

}

if( $_POST["redirect"] )

header("Location: ". $_POST["redirect"]);

else

echo "<script type=\"text/javascript\"> history.back();</script>";

?>