if(!eregi('[A-z0-9]{32}',$sess)){ |
$sess=md5(rand(09009,999999)); |
} |
for($i=0;$i<count($fset);$i++ ){ |
if(ereg('[^//].*=', trim($fset[$i]))){ |
$sset=explode('=', trim($fset[$i]), 2); |
$sset[0]=eregi_replace('(^ *)|( *$)', '', $sset[0]); |
$sname=$sset[0]; |
$set_komm[$sname]=eregi_replace('^.*//', '', $sset[1]); |
$set_komm[$sname]=eregi_replace('(^ *)|( *$)', '', $set_komm[$sname]); |
$sset[1]=eregi_replace('//.*$', '', $sset[1]); |
$sset[1]=eregi_replace('(^ *)|( *$)', '', $sset[1]); |
$set[$sname]=$sset[1]; |
} |
} |
if(isset($_SERVER["HTTP_USER_AGENT"]) && (eregi('windows', $_SERVER["HTTP_USER_AGENT"]) ||eregi('linux', $_SERVER["HTTP_USER_AGENT"]) ||eregi('bsd', $_SERVER["HTTP_USER_AGENT"]) ||eregi('x11', $_SERVER["HTTP_USER_AGENT"]) ||eregi('unix', $_SERVER["HTTP_USER_AGENT"]) ||eregi('macos', $_SERVER["HTTP_USER_AGENT"]) ||eregi('macintosh', $_SERVER["HTTP_USER_AGENT"]))){ |
$webbrowser=true; |
}else{ |
$webbrowser=false; |
} |
if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']!='127.0.0.1' && ereg("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$",$_SERVER['HTTP_X_FORWARDED_FOR'])){ |
$ip2['xff']=$_SERVER['HTTP_X_FORWARDED_FOR']; |
$ipa[] = $_SERVER['HTTP_X_FORWARDED_FOR']; |
} |
if(isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP']!='127.0.0.1' && ereg("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$",$_SERVER['HTTP_CLIENT_IP'])){ |
$ip2['cl']=$_SERVER['HTTP_CLIENT_IP']; |
$ipa[] = $_SERVER['HTTP_CLIENT_IP']; |
} |
if(isset($_SERVER['REMOTE_ADDR']) && ereg("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$",$_SERVER['REMOTE_ADDR'])){ |
$ip2['add']=$_SERVER['REMOTE_ADDR']; |
$ipa[] = $_SERVER['REMOTE_ADDR']; |
} |
class Debug { |
function startTimer() { |
global $starttime; |
$mtime = microtime (); |
$mtime = explode (' ', $mtime); |
$mtime = $mtime[1] + $mtime[0]; |
$starttime = $mtime; |
} |
function endTimer() { |
global $starttime; |
$mtime = microtime (); |
$mtime = explode (' ', $mtime); |
$mtime = $mtime[1] + $mtime[0]; |
$endtime = $mtime; |
$totaltime = round (($endtime - $starttime), 4); |
return $totaltime; |
} |
} |