"None"]); //none, lax, strict //if(!stristr("213.252.203.113, 78.60.155.18", $_SERVER['REMOTE_ADDR'])) die(); session_start(); //header('Set-Cookie: PHPSESSID=' . session_id() . '; SameSite=None; Secure; HttpOnly '); //if(!stristr("213.252.203.113, 78.60.155.18", $_SERVER['REMOTE_ADDR'])) return; if(stristr("213.252.203.113, 78.60.155.18", $_SERVER['REMOTE_ADDR']) && 1==0) { print_r($_POST); echo session_id(); //phpinfo(); //exit; } if(stristr("213.252.203.113, 78.60.155.18", $_SERVER['REMOTE_ADDR']) && 1==0) { //echo "111"; //echo phpinfo(); ini_set("display_errors", 1); ini_set("track_errors", 1); ini_set("html_errors", 1); //error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); } //if($_SERVER['REMOTE_ADDR']!="78.60.155.18") return; //if($_SERVER['REMOTE_ADDR']!="213.252.203.113" && $_SERVER['REMOTE_ADDR']!="195.14.185.181") die("404 not found"); if($_SERVER['REMOTE_ADDR']=="213.252.203.113") $startScriptTime=microtime(TRUE); header('Content-type: text/html; charset=utf-8'); require_once 'lib/class.templates.php'; // require_once 'lib/php_fast_cache.php'; include("pages/functions.php"); //if(!isadmin()) die("404 not found"); if(isadmin() && 1==0) { ?>
Justas Korsakas ar pats pabaigsi ar reiks kriminalist┼│ pagalbos ?
config = $config; $page->url = strdb($_SERVER["REQUEST_URI"]); $con = getContent($page->url); //setmbcookie(); //print_r($con); // if(!$GLOBALS['content_exist']) { // } if($con['movedto']!="") return; $page->breadcrumb = breadcrumbHTML($con['breadcrumb']); $page->metadesc = formatMetaDesc($con['metadesc']); if($con['title']==$config['site_title'] || $con['title']=="") $page->title = $config['site_title']." - ".$config['main_title']; else $page->title = $con['title']." - ".$config['site_title']; $page->title2 = $con['title2']; //$page->breadcrumb = breadCrumb($page->url); //$GLOBALS['metadesc'] = getMetaDesc(); //$page->metadesc = substr(strip_tags($GLOBALS['metadesc']),0,300); //$page->title = $title==''?$config['main_title']:$title; $page->noindex = $con['noindex']; $page->address = $con['address']; $page->ogimage = $con['ogimage']; $layout = $con['layout']; if(empty($layout)) $layout = "rightbar"; $path = str_replace(basename($con['address']),"",$con['address']); $alias = $path.$con['alias']; $filename = $page->getBlockAlias("headerline",$alias); $page->loadBlock("headerline","pages/".$filename); $filename = $page->getBlockAlias("header",$alias); $page->loadBlock("header","pages/".$filename); if($_SESSION['uRight']>0 && 1==0) { $page->headerline = phpFastCache::get("headerline"); if($page->headerline == null) { $filename = $page->getBlockAlias("headerline",$alias); $page->loadBlock("headerline","pages/".$filename); phpFastCache::set("headerline",$page->headerline , 60*60*24*7); } $page->header = phpFastCache::get("header"); if($page->footer == null) { $filename = $page->getBlockAlias("footer",$alias); $page->loadBlock("footer","pages/".$filename); phpFastCache::set("footer",$page->footer , 60*60*24*7); } $page->footer = phpFastCache::get("footer"); if($page->footer == null) { $filename = $page->getBlockAlias("footer",$alias); $page->loadBlock("footer","pages/".$filename); phpFastCache::set("footer",$page->footer , 60*60*24*7); } } else { //load blocks $filename = $page->getBlockAlias("headerline",$alias); //$page->loadBlock("headerline","pages/".$filename); $page->headerline = $config['basedir']."pages/".$filename; $filename = $page->getBlockAlias("header",$alias); //$page->loadBlock("header","pages/".$filename); $page->header = $config['basedir']."pages/".$filename; $filename = $page->getBlockAlias("footer",$alias); //$page->loadBlock("footer","pages/".$filename); $page->footer = $config['basedir']."pages/".$filename; } if(!$layout) $layout = "rightbar"; //get content if($_SESSION['uRight']>0 && $_GET['m']!="1" && $alias=="article" && 1==0) { //article jei ne mokejimas ir ne adminas $aname = "article_".$GLOBALS['url_file']; $page->content = phpFastCache::get($aname); $page->right = phpFastCache::get($aname."_right"); if($page->content == null) { $page->loadBlock("content","pages/".$con['address']); phpFastCache::set($aname,$page->content , 60*60*24*7); $filename = $page->getBlockAlias("right",$alias); $page->loadBlock("right","pages/".$filename); phpFastCache::set($aname."_right",$page->right , 60*60*24*7); } } else { $page->content = $config['basedir_test']."pages/".$con['address']; } if($layout=="3col" || $layout=="leftbar") { $filename = $page->getBlockAlias("left",$alias); //$page->loadBlock("left","pages/".$filename); $page->left = $config['basedir']."pages/".$filename; } if(($layout=="3col" || $layout=="rightbar") && $page->right == null) { $filename = $page->getBlockAlias("right",$alias); //$page->loadBlock("right","pages/".$filename); $page->right = $config['basedir']."pages/".$filename; } $filename = $page->getBlockAlias("js",$alias); $page->main_js = $config['basedir']."pages/main.js.php"; if(substr($filename,0,4)!="main") { $page->js = $config['basedir']."pages/".$filename; } //parse layout //$page->loadBlock("layout","layouts/layout.".$layout.".php"); $page->layout_file = $config['basedir_test']."layouts/layout.".$layout.".php"; $page->layout_title = $layout; //load main page $html = $page->publish(); //if($cid!="" && $_SESSION['uRight']==0 && $GLOBALS['content_exist']==1) phpFastCache::set($cid,$html , $cache_time); /*if($_SERVER['REMOTE_ADDR']=='213.252.203.113') { $endScriptTime=microtime(TRUE); $totalScriptTime=$endScriptTime-$startScriptTime; echo "Load time: ".number_format($totalScriptTime, 5)." seconds "; }*/ disconnectDB($conn); ?>