start(); if(isset($_GET['khata'])) die('SystemError !'); define('INDEX_ACCESS', true); //Absolute site directory if (file_exists("core/core.php")){ define('BASE_DIR', ''); }else{ define('BASE_DIR', dirname(__FILE__) . '/'); } // Absolute Directory And Includes define('INCLUDE_DIR', BASE_DIR.'core/'); // include base functions from core.php require_once(INCLUDE_DIR."core.php"); if($_GET['saveIpSary']){ $ip = ip(); $db->Execute("UPDATE `".$prefix."config` SET var_value = '$ip' WHERE id = '148';"); die('saved ip!'); } //if($_GET['mod'] != 'newsBot') if(($_GET['amod']=="" AND $_GET['mod'] != 'auth') AND ($user['username'] != 'administrator')) die("

UNDER CONSTRACTION!

"); //if((!is_admin($user_sid) AND !$_GET['amod']) AND $_GET['mod'] != 'auth') die("UNDER CONSTRACTION!"); //if($user['username'] != 'administrator') die("UNDER CONSTRACTION!"); ///if(date("H") > 11) die("forbidden you don't have permission to access this server"); if($_GET['import']){ require_once("wp.php"); die; } /////////// analytics user //require_once(INCLUDE_DIR."lib/anabid/anabid.php"); ///// router (load modules) require_once(INCLUDE_DIR."router.php"); //////////////////// if(!defined('ADMIN_AREA')) include_once(INCLUDE_DIR."blocks.php"); /// :-) $theme_path = get_theme($module_name); include($theme_path); // global $profiler; // $et = $profiler->end(); // echo '
Execute Time = '.$et.'

';//die; // echo ""; ///// print error msg //echo error_print(); // ////////////// DevBid for test and profiling //include_once(INCLUDE_DIR."lib/devbid/devbid.php"); //if(function_exists("devbid_end")) echo devbid_end(); // if (preg_match('%users/login[[:>:]]/?.*%i', "users/login")) { // echo "

assdddsdsds
"; // } ?>