$v){ $_GET[$k] = str_replace($badWords,"",$v); } foreach($_POST as $k=>$v){ $_POST[$k] = str_replace($badWords,"",$v); } */ $t1=microtime(true); //set_cookie_param(); $lang="rom"; if($_GET['oras']>' ') $oras=$_GET['oras']; else $oras='Bucuresti'; include_once "/www/WWW/run.ro/common/vars.inc"; include "lib/core.inc"; include "conf/config.inc"; include "lib/sanitize.inc"; include "lib/formatting.inc"; include "lib/auth_imopedia.inc"; @include "/www/CODE/curs/curs.php"; //auth_set_cookie_param(); // seteaza parametrii de coockie $screen=sanitize_paranoid_string($_GET['screen']); $section=sanitize_paranoid_string($_GET['section']); include $_SERVER['DOCUMENT_ROOT']."/lib/db.inc"; include $_SERVER['DOCUMENT_ROOT']."/conf/vars.inc"; //include "_redirect.php"; //clasa de imagini articole include $_SERVER['DOCUMENT_ROOT']."/lib/articole/Articol.inc"; include_once LIB_DIR."/form.inc"; include_once LIB_DIR."/apps/admin/func.inc"; include_once LIB_DIR."/imob-func.inc"; include_once "lib/util.inc"; //$cookie_fb = get_facebook_cookie(YOUR_APP_ID, YOUR_APP_SECRET); include_once "conf/varsdb.inc"; include_once "lib/core/string.inc"; //logheaza users din coockie login_from_coockie(); if (!isset($_SESSION['user_count_id'])) { $_SESSION['user_count_id'] = uniqid(); } import("misc.WhosOnline"); $who = WhosOnline::getInstance($memcache_obj); // If user needs to be recorded as online, do so. if ($who->needToRecordOnline()) { $who->recordOnline($_SESSION['user_count_id']); } include "part/$lang/lang/_imobil.inc"; include "part/$lang/lang/list.inc"; include "_redirect.php"; if($_SERVER['HTTP_HOST']=='en.imopedia.ro' && !test()) header('Location: http://www.imopedia.ro/'); if($_SERVER['HTTP_HOST']=='en.imopedia.ro' ) $lang='eng'; if($section>' ');else $section="all";if($screen>' ');else $screen="index"; if($section=="all" && $screen=="index"){ $isHomepage=true; } if ($_SERVER["REQUEST_METHOD"]=="POST"){ if(file_exists("action/$section/$screen.inc")) include "action/$section/$screen.inc"; } $requires_auth=false; //if($section=='oferte' and $screen=='index' and test(0)) $screen = 'index_new'; //if($_SERVER["REMOTE_ADDR"]=="86.120.201.57") echo 9; if(file_exists("prelayout/$lang/$section/$screen.inc")) include_once "prelayout/$lang/$section/$screen.inc"; if ($requires_auth && !authIsLoged()) { $_SESSION['redirect_url']=$_SERVER['REQUEST_URI']; header("Location:".make_link("users","login")); die(); } //if(test()){ printr($_SERVER);exit;} //if(test()) $_GET['debug']=1; //includem sistemul de caching include "lib/core/cache.inc"; if($current_layout>" "); else $current_layout="default"; //if(test()) printr($_GET); include "layout/$lang/$current_layout/layout_before.inc"; if($screen=="zone") $do_cache=false; else $do_cache=false; $cache_file=$_SERVER['DOCUMENT_ROOT']."/usr/cache/sections/{$section}_{$screen}_".md5(serialize($_GET)).".cch"; if($do_cache && file_exists($cache_file) && time()-filemtime($cache_file)<600){ include $cache_file; } else{ // ob_start(); if(file_exists("sections/$lang/$section/$screen.inc")) include "sections/$lang/$section/$screen.inc"; else{ include "sections/$lang/all/index.inc"; // mail("catalin2@run.ro","Pagina veche",print_r($_SERVER,true)); } //writeCache(ob_get_contents(),$cache_file); } include "layout/$lang/$current_layout/layout_after.inc"; //aici sa afiseaza toate balariile de la sfarsitul paginii aveti grija sa nu apara la lansarea site-ului if($mail!=1 && $_GET["zoom"]!=1 && $_GET["live_new"]!=1 && $current_layout!="xml" && ($_GET['debug']==1) && $_GET["ajax"]!=1) { include "lib/app/closing_debug.inc"; } //if(test()) var_dump(xdebug_get_code_coverage()); if ($_SERVER["REMOTE_ADDR"]=="86.120.201.57") { // printr($_SESSION); } ?>