]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8542 External db auth cleanup
authorskodak <skodak>
Fri, 16 Feb 2007 10:55:05 +0000 (10:55 +0000)
committerskodak <skodak>
Fri, 16 Feb 2007 10:55:05 +0000 (10:55 +0000)
* some more sync script fixing

auth/db/auth_db_sync_users.php

index 6b0965224ff06018b8034ed3dbac00b3b3d9145a..264df1916eb33f0ef4206c266a8bbc1c42ff0311 100644 (file)
@@ -2,9 +2,8 @@
 /** auth_db_sync_users.php
  *
  * This script is meant to be called from a system cronjob to
- * sync moodle user accounts with external database.
- *
- * It is required for internal password format.
+ * sync moodle user accounts with external database
+ * when using internal passwords (== passwords not defined in external database).
  *
  * Recommended cron entry:
  * # 5 minutes past 4am
@@ -23,8 +22,8 @@
  */
 
 
-if (!empty($_SERVER['GATEWAY_INTERFACE'])) {
-    error_log("should not be called from apache!");
+if (isset($_SERVER['REMOTE_ADDR'])) {
+    error_log("should not be called from web server!");
     exit;
 }