Changeset 542
- Timestamp:
- 09/13/06 12:37:54 (2 years ago)
- Files:
-
- devel/config-dist.php (modified) (1 diff)
- devel/lib/dbsetup.php (modified) (2 diffs)
- devel/sanitychecks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/config-dist.php
r520 r542 28 28 $CFG->sysadminemail = ''; 29 29 30 // Account 1, with username news, is initially administrator. This 31 // will be its initial password - UPON INSTALLATION, YOU SHOULD LOG 32 // IN AS NEWS AND CHANGE THE PASSWORD IMMEDIATELY. 33 34 $CFG->newsinitialpassword = ''; 35 30 36 // Country code to set language to if you have gettext installed 31 37 // To include new languages, save their compiled .mo gettext devel/lib/dbsetup.php
r517 r542 20 20 $strdatabasesuccess = "Yay!"; // well, if people leave never-defined variables about the place... 21 21 22 $newinstall = false; 23 22 24 if (!$maintables) { 23 25 if (file_exists($CFG->dirroot . "lib/db/$CFG->dbtype.sql")) { … … 28 30 $db->debug = false; 29 31 notify($strdatabasesuccess, "green"); 32 if (!isset($CFG->newsinitialpassword) || empty($CFG->newsinitialpassword)) { 33 notify("WARNING: the initial password for the news account is 'password'. This account has administrator privileges, and you should log in and change the password as soon as installation is complete."); 34 } else { 35 $newspassword = $db->qstr(md5($CFG->newsinitialpassword)); 36 execute_sql("update ".$CFG->prefix."users set password = $newspassword where username = 'news'"); 37 } 38 execute_sql("update ".$CFG->prefix."users set email = ". $db->qstr($CFG->sysadminemail) ." where username = 'news'"); 30 39 } else { 31 40 $db->debug = false; devel/sanitychecks.php
r506 r542 29 29 $diemessages[] = 'Configuration problem: The <code>$CFG->dataroot</code> setting in config.php must end with a forward slash (/).'; 30 30 } 31 32 31 33 32 if (ini_get('register_globals')) {
