"; exit; } else { if ($max_record_in_data_file != "0") { $f = file($data_file); rsort($f); $j = count($f); if ($j > $max_record_in_data_file) { $rf = fopen($data_file,"w"); if (strtoupper($os) == "UNIX") { if (flock($rf,LOCK_EX)) { for ($i=0; $i<$max_record_in_data_file; $i++) { fwrite($rf,$f[$i]); } flock($rf,LOCK_UN); } } else { for ($i=0; $i<$max_record_in_data_file; $i++) { fwrite($rf,$f[$i]); } } fclose($rf); } } } $newline = (strtoupper($os) == "WIN") ? "\r\n" : "\n"; switch ($do) { case "": $record = file($data_file); rsort($record); $jmlrec = count($record); $_SESSION['secc'] = strtoupper(substr(sha1(time().$admin_email),0,4)); if (!isset($_SESSION['add'])) $_SESSION['add'] = 0; if (!isset($_SESSION['name'])) $_SESSION['name'] = ""; if (!isset($_SESSION['email'])) $_SESSION['email'] = ""; if (!isset($_SESSION['comment'])) $_SESSION['comment'] = ""; //session_start(); ?>

Elérhetőség

E-mail: maestro@marcobianchi.tk
Honlap: marcobianchi.tk
TEL: +36 20 4530815


Üzenet Küdése / send message
Neve / name:
E-mail címe:
Üzenet / message:
70) $vname = substr($vname,0,70); if (strlen($vemail) > 100) $vemail = substr($vemail,0,100); $_SESSION['name'] = $vname; $_SESSION['email'] = $vemail; $_SESSION['comment'] = stripslashes($vcomment); if ($vname == "" || $vcomment == "" || $vemail == "") { input_err("Kihagyott néhány mezőt"); } if ($vemail != "" && !preg_match("/([\w\.\-]+)(\@[\w\.\-]+)(\.[a-z]{2,4})+/i", $vemail)) { input_err("Ismeretlen E-mail cím"); } $test_comment = preg_split("/[\s]+/",$vcomment); $jmltest = count($test_comment); for ($t=0; $t<$jmltest; $t++) { if (strlen(trim($test_comment[$t])) > 70) { input_err("Tiltott szó található az üzenetében : ".stripslashes($test_comment[$t])); } } if (isset($_SESSION['add']) && $_SESSION['add'] >= $max_entry_per_session) { input_err("Sajnálom, csak $max_entry_per_session üzenet küldhető egy alkalommal.",false); } elseif (!isset($_SESSION['add'])) { exit; } if ($vsecc != $_SESSION['secc'] && strtoupper($imgcode) == "YES") { input_err("Rossz ellenörző kód"); } $maxchar = 2000; if (strlen($vcomment) > $maxchar) $vcomment = substr($vcomment,0,$maxchar)."..."; $idx = date("YmdHis"); $tgl = date("F d, Y - h:i A"); $vname = str_replace("<","<",$vname); $vname = str_replace(">",">",$vname); $vname = str_replace("~","-",$vname); $vname = str_replace("\"",""",$vname); $vcomment = str_replace("<","<",$vcomment); $vcomment = str_replace(">",">",$vcomment); $vcomment = str_replace("|","",$vcomment); $vcomment = str_replace("\"",""",$vcomment); $vemail = str_replace("<","",$vemail); $vemail = str_replace(">","",$vemail); $vemail = str_replace("|","",$vemail); if (strtoupper($os) == "WIN") { $vcomment = str_replace($newline,"
",$vcomment); $vcomment = str_replace("\r","",$vcomment); $vcomment = str_replace("\n","",$vcomment); } else { $vcomment = str_replace($newline,"
",$vcomment); $vcomment = str_replace("\r","",$vcomment); } if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && eregi("^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$",$_SERVER['HTTP_X_FORWARDED_FOR'])) { $ipnum = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ipnum = getenv("REMOTE_ADDR"); } $newdata = "|~|$idx|~|$tgl|~|$vname|~|$vemail|~|$vcomment|~|$ipnum|~|"; $newdata = stripslashes($newdata); $newdata .= $newline; if (!is_spam($newdata)) { $tambah = fopen($data_file,"a"); if (strtoupper($os)=="UNIX") { if (flock($tambah,LOCK_EX)) { fwrite($tambah,$newdata); flock($tambah,LOCK_UN); } } else { fwrite($tambah,$newdata); } fclose($tambah); //-- levelkuldes if (strtoupper($notify) == "YES") { $msgtitle = "http://adamfoto.info - Üzenet az oldalon keresztül"; $vcomment = str_replace(""","\"",$vcomment); $vcomment = stripslashes($vcomment); $vcomment = str_replace("
","\n",$vcomment); $msgcontent = "Helyi Idő : $tgl\n\nÜzenet érkezett $vname-tól :\n----------------------------\n\n$vcomment\n\nE-mail: $vemail\n-----End Message-----"; @mail($admin_email,$msgtitle,$msgcontent,"From: $vemail\n"); redirsuccess($self,"Üzenet elküldve"); $_SESSION['name'] = ""; $_SESSION['email'] = ""; $_SESSION['comment'] = ""; } $_SESSION['name'] = ""; $_SESSION['email'] = ""; $_SESSION['comment'] = ""; } else { redir($self,"Sajnálom, nem küldheto el az üzenet."); } break; } function redir($target,$msg) { ?>

Elérhetőség>




Várjon...

Elérhetőség




Várjon...
Hiba !




Kattintson IDE és próbálja újra