ERROR 500 0){ $scriptTime=microtime(true)-$AUTO_PREPEND_STARTTIME; $scriptTime=floor($scriptTime*10)/10; } else{ $scriptTime=time()-$_SERVER['REQUEST_TIME']; $accuracySign='~'; } $ymd=date("Ymd",$_SERVER['REQUEST_TIME']); $his=date("H:i:s",$_SERVER['REQUEST_TIME']); $file=basename(__FILE__); if($scriptTime>$MAX_SCRIPT_TIME){ $graph=''; for($i=0;$i<$scriptTime; $i++){ $graph.="|"; } for(;$i<10; $i++){ $graph.=" "; } $logString="$his $graph $accuracySign{$scriptTime}c\t {$_SERVER['REQUEST_URI']} {$_SERVER['SCRIPT_FILENAME']} {$_SERVER['HTTP_HOST']} {$_SERVER['REMOTE_ADDR']} {$_SERVER['HTTP_USER_AGENT']} \n"; error_log($logString,3,"/storage/pravoslavie/logs/auto_append/$ymd.$file.log"); } if(count($_GET)){ $logString="$his {$_SERVER['REQUEST_URI']} {$_SERVER['SCRIPT_FILENAME']} {$_SERVER['HTTP_HOST']} {$_SERVER['REMOTE_ADDR']} {$_SERVER['HTTP_USER_AGENT']} \n"; error_log($logString,3,"/storage/pravoslavie/logs/auto_append_full/$ymd.$file.log"); }