restrict access of scheduler.php to cli mode