]> git.mjollnir.org Git - moodle.git/commitdiff
Removed password ... it's not necessary any more.
authormartin <martin>
Thu, 6 Jun 2002 15:19:23 +0000 (15:19 +0000)
committermartin <martin>
Thu, 6 Jun 2002 15:19:23 +0000 (15:19 +0000)
admin/cron.php

index d0b86fa3d9028e31f8c7dd55cf477734632ffbef..efaf71d15ae351ea3283a1a7b441e18f14759548 100644 (file)
@@ -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 "<PRE>\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