From 5710022c652e31bc15321903b6fffd74c2b74ed2 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 6 Jun 2002 15:19:23 +0000 Subject: [PATCH] Removed password ... it's not necessary any more. --- admin/cron.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/admin/cron.php b/admin/cron.php index d0b86fa3d9..efaf71d15a 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -8,25 +8,13 @@ // The script can either be invoked via the web server or via a standalone // version of PHP compiled for CGI. // -// The script does not require a valid Moodle login, but has it's own unique -// password, set in ../config.php. This is passed to this script as a parameter. -// -// eg wget -q -O /dev/null 'http://moodle.dougiamas.net/admin/cron.php?p=password' -// or php /web/moodle/admin/cron.php password +// eg wget -q -O /dev/null 'http://moodle.dougiamas.net/admin/cron.php' +// or php /web/moodle/admin/cron.php require("../config.php"); echo "
\n";
 
-    if (!isset($p)) {
-        $p = $GLOBALS[argv][1];
-    }
-
-    if ($p <> $CFG->cronpassword) {
-        echo "Error: bad password.\n";
-        die;
-    }
-
     $timenow  = time();
 
 //  Run all cron jobs for each module
-- 
2.39.5