"; //echo time(); ob_start(); //$dbg=0; if ( $_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_X_FORWARDED'] || $_SERVER['HTTP_FORWARDED_FOR'] || $_SERVER['HTTP_CLIENT_IP'] || $_SERVER['HTTP_VIA'] || in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554)) // || @fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 30) ) { exit('Proxy detected'); } if($dbg == 1) { $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; $mtimetemp = explode(" ",microtime()); $lasttime = $mtimetemp[1] + $mtimetemp[0]; } include("./header.php"); if($dbg == 1) { $mtimetemp = explode(" ",microtime()); $lasttimetemp = $mtimetemp[1] + $mtimetemp[0]; $thistime=$lasttimetemp-$lasttime; $lasttime=$lasttimetemp; $debug.="Header:".round($thistime,5).""; } include("./includes/modules.php"); if($dbg == 1) { $mtimetemp = explode(" ",microtime()); $lasttimetemp = $mtimetemp[1] + $mtimetemp[0]; $thistime=$lasttimetemp-$lasttime; $lasttime=$lasttimetemp; $debug.="Modules:".round($thistime,5).""; } if(($LOGGED_IN) && ($settings[footprints] == 1)) { $temp=parse_url($REQUEST_URI); $theurl=$temp[path]."?". iif($view!="","view=$view&"). iif($ac!="","ac=$ac&"). iif($id!="","id=$id&"). iif($user!="","user=$user&"). iif($ref!="","ref=$ref&"). iif($action!="","action=$action&"); if($theurl != "") { $Db1->query("INSERT INTO footprints SET username='$username', dsub='".time()."', url='".$theurl."', uri='".$REQUEST_URI."', title='".$includes[title]."', ip='$vip' "); } } if(is_file("$template/layout_header.php") == true) include("$template/layout_header.php"); else include("./includes/layout_header.php"); if($dbg == 1) { $mtimetemp = explode(" ",microtime()); $lasttimetemp = $mtimetemp[1] + $mtimetemp[0]; $thistime=$lasttimetemp-$lasttime; $lasttime=$lasttimetemp; $debug.="Banners:".round($thistime,5).""; } if(($LOGGED_IN == true) && ($thismemberinfo[type]==1)) { $sql=$Db1->query("SELECT * FROM memberships WHERE id='$thismemberinfo[membership]'"); $tempt=$Db1->fetch_array($sql); $thetype=$tempt[title]; } $Db1->sql_close(); if(is_file("$template/layout.php") == true) include("$template/layout.php"); else include("./templates/default/layout.php"); if($dbg == 1) { $mtimetemp = explode(" ",microtime()); $lasttimetemp = $mtimetemp[1] + $mtimetemp[0]; $thistime=$lasttimetemp-$lasttime; $lasttime=$lasttimetemp; $debug.="Template:".round($thistime,5).""; } if($dbg == 1) { $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = ($endtime - $starttime); echo "

".$debug."
Total Time: ".round($totaltime,5)."
"; flush(); } ?>
Copyright © . GEM Script v1.2 by