mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Configuration form work, 'sucsess' message screen needs some work..
git-svn-id: file:///svn/phpbb/trunk@779 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
37f287b546
commit
e98e3e1403
2 changed files with 81 additions and 40 deletions
|
@ -92,7 +92,7 @@ switch($mode)
|
|||
|
||||
$html_yes = ($allow_html) ? "CHECKED" : "";
|
||||
$html_no = (!$allow_html) ? "CHECKED" : "";
|
||||
$bbocde_yes = ($allow_bbcode) ? "CHECKED" : "";
|
||||
$bbcode_yes = ($allow_bbcode) ? "CHECKED" : "";
|
||||
$bbocde_no = (!$allow_bbcode) ? "CHECKED" : "";
|
||||
$activation_yes = ($require_activation) ? "CHECKED" : "";
|
||||
$activation_no = (!$require_activation) ? "CHECKED" : "";
|
||||
|
@ -116,8 +116,46 @@ switch($mode)
|
|||
|
||||
if($HTTP_POST_VARS['submit'])
|
||||
{
|
||||
$sql = "UPDATE ".CONFIG_TABLE." SET
|
||||
sitename = '$sitename',
|
||||
allow_html = '$allow_html',
|
||||
allow_bbcode = '$allow_bbcode',
|
||||
allow_smilies = '$allow_smile',
|
||||
allow_sig = '$allow_sig',
|
||||
allow_namechange = '$allow_namechange',
|
||||
allow_avatar_local = '$allow_avatars_local',
|
||||
allow_avatar_remote = '$allow_avatars_remote',
|
||||
allow_avatar_upload = '$allow_avatars_upload',
|
||||
posts_per_page = '$posts_per_page',
|
||||
topics_per_page = '$topics_per_page',
|
||||
hot_threshold = '$hot_topic',
|
||||
email_sig = '".addslashes($email_sig)."',
|
||||
email_from = '".addslashes($admin_email)."',
|
||||
smtp_delivery = '$use_smtp',
|
||||
smtp_host = '".addslashes($smtp_server)."',
|
||||
require_activation = '$require_activation',
|
||||
flood_interval = '$flood_interval',
|
||||
avatar_filesize = '$avatar_filesize',
|
||||
avatar_max_width = '$avatar_width',
|
||||
avatar_max_height = '$avatar_height',
|
||||
avatar_path = '".addslashes($avatar_path)."',
|
||||
default_theme = '$theme',
|
||||
default_lang = '$language',
|
||||
default_dateformat = '$date_format',
|
||||
system_timezone = '$timezone',
|
||||
sys_template = '$selected_template',
|
||||
gzip_compress = '$gzip' WHERE config_id = 1";
|
||||
|
||||
|
||||
if($db->sql_query($sql))
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['Config_updated'], "Success", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = 1;
|
||||
$error_arr = $db->sql_error();
|
||||
$error_msg = "Error updating database!<br />Reason: " . $error_arr['message'];
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -139,7 +177,7 @@ switch($mode)
|
|||
);
|
||||
|
||||
$template->assign_vars(array(
|
||||
"S_CONFIG_ACTION" => append_sid("admin/admin_board.$phpEx"),
|
||||
"S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"),
|
||||
"SITENAME" => $sitename,
|
||||
"ACTIVATION_YES" => $activation_yes,
|
||||
"ACTIVATION_NO" => $activation_no,
|
||||
|
|
|
@ -741,6 +741,9 @@ $lang['Ban_IP_explain'] = "To specify several different IP's or hostnames separa
|
|||
$lang['Ban_email'] = "Ban one or more email addresses";
|
||||
$lang['Ban_email_explain'] = "To specify more than one email address separate them with commas";
|
||||
|
||||
// Configuration
|
||||
$lang['Config_updated'] = "Forum Configuration Updated Sucessfully";
|
||||
|
||||
//
|
||||
// End
|
||||
// -------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue