db_Update("user", "user_name=user_loginname"); $message = PRFLAN_157; } if (isset($_POST['updateprefs'])) { unset($_POST['updateprefs']); $_POST['cookie_name'] = str_replace(array(" ","."), "_", $_POST['cookie_name']); $_POST['cookie_name'] = preg_replace("#[^a-zA-Z0-9_]#", "", $_POST['cookie_name']); $_POST['siteurl'] = trim($_POST['siteurl']) ? trim($_POST['siteurl']) : SITEURL; $_POST['siteurl'] = substr($_POST['siteurl'], -1) == "/" ? $_POST['siteurl'] : $_POST['siteurl']."/"; foreach($_POST as $key => $value) { $pref[$key] = $tp->toDB($value); } $e107cache->clear(); save_prefs(); $sql -> db_Select_gen("TRUNCATE ".MPREFIX."online"); header("location:".e_ADMIN."prefs.php?u"); exit; } if($sql->db_Select("plugin", "plugin_path", "plugin_installflag='1' AND plugin_path = 'alt_auth'")) { $authlist[] = "e107"; $handle=opendir(e_PLUGIN."alt_auth"); while ($file = readdir($handle)) { if(preg_match("/^(.*)_auth\.php/",$file,$match)) { $authlist[] = $match[1]; } } } if ($authlist) { $auth_dropdown .= "\n"; } else { $auth_dropdown = "".PRFLAN_151; $pref['auth_method'] = ""; } require_once("auth.php"); if (isset($message)) { $ns->tablerender("", "