2006-10-25 02:41:56 +00:00
< ?
2009-03-24 16:58:02 +00:00
//make sure logs folder exists, and htaccess it to deny access
if ( ! file_exists ( " ../data/logs " ))
@ mkdir ( " ../data/logs " );
if ( ! file_exists ( " ../data/logs/.htaccess " ))
@ file_put_contents ( " ../data/logs/.htaccess " , " Order Deny,Allow \r \n Deny From All \r \n " );
2010-03-25 20:52:40 +00:00
//add PHP_SELF just so when we do a process listing on the server we know which fair its running for
//the argument does not get used by the script at all
exec ( " nice php judges_sa.php { $_SERVER [ 'PHP_SELF' ] } >../data/logs/judge_scheduler_ " . date ( " YmdHis " ) . " .log 2>&1 & " );
2009-03-24 16:58:02 +00:00
usleep ( 1500000 ); // 1.5 second to allow the judges_sa to update the % status to 0% otherwise the status page will think its not running if it gets there too soon
2006-10-25 02:41:56 +00:00
header ( " Location: judges_scheduler_status.php " );
2007-05-10 19:18:01 +00:00
exit ;
2006-10-25 02:41:56 +00:00
?>