I'], '.htmlen') !== false) { $_SESSION['language']='en'; header("Location: " . str_replace('.htmlen', '.html', $_SERVER['REQUEST_URI']), TRUE, 301); } exit; } $begintime=microtime(true); @$whatpage = preg_replace("/[^a-z0-9-_]/i","",$_REQUEST['whatpage']); @$catpage = preg_replace("/[^a-z0-9-_]/i","",$_REQUEST['catpage']); @$subcatpage = preg_replace("/[^a-z0-9-_]/i","",$_REQUEST['subcatpage']); foreach ($_GET as $var => $secvalue) { if ((preg_match ("/<[^>]*script*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*object*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*iframe*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*applet*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*meta*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*style*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*form*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*img*\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match ("/\([^>]*\"?[^)]*\)/i", $secvalue)) || (preg_match ("/\"/i", $secvalue))) { die("BAD YOUR CODE"); exit; }} foreach ($_POST as $secvalue) { if ((preg_match ("/<[^>]*script *\"?[^>]*>/i", $secvalue)) || (preg_match ("/<[^>]*style*\"?[^>]*>/i", $secvalue))) { die("BAD YOUR CODE"); exit; }} if(chech_cr("/[^a-z0-9-_]/i")==false){ include ROOT_PATH.'admin/noreg.php'; } @$lng = $_REQUEST['lng']; $language= $_SESSION['language']; if ($whatpage.$catpage.$subcatpage=="") { if ($USE_WELLCOM_PAGE=="yes" & empty($lng)) { $language=$DEFAULT_LANGUAGE; include "enter.php"; exit(0); }else { if (empty($lng) ) { if(empty($language)) { $language=$DEFAULT_LANGUAGE; } } else { $language=$lng; } $_SESSION['language']=$language; } }else{ if (empty($lng) ) { $language= $_SESSION['language']; } else { $language=$lng; } if($language=="") { if (empty($lng) ) { $language=$DEFAULT_LANGUAGE; } else { $language=$lng; } } $_SESSION['language']=$language; } include ENGINE.'functions.php'; @$file_cont=""; include ROOT_PATH.'mycode/order.php'; if (empty($whatpage)) { //if($USE_WELLCOM_PAGE=="yes") { if (empty($catpage)) { $myFile=ARTICLES.'main.dat'; } else { if (empty($subcatpage)) { $myFile=ARTICLES.$catpage.'/main.dat'; } else { $myFile=ARTICLES.$catpage.'/'.$subcatpage.'/main.dat'; } } /* }else{ header("Location: " . str_replace('/main.html', '/nopageerror404', $_SERVER['REQUEST_URI']), TRUE, 301); }*/ } else { if($USE_WELLCOM_PAGE=="no" && $whatpage=="main") { header("Location: " . str_replace('/main.html', '/nopageerror404', $_SERVER['REQUEST_URI']), TRUE, 301); } else{ if (empty($catpage)) { $myFile=ARTICLES.$whatpage.'.dat'; } else { if (empty($subcatpage)) { $myFile=ARTICLES.$catpage.'/'.$whatpage.'.dat'; } else { $myFile=ARTICLES.$catpage.'/'.$subcatpage.'/'.$whatpage.'.dat'; } } } } $fh = @fopen($myFile, 'r'); if (!$fh) { $myFile=ARTICLES.'404.dat'; header('Status: 404'); header('HTTP/1.1 404 Not Found'); $fh = @fopen($myFile, 'r'); } $data = fread($fh, filesize($myFile)); fclose($fh); $text = explode('',$data); @$sitetitle=$text[1]; $text = explode('',$data); @$contentcenter .= str_replace('LINK_TO_ORDER',$file_cont,$text[1]); $text = explode('',$data); @$myinclude .= trim($text[1]); $text = explode('',$data); @$page_custom_title = trim($text[1]); $text = explode('',$data); @$metadescription .= trim($text[1]); $text = explode('',$data); $kw=trim($_SESSION['keywords']); if ($kw!="") {$kw=', '.$kw;} @$metakeywords .= trim($text[1].$kw); @$lnav=linkator($whatpage, $catpage, $subcatpage, $sitetitle); //include SKINS.$template.'/'.$language.'/template.php'; $skin_total_templ=loadfilephp(SKINS.$template.'/'.$language.'/template.php'); require_once SKINS.$template.'/'.$language.'/texts.php'; $sTitle=''; $sDescription=''; $sImage=''; $meta_title=''; $meta_description=''; $meta_keywords=''; $sk_title=""; $sk_ogtitle=""; $sk_keyword=""; $sk_description=""; $sk_ogdescription=""; include $_SERVER['DOCUMENT_ROOT'].'/mycode/'.$myinclude.'.php'; if ($meta_title!='') { $use_meta_tags=true; } else { if($whatpage=="page1" || $whatpage=="page2" || $whatpage=="page3" || $whatpage=="page4") { if ( $_GET['view']!="") { $use_meta_tags=true; } else { $use_meta_tags=false; } } else { $use_meta_tags=false; } } $sk_title= ''; if ($meta_title=='' && $use_meta_tags==false ) { if ($page_custom_title!="") { $sk_title.= $page_custom_title; } else { $sk_title.= $sitetitle;}; $sk_title.= ', '; $sk_title.= $sitename; } else { $sk_title.= $meta_title; } $sk_title.= ''."\n"; if($sTitle!='') { $sk_ogtitle= ''."\n"; } else { //echo ''; } if ($meta_keywords=='' && $use_meta_tags==false) { $sk_keyword= ''."\n"; } else { $sk_keyword= ''."\n"; } if ($meta_description=='' && $use_meta_tags==false) { $sk_description.= ''."\n"; } else { $sk_description.= ''."\n"; } if($sDescription!='') $sk_ogdescription.= '
russian porno