$mysqli->next_result(); if ($mysqli->insert_id > 0) { $ext = $ext . ' ' . $mysqli->insert_id; } } echo "<li>LOADED student_help: " . $ext . "</li>\n"; } $mysqli->commit(); // 01/05/2013 if (!$updater_utils->does_column_exist('users', 'password_expire')) { $updater_utils->execute_query("ALTER TABLE users ADD COLUMN password_expire int(11) unsigned", true); } // 02/05/2013 - Add password expire config file. $new_lines = array("\$cfg_password_expire = 30; // Set in days\n"); $target_line = '$authentication = array'; $updater_utils->add_line($string, '$percent_decimals', $new_lines, 80, $cfg_web_root, $target_line, 7); // 09/05/2013 (brzsw) - Remove $protocol and insert $cfg_secure_connection $lines = array(); $cfg = file($cfg_web_root . 'config/config.inc.php'); $found = false; foreach ($cfg as $line) { if (strpos($line, '$protocol = ') !== false) { $lines[] = "\$cfg_secure_connection = true; // If true site must be accessed via HTTPS\n"; $found = true; } else { $lines[] = $line; } } if ($found) { if (file_exists($cfg_web_root . 'config/config.inc.php')) { rename($cfg_web_root . 'config/config.inc.php', $cfg_web_root . 'config/config.inc.old.php');