$tpl->set('user_name', $_POST['user_name']); // we use this to disable the name in the form } $tpl->set('domain', $domain); $tpl->set('display', 'install_form'); } else { // set the installation date MM-DD-YYYY $date = date("m-d-Y"); writeToConfig('$core_config[\'release\'][\'install_date\']', $date); if (isset($_POST['installation_type']) && $_POST['installation_type'] == "multiuser") { $url = $http . "://" . str_replace("/(.*?)\\", $_POST['user_name'], $core_config['script']['multiple_webspace_pattern']); } else { $url = $core_config['script']['core_domain']; } // We set the installer up as a maintainer writeToConfig('$core_config[\'security\'][\'maintainer_openids\']', $_POST['user_name']); // set this file to not readable if (@chmod('../install/installer.php', 00)) { // disable this installer header("Location: " . $url); exit; } else { $tpl->set('display', 'no_chmod_allowed'); $tpl->set('post_chmod_url', $url); } } } else { // pre-start checks and setup $system_checks = array(); $is_error = 0; // Check for MySQL
$core_config['security']['maintainer_openids'] = $_POST['maintainer_openids']; writeToConfig('$core_config[\'security\'][\'maintainer_openids\']', $core_config['security']['maintainer_openids']); } elseif (isset($_POST['save_config_email_domains'])) { backupConfig(); $core_config['registration']['email_domains'] = $_POST['authorized_email_domains']; writeToConfig('$core_config[\'registration\'][\'email_domains\']', $core_config['registration']['email_domains']); } elseif (isset($_POST['save_config_html_tags'])) { backupConfig(); $core_config['security']['allowable_html_tags'] = $_POST['allowable_html_tags']; writeToConfig('$core_config[\'security\'][\'allowable_html_tags\']', $core_config['security']['allowable_html_tags']); } elseif (isset($_POST['save_config_language'])) { backupConfig(); $core_config['language']['server_locale'] = $_POST['server_locale']; $core_config['language']['standard_locale'] = $_POST['standard_locale']; writeToConfig('$core_config[\'language\'][\'server_locale\']', $core_config['language']['server_locale']); writeToConfig('$core_config[\'language\'][\'standard_locale\']', $core_config['language']['standard_locale']); } if (isset($uri_routing[1]) && $uri_routing[1] == "account" && isset($uri_routing[2])) { $query = "\n\t\tSELECT user_id, openid_name, user_name, user_email, user_dob, user_live \n\t\tFROM " . $db->prefix . "_user \n\t\tWHERE \n\t\tuser_id=" . (int) $uri_routing[2]; $result = $db->Execute($query, 1); if (!empty($result[0])) { $body->set('account', $result[0]); } } elseif (isset($uri_routing[1]) && $uri_routing[1] == "accounts") { $query = "\n\t\tSELECT user_id, openid_name, user_name, user_email, user_dob, user_live \n\t\tFROM " . $db->prefix . "_user \n\t\tORDER BY openid_name"; $result = $db->Execute($query); if (!empty($result)) { $body->set('accounts', $result); } } else { $query = "\n\t\tSELECT count(user_id) as total_accounts \n\t\tFROM " . $db->prefix . "_user \n\t\tWHERE user_live=1";