Commit 89d1efe4 authored by skodak's avatar skodak
Browse files

(MDL-8745) prevent cannot logon trouble after update to 1.8

parent 918e9805
......@@ -50,6 +50,12 @@
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
}
// check if major upgrade needed - also present in login/index.php
if ((int)$CFG->version < 2006101100) { //1.7 or older
@require_logout();
redirect("$CFG->wwwroot/$CFG->admin/");
}
if ($CFG->forcelogin) {
require_login();
}
......
......@@ -3,6 +3,12 @@
require_once("../config.php");
// check if major upgrade needed - also present in /index.php
if ((int)$CFG->version < 2006101100) { //1.7 or older
@require_logout();
redirect("$CFG->wwwroot/$CFG->admin/");
}
$loginguest = optional_param('loginguest', 0, PARAM_BOOL); // determines whether visitors are logged in as guest automatically
$testcookies = optional_param('testcookies', 0, PARAM_BOOL); // request cookie test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment