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("", "
".$message."
"); } if(e_QUERY == "u") { $ns->tablerender("", "
".PRFLAN_106."
"); } $handle = opendir(e_ADMIN.'includes/'); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { $file = str_replace(".php", "", $file); $adminlist[] = $file; } } closedir($handle); $text = "
"; $text .= pref_submit(); $text .= "
".PRFLAN_1."
".PRFLAN_2."
".PRFLAN_3."
".($pref['siteurl'] == SITEURL ? "" : "
( ".PRFLAN_159.": ".SITEURL." )")."
".PRFLAN_134."
".PRFLAN_135."
".PRFLAN_112."   ".PRFLAN_113."
".PRFLAN_4." "; $param = "sitebutton,".e_IMAGE.",".SITEBUTTON.",81px,30px,"; $text .= $tp->parseTemplate("{IMAGESELECTOR={$param}}"); $text .= "
".PRFLAN_5."
".PRFLAN_6."
".PRFLAN_7."
".PRFLAN_8."
".PRFLAN_162."
".PRFLAN_163."
".PRFLAN_164."
".PRFLAN_165."
".PRFLAN_112."   ".PRFLAN_113."
".PRFLAN_9."
"; // Admin Display Areas. . $text .= ""; // Date options. $text .= ""; // =========== Registration Preferences. ================== $text .= ""; // Signup options ===========================. $text .= ""; /* text render options */ if(!isset($pref['post_html'])) { $pref['post_html'] = '254'; save_prefs(); } $text .= ""; // Security Options. . $hasGD = extension_loaded("gd"); $text .= ""; $text .= ""; //Advanced Features $text .= ""; // END Advanced Features $text .= "
"; $ns->tablerender(PRFLAN_53, $text); require_once("footer.php"); function pref_submit() { $text = " "; // ML /* if(e_MLANG == 1){ //$text .=" $but_typ = array(""); // empty = submit $but_nam = array("updateprefs"); // empty = autobutX with X autoincrement $but_val = array("updateprefs"); // empty = Submit $but_class = array("caption"); // empty = button $butjs = array(""); // empty = "" $buttitle = array(""); // empty = "" $text .= e107ml_adpanel(1,$but_typ,$but_nam,$but_val,$but_class,$butjs,$buttitle); }else{*/ $text .= ""; // } $text .= " "; // END ML return $text; } function prefs_adminmenu() { $var['main']['text'] = PRFLAN_1; $var['display']['text'] = PRFLAN_13; $var['admindisp']['text'] = PRFLAN_77; $var['date']['text'] = PRFLAN_21; $var['registration']['text'] = PRFLAN_28; $var['signup']['text'] = PRFLAN_19; $var['textpost']['text'] = PRFLAN_101; $var['security']['text'] = PRFLAN_47; $var['comments']['text'] = PRFLAN_87; $var['advanced']['text'] = PRFLAN_149; show_admin_menu(LAN_OPTIONS, $action, $var, TRUE); } ?>