From d846e50accde510aa1993801501f9adb8632f8e8 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 25 Jul 2004 14:14:56 +0000 Subject: [PATCH] MERGED in some changes from the defunct resource branch --- admin/config.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ admin/cron.php | 7 ++++++- admin/index.php | 23 ++++++++++++----------- 3 files changed, 64 insertions(+), 12 deletions(-) diff --git a/admin/config.html b/admin/config.html index 6bee63eaaf..d94fdd128d 100644 --- a/admin/config.html +++ b/admin/config.html @@ -232,6 +232,52 @@ + +

displayloginfailures:

+ + displayloginfailures,"","",""); + ?> + + + + + + +

notifyloginfailures:

+ + notifyloginfailures,"","",""); + ?> + + + + + + +

notifythreshold:

+ + notifythreshold,"","",""); + ?> + + + + +

sessiontimeout: diff --git a/admin/cron.php b/admin/cron.php index ee8ff93797..9fc5fecf0a 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -117,7 +117,12 @@ $cachelifetime = time() - $CFG->cachetext; delete_records_select("cache_text", "timemodified < '$cachelifetime'"); } - } + + if (!empty($CFG->notifyloginfailures)) { + notify_login_failures(); + } + + } // End of occasional clean-up tasks if (file_exists("$CFG->dataroot/cronextra.php")) { include("$CFG->dataroot/cronextra.php"); diff --git a/admin/index.php b/admin/index.php index 5d9b0bc594..2303c24699 100644 --- a/admin/index.php +++ b/admin/index.php @@ -394,7 +394,8 @@ $userdata = " ".get_string("authentication")." - ". get_string("adminhelpauthentication")."
"; - + $userdata .= " ".get_string("edituser")." - ". + get_string("adminhelpedituser")."
"; if (is_internal_auth()) { $userdata .= " wwwroot/$CFG->admin/user.php?newuser=true\">". get_string("addnewuser")." - ". @@ -403,17 +404,19 @@ get_string("uploadusers")." - ". get_string("adminhelpuploadusers")."
"; } - $userdata .= " ".get_string("edituser")." - ". - get_string("adminhelpedituser")."
"; - $userdata .= " ".get_string("assignadmins")." - ". - get_string("adminhelpassignadmins")."
"; - $userdata .= " ".get_string("assigncreators")." - ". - get_string("adminhelpassigncreators")."
"; + + $userdata .= "


 ".get_string("enrolments")." - ". + get_string("adminhelpenrolments")."
"; + $userdata .= " ".get_string("assignstudents")." - ". + get_string("adminhelpassignstudents")."
"; + $userdata .= " ".get_string("assignteachers")." - ". get_string("adminhelpassignteachers"). "
"; - $userdata .= " ".get_string("assignstudents")." - ". - get_string("adminhelpassignstudents").""; + $userdata .= " ".get_string("assigncreators")." - ". + get_string("adminhelpassigncreators")."
"; + $userdata .= " ".get_string("assignadmins")." - ". + get_string("adminhelpassignadmins")."
"; $table->data[] = array("".get_string("users")."", $userdata); @@ -459,5 +462,3 @@ print_footer($site); ?> - - -- 2.39.5