Ensure that $CFG->siteidentifier is always defined (32-byte key)

This commit is contained in:
moodler 2005-01-22 03:27:37 +00:00
parent 9ef2b3f3aa
commit a61b898a30

View File

@ -252,6 +252,11 @@
redirect("site.php");
}
/// Define the unique site ID code if it isn't already
if (empty($CFG->siteidentifier)) { // Unique site identification code
set_config('siteidentifier', random_string(32));
}
/// Set up the admin user
if (! record_exists("user_admins")) { // No admin user yet
redirect("user.php");