InitUser()) { debug("Cannot init user",2); $shop->CloseDB(); exit(); } /* if($REQUEST_METHOD=="POST") { if(isset($_POST["feedb1"])) { if(!isset($_POST["_checkvalue"]) || !$_POST["_checkvalue"] || $_POST["_checkvalue"]!=$UserData["_checkvalue"]) { Header("Location: ".$SCRIPT_NAME); exit; } unset($UserData["_checkvalue"]); foreach($_POST['feedb1'] as $k=>$v) $UserData['feedb'][1][$k]=$v; $_f=&$UserData['feedb'][1]; if((!isset($_f['subject']) || $_f['subject']=="") && (!isset($_f['email']) || $_f['email']=="" || $_f['email']=="@")) $UserData['feedb']['errors'][]=_("Vyplňte povinné položky."); else if(isset($_f['telefon']) && trim($_f['telefon']) && !ereg('^[\+]?[0-9 ]{8}[0-9 ]+$',$_f['telefon'])) $UserData['feedb']['errors'][]=_("Špatně vyplněný \"telefon\"."); else if(isset($_f['email']) && trim($_f['email']) && $_f['email']!="@" && !check_email($_f['email'])) $UserData['feedb']['errors'][]=_("Špatně vyplněný \"e-mail\"."); if(isset($UserData['feedb']['errors'])) Header("Location: napiste.php?feedb=1"); else { $email_body=""; $email_subject=""; $email_from=""; foreach($_POST as $key => $val) { if(is_array($val)) { foreach($val as $key2 => $val2) { if(eregi("Content-Type:[[:space:]]+multipart",$val2)) die("chyba - pokus o rozesilani spamu !!!"); if($key2=="bcc" || eregi("bcc:[[:space:]]+(onemoreaddress@hotpop.com|battsl1005@aol.com)",$val2)) die("chyba - pokus o rozesilani spamu !!!"); if($key2[0]=="_") continue; $email_body.=urldecode($key2).": ".$val2."\n"; if(!$email_from && eregi("e[-]?mail",$key2)) $email_from=$val2; if(!$email_subject && eregi("subject",$key2)) $email_subject=$val2; } }else{ if(eregi("Content-Type:[[:space:]]+multipart",$val)) die("chyba - pokus o rozesilani spamu !!!"); if($key=="bcc" || eregi("bcc:[[:space:]]+(onemoreaddress@hotpop.com|battsl1005@aol.com)",$val)) die("chyba - pokus o rozesilani spamu !!!"); if($key[0]=="_") continue; $email_body.=urldecode($key).": ".$val."\n"; if(!$email_from && eregi("e[-]?mail",$key)) $email_from=$val; if(!$email_subject && eregi("subject",$key)) $email_subject=$val; } } if($email_from) $email_from=eregi_replace("^([^\r\n]+).*","\\1",$email_from); $mailer=new myPHPMailer(); $mailer->CharSet="utf-8"; if(mail($FEEDBACK_recipient, $mailer->EncodeHeader($FEEDBACK_subject.($email_subject?': '.$email_subject:'')), $mailer->EncodeString($email_body,'quoted-printable'), "From: Feedback <".$FEEDBACK_sender.">\n".($email_from?"Reply-to: ".$email_from."\n":""). "Return-Path: ".$FEEDBACK_recipient."\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: quoted-printable\n")) { unset($UserData['feedb']); Header("Location: napiste.php?feedb=2"); }else{ $UserData['feedb']['errors'][]=_("Neznámá chyba, odeslání selhalo."); Header("Location: napiste.php?feedb=1"); } } exit(); } if(isset($HTTP_REFERER)) Header("Location: ".$HTTP_REFERER); else Header("Location: ".$SCRIPT_NAME); exit(); }*/ $feedb=&$_GET["feedb"]; if(!isset($feedb)) $feedb=0; $shop->readCategories(); $shop->loadTemplateData(); $shop->createWoLinks(); $shop->createCatLinks(); $shop->createHeaderCodes(); $page_forum_no_php_flush = true; $TITLE=_("Diskuzní fórum"); include("inc/pages/_header.php"); include("inc/pages/diskuzni-forum.php"); include("inc/pages/_footer.php"); $shop->CloseDB(); exit(); ?>