Permalink
Browse files

Now uses $CFG->cronpassword from config.php

  • Loading branch information...
martin
martin committed May 27, 2002
1 parent bb5a36e commit 3eff8fde3aa47719682aaac5750aa8194c47ba87
Showing with 2 additions and 4 deletions.
  1. +2 −4 admin/cron.php
View
@@ -9,13 +9,11 @@
// version of PHP compiled for CGI.
//
// The script does not require a valid Moodle login, but has it's own unique
-// password, set below. These are passed to this script as parameters.
+// 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
- $PASSWORD = "fr0o6y";
-
require("../config.php");
echo "<PRE>\n";
@@ -24,7 +22,7 @@
$p = $GLOBALS[argv][1];
}
- if ($p <> $PASSWORD) {
+ if ($p <> $CFG->cronpassword) {
add_to_log("Error: bad cron password!");
echo "Error: bad password.\n";
die;

0 comments on commit 3eff8fd

Please sign in to comment.