Thread: [phpMP-CVS] CVS: phpMP/includes admin.php,1.5,1.6
Status: Pre-Alpha
Brought to you by:
heimidal
From: Anthony W. <ant...@us...> - 2003-02-18 22:37:27
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv30765/includes Modified Files: admin.php Log Message: Fixed some tabs due to a change in editors Index: admin.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/admin.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** admin.php 11 Feb 2003 21:07:29 -0000 1.5 --- admin.php 18 Feb 2003 22:37:24 -0000 1.6 *************** *** 4,217 **** { ! var $p_action; // Action desired by the user ! // Executes the given admin action ! // Author: Anthony White ! // Accepts: $action - actions as defined above, used in switch / case ! // Returns: none. ! function execute($action) ! { ! $this->p_action = $action; ! switch ($action) ! { ! case C_ACTION_SITE: ! $this->_show_site(); ! break; ! case C_ACTION_USER: ! $this->_show_user(); ! break; ! default: break; ! } ! } ! // Shows the general management form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function _show_site() ! { ! // Print out a form for the user ! print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; ! print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; ! print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list ! print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! print "Account Activation Level: "; ! print "<select name=\"accact\">"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $sel0 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 1) { $sel1 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 2) { $sel2 = "SELECTED"; } ! print "<option value=\"0\" " . $sel0 . ">No Activation"; ! print "<option value=\"1\" " . $sel1 . ">User Activation"; ! print "<option value=\"2\" " . $sel2 . ">Admin Activation"; ! print "</select><br>"; ! print "System Timezone: "; ! print "<select name=\"systime\">"; ! print "<option value=\"" . GMT_MINUS_12 . "\">GMT -12 (International Dateline West)"; ! print "<option value=\"" . GMT_MINUS_11 . "\">GMT -11 (Midway Island, Simoa)"; ! print "<option value=\"" . GMT_MINUS_10 . "\">GMT -10 (Hawaii)"; ! print "<option value=\"" . GMT_MINUS_9 . "\">GMT -9 (Alaska)"; ! print "<option value=\"" . GMT_MINUS_8 . "\">GMT -8 (Pacific Time)"; ! print "<option value=\"" . GMT_MINUS_7 . "\">GMT -7 (Arizona, Mountain Time)"; ! print "<option value=\"" . GMT_MINUS_6 . "\">GMT -6 (Central Time)"; ! print "<option value=\"" . GMT_MINUS_5 . "\">GMT -5 (Eastern Time)"; ! print "<option value=\"" . GMT_MINUS_4 . "\">GMT -4 (Atlantic Time)"; ! print "<option value=\"" . GMT_MINUS_3_30 . "\">GMT -3.5 (Newfoundland)"; ! print "<option value=\"" . GMT_MINUS_3 . "\">GMT -3 (Greenland)"; ! print "<option value=\"" . GMT_MINUS_2 . "\">GMT -2 (Mid-Atlantic)"; ! print "<option value=\"" . GMT_MINUS_1 . "\">GMT -1 (Cape Verda Islands)"; ! print "<option value=\"" . GMT . "\">GMT (Greenwich Mean Time)"; ! print "<option value=\"" . GMT_PLUS_1 . "\">GMT +1 (Paris)"; ! print "<option value=\"" . GMT_PLUS_2 . "\">GMT +2 (Jerusalem)"; ! print "<option value=\"" . GMT_PLUS_3 . "\">GMT +3 (Moscow)"; ! print "<option value=\"" . GMT_PLUS_4 . "\">GMT +4 (Abu Dhabi)"; ! print "<option value=\"" . GMT_PLUS_4_30 . "\">GMT +4.5 (Kabul)"; ! print "<option value=\"" . GMT_PLUS_5 . "\">GMT +5 (Karachi)"; ! print "<option value=\"" . GMT_PLUS_5_30 . "\">GMT +5.5 (New Delhi)"; ! print "<option value=\"" . GMT_PLUS_5_45 . "\">GMT +5.75 (Kathmandu)"; ! print "<option value=\"" . GMT_PLUS_6 . "\">GMT +6 (Almaty)"; ! print "<option value=\"" . GMT_PLUS_6_30 . "\">GMT +6.5 (Rangoon)"; ! print "<option value=\"" . GMT_PLUS_7 . "\">GMT +7 (Bangkok)"; ! print "<option value=\"" . GMT_PLUS_8 . "\">GMT +8 (Beijing)"; ! print "<option value=\"" . GMT_PLUS_9 . "\">GMT +9 (Tokyo)"; ! print "<option value=\"" . GMT_PLUS_9_30 . "\">GMT +9.5 (Adelaide)"; ! print "<option value=\"" . GMT_PLUS_10 . "\">GMT +10 (Brisbane)"; ! print "<option value=\"" . GMT_PLUS_11 . "\">GMT +11 (Solomon Islands)"; ! print "<option value=\"" . GMT_PLUS_12 . "\">GMT +12 (Auckland)"; ! print "<option value=\"" . GMT_PLUS_13 . "\">GMT +13 (Nuku'alofa)"; ! print "</select> (Current: " . C_SYSTEM_TIMEZONE . ")<br>"; ! if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; ! print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; ! print "</form>"; ! } ! // Parses the general management form ! // Author: Anthony White ! // Accepts: Form values from the site config form ! // Returns: none. ! function parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms) ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! if ($ovrtpl != 1) { $ovrtpl = 0; } ! if ($portperms != 1) { $portperms = 0; } ! ! // We now go through each config_value and update it accordingly ! // I dont know if this is the only way, but it works fine for me ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $sname . "' WHERE config_key='site_name'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $ovrtpl . "' WHERE config_key='override_usr_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deftpl . "' WHERE config_key='default_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deflang . "' WHERE config_key='default_lang'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $defdate . "' WHERE config_key='default_date_format'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $accact . "' WHERE config_key='enable_account_activation'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $systime . "' WHERE config_key='system_timezone'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $portperms . "' WHERE config_key='use_portal_perms'"); ! } ! // Shows the user selection form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function _show_user() ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Select user to edit: <select name=\"userid\">"; ! $query = $DB->query("SELECT * FROM " . DB_USERS_TABLE); ! while ($user = $DB->fetchArray($query)) ! { ! if ($user[userid] != 1) ! { ! print "<option value=\"" . $user[userid] . "\">" . $user[username]; ! } ! } ! print "</select><br>"; ! print "<input type=\"submit\" name=\"submit_user\" value=\"Edit User\">"; ! print "</form>"; ! } ! ! // Shows user management form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function show_user($userid) ! { ! if (!$userid || $userid == 1) { print "Invalid User"; return; } ! ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! $query = $DB->query("SELECT * FROM " . DB_USERS_TABLE . " WHERE userid=" . $userid); ! $user = $DB->fetchArray($query); ! ! // Print out the form for management ! print "<form method=\"post\" action=\"main.php?parse=" . ($this->p_action + 1) . "\">"; ! print "Username: <input type=\"text\" name=\"username\" value=\"" . $user[username] . "\"><br>"; ! print "Password: <input type=\"password\" name=\"passwd\"> (Leave blank to not change)<br>"; ! print "Email: <input type=\"email\" name=\"email\" value=\"" . $user[email] . "\"><br>"; ! print "Authentication Level: <select name=\"auth_level\">"; ! switch ($user[auth_level]) ! { ! case AUTH_LVL_MEM: ! $sel1 = "SELECTED"; ! break; ! case AUTH_LVL_CONTRIB: ! $sel2 = "SELECTED"; ! break; ! case AUTH_LVL_MOD: ! $sel3 = "SELECTED"; ! break; ! case AUTH_LVL_ADMIN: ! $sel4 = "SELECTED"; ! break; ! default: break; ! } ! print "<option value=\"1\" " . $sel1 . ">Standard Member"; ! print "<option value=\"2\" " . $sel2 . ">Contributor"; ! print "<option value=\"3\" " . $sel3 . ">Moderator"; ! print "<option value=\"4\" " . $sel4 . ">Administrator"; ! print "</select><br>"; ! print "Date Format: <input type=\"text\" name=\"date_format\" value=\"" . $user[date_format] . "\"><br>"; ! print "Template: <input type=\"text\" name=\"template\" value=\"" . $user[template] . "\"><br>"; ! print "Signature:<br>"; ! print "<textarea name=\"signature\" rows=\"5\" cols=\"40\">" . $user[signature] . "</textarea><br>"; ! print "<input type=\"checkbox\" name=\"delete\" value=\"delete\"> Delete User? (WARNING: This deletes the user for good)<br>"; ! print "<input type=\"submit\" name=\"submit_user_parse\" value=\"Submit User Changes\">"; ! print "<input type=\"hidden\" name=\"userid\" value=\"" . $user[userid] . "\">"; ! print "</form>"; ! } ! // Parse the user management form ! // Author: Anthony White ! // Accepts: The form variables ! // Returns: none. ! function parse_user($userid, $username, $passwd, $email, $auth_level, $date_format, $template, $signature, $delete) ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! if ($delete == "delete") ! { ! $DB->query("DELETE FROM " . DB_USERS_TABLE . " WHERE userid='" . $userid . "'"); ! return; ! } ! ! if ($passwd != "") ! { ! $DB->query("UPDATE " . DB_USERS_TABLE . " SET passwd='" . $passwd . "' WHERE userid='" . $userid . "'"); ! } ! $DB->query("UPDATE " . DB_USERS_TABLE . " SET username='" . $username . "', email='" . $email . "', auth_level='" . $auth_level . "', date_format='" . $date_format . "', template='" . $template . "', signature='" . $signature . "' WHERE userid='" . $userid . "'"); ! } } --- 4,217 ---- { ! var $p_action; // Action desired by the user ! // Executes the given admin action ! // Author: Anthony White ! // Accepts: $action - actions as defined above, used in switch / case ! // Returns: none. ! function execute($action) ! { ! $this->p_action = $action; ! switch ($action) ! { ! case C_ACTION_SITE: ! $this->_show_site(); ! break; ! case C_ACTION_USER: ! $this->_show_user(); ! break; ! default: break; ! } ! } ! // Shows the general management form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function _show_site() ! { ! // Print out a form for the user ! print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; ! print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; ! print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list ! print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! print "Account Activation Level: "; ! print "<select name=\"accact\">"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $sel0 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 1) { $sel1 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 2) { $sel2 = "SELECTED"; } ! print "<option value=\"0\" " . $sel0 . ">No Activation"; ! print "<option value=\"1\" " . $sel1 . ">User Activation"; ! print "<option value=\"2\" " . $sel2 . ">Admin Activation"; ! print "</select><br>"; ! print "System Timezone: "; ! print "<select name=\"systime\">"; ! print "<option value=\"" . GMT_MINUS_12 . "\">GMT -12 (International Dateline West)"; ! print "<option value=\"" . GMT_MINUS_11 . "\">GMT -11 (Midway Island, Simoa)"; ! print "<option value=\"" . GMT_MINUS_10 . "\">GMT -10 (Hawaii)"; ! print "<option value=\"" . GMT_MINUS_9 . "\">GMT -9 (Alaska)"; ! print "<option value=\"" . GMT_MINUS_8 . "\">GMT -8 (Pacific Time)"; ! print "<option value=\"" . GMT_MINUS_7 . "\">GMT -7 (Arizona, Mountain Time)"; ! print "<option value=\"" . GMT_MINUS_6 . "\">GMT -6 (Central Time)"; ! print "<option value=\"" . GMT_MINUS_5 . "\">GMT -5 (Eastern Time)"; ! print "<option value=\"" . GMT_MINUS_4 . "\">GMT -4 (Atlantic Time)"; ! print "<option value=\"" . GMT_MINUS_3_30 . "\">GMT -3.5 (Newfoundland)"; ! print "<option value=\"" . GMT_MINUS_3 . "\">GMT -3 (Greenland)"; ! print "<option value=\"" . GMT_MINUS_2 . "\">GMT -2 (Mid-Atlantic)"; ! print "<option value=\"" . GMT_MINUS_1 . "\">GMT -1 (Cape Verda Islands)"; ! print "<option value=\"" . GMT . "\">GMT (Greenwich Mean Time)"; ! print "<option value=\"" . GMT_PLUS_1 . "\">GMT +1 (Paris)"; ! print "<option value=\"" . GMT_PLUS_2 . "\">GMT +2 (Jerusalem)"; ! print "<option value=\"" . GMT_PLUS_3 . "\">GMT +3 (Moscow)"; ! print "<option value=\"" . GMT_PLUS_4 . "\">GMT +4 (Abu Dhabi)"; ! print "<option value=\"" . GMT_PLUS_4_30 . "\">GMT +4.5 (Kabul)"; ! print "<option value=\"" . GMT_PLUS_5 . "\">GMT +5 (Karachi)"; ! print "<option value=\"" . GMT_PLUS_5_30 . "\">GMT +5.5 (New Delhi)"; ! print "<option value=\"" . GMT_PLUS_5_45 . "\">GMT +5.75 (Kathmandu)"; ! print "<option value=\"" . GMT_PLUS_6 . "\">GMT +6 (Almaty)"; ! print "<option value=\"" . GMT_PLUS_6_30 . "\">GMT +6.5 (Rangoon)"; ! print "<option value=\"" . GMT_PLUS_7 . "\">GMT +7 (Bangkok)"; ! print "<option value=\"" . GMT_PLUS_8 . "\">GMT +8 (Beijing)"; ! print "<option value=\"" . GMT_PLUS_9 . "\">GMT +9 (Tokyo)"; ! print "<option value=\"" . GMT_PLUS_9_30 . "\">GMT +9.5 (Adelaide)"; ! print "<option value=\"" . GMT_PLUS_10 . "\">GMT +10 (Brisbane)"; ! print "<option value=\"" . GMT_PLUS_11 . "\">GMT +11 (Solomon Islands)"; ! print "<option value=\"" . GMT_PLUS_12 . "\">GMT +12 (Auckland)"; ! print "<option value=\"" . GMT_PLUS_13 . "\">GMT +13 (Nuku'alofa)"; ! print "</select> (Current: " . C_SYSTEM_TIMEZONE . ")<br>"; ! if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; ! print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; ! print "</form>"; ! } ! // Parses the general management form ! // Author: Anthony White ! // Accepts: Form values from the site config form ! // Returns: none. ! function parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms) ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! if ($ovrtpl != 1) { $ovrtpl = 0; } ! if ($portperms != 1) { $portperms = 0; } ! ! // We now go through each config_value and update it accordingly ! // I dont know if this is the only way, but it works fine for me ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $sname . "' WHERE config_key='site_name'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $ovrtpl . "' WHERE config_key='override_usr_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deftpl . "' WHERE config_key='default_tpl'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $deflang . "' WHERE config_key='default_lang'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $defdate . "' WHERE config_key='default_date_format'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $accact . "' WHERE config_key='enable_account_activation'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $systime . "' WHERE config_key='system_timezone'"); ! $DB->query("UPDATE " . DB_CONFIG_TABLE . " SET config_value='" . $portperms . "' WHERE config_key='use_portal_perms'"); ! } ! // Shows the user selection form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function _show_user() ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; ! print "Select user to edit: <select name=\"userid\">"; ! $query = $DB->query("SELECT * FROM " . DB_USERS_TABLE); ! while ($user = $DB->fetchArray($query)) ! { ! if ($user[userid] != 1) ! { ! print "<option value=\"" . $user[userid] . "\">" . $user[username]; ! } ! } ! print "</select><br>"; ! print "<input type=\"submit\" name=\"submit_user\" value=\"Edit User\">"; ! print "</form>"; ! } ! ! // Shows user management form ! // Author: Anthony White ! // Accepts: none. ! // Returns: none. ! function show_user($userid) ! { ! if (!$userid || $userid == 1) { print "Invalid User"; return; } ! ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! $query = $DB->query("SELECT * FROM " . DB_USERS_TABLE . " WHERE userid=" . $userid); ! $user = $DB->fetchArray($query); ! ! // Print out the form for management ! print "<form method=\"post\" action=\"main.php?parse=" . ($this->p_action + 1) . "\">"; ! print "Username: <input type=\"text\" name=\"username\" value=\"" . $user[username] . "\"><br>"; ! print "Password: <input type=\"password\" name=\"passwd\"> (Leave blank to not change)<br>"; ! print "Email: <input type=\"email\" name=\"email\" value=\"" . $user[email] . "\"><br>"; ! print "Authentication Level: <select name=\"auth_level\">"; ! switch ($user[auth_level]) ! { ! case AUTH_LVL_MEM: ! $sel1 = "SELECTED"; ! break; ! case AUTH_LVL_CONTRIB: ! $sel2 = "SELECTED"; ! break; ! case AUTH_LVL_MOD: ! $sel3 = "SELECTED"; ! break; ! case AUTH_LVL_ADMIN: ! $sel4 = "SELECTED"; ! break; ! default: break; ! } ! print "<option value=\"1\" " . $sel1 . ">Standard Member"; ! print "<option value=\"2\" " . $sel2 . ">Contributor"; ! print "<option value=\"3\" " . $sel3 . ">Moderator"; ! print "<option value=\"4\" " . $sel4 . ">Administrator"; ! print "</select><br>"; ! print "Date Format: <input type=\"text\" name=\"date_format\" value=\"" . $user[date_format] . "\"><br>"; ! print "Template: <input type=\"text\" name=\"template\" value=\"" . $user[template] . "\"><br>"; ! print "Signature:<br>"; ! print "<textarea name=\"signature\" rows=\"5\" cols=\"40\">" . $user[signature] . "</textarea><br>"; ! print "<input type=\"checkbox\" name=\"delete\" value=\"delete\"> Delete User? (WARNING: This deletes the user for good)<br>"; ! print "<input type=\"submit\" name=\"submit_user_parse\" value=\"Submit User Changes\">"; ! print "<input type=\"hidden\" name=\"userid\" value=\"" . $user[userid] . "\">"; ! print "</form>"; ! } ! // Parse the user management form ! // Author: Anthony White ! // Accepts: The form variables ! // Returns: none. ! function parse_user($userid, $username, $passwd, $email, $auth_level, $date_format, $template, $signature, $delete) ! { ! include_once( C_PHPMP_ROOT . 'dba/' . DB_TYPE . '.dba' ); ! $DB = new DB; ! ! if ($delete == "delete") ! { ! $DB->query("DELETE FROM " . DB_USERS_TABLE . " WHERE userid='" . $userid . "'"); ! return; ! } ! ! if ($passwd != "") ! { ! $DB->query("UPDATE " . DB_USERS_TABLE . " SET passwd='" . $passwd . "' WHERE userid='" . $userid . "'"); ! } ! $DB->query("UPDATE " . DB_USERS_TABLE . " SET username='" . $username . "', email='" . $email . "', auth_level='" . $auth_level . "', date_format='" . $date_format . "', template='" . $template . "', signature='" . $signature . "' WHERE userid='" . $userid . "'"); ! } } |