From e13914acae3f989d94a4b50d056fe6656a1a2467 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 19 Apr 2010 21:24:49 +0000 Subject: [PATCH] just a little note for other devs looking for cli info --- admin/cron.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/cron.php b/admin/cron.php index 0d498fa6089..eca29390660 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -15,6 +15,8 @@ /// this cron script might be considered to be a CLI script even when accessed over HTTP, /// we do not want HTML in output and there is no real session ;-) +/// NOTE: do not use this hack in your cli scripts, it is defined automatically +/// in lib/setup.php, all you need to do is to prevent access via web define('CLI_SCRIPT', true); /// Following hack used to identify cron and other CLI scripts - use CLI_SCRIPT or $FULLME == "/$CFG->admin/cropn.php" instead -- 2.43.0