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
|
@ -1,26 +1,26 @@
|
|||
<?php
|
||||
/***************************************************************************
|
||||
*
|
||||
* -------------------
|
||||
* begin : Thursday, Jul 12, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
* email : support@phpbb.com
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
/***************************************************************************
|
||||
*
|
||||
* -------------------
|
||||
* begin : Thursday, Jul 12, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
* email : support@phpbb.com
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
/***************************************************************************
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if($setmodules == 1)
|
||||
{
|
||||
|
@ -89,10 +89,10 @@ switch($mode)
|
|||
$email_sig = ($HTTP_POST_VARS['email_sig']) ? $HTTP_POST_VARS['email_sig'] : $board_config['board_email'];
|
||||
$use_smtp = ($HTTP_POST_VARS['use_smtp']) ? $HTTP_POST_VARS['use_smtp'] : $board_config['smtp_delivery'];
|
||||
$smtp_server = ($HTTP_POST_VARS['smtp_server']) ? $HTTP_POST_VARS['smtp_server'] : $board_config['smtp_host'];
|
||||
|
||||
|
||||
$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" : "";
|
||||
|
@ -112,14 +112,52 @@ switch($mode)
|
|||
$avatars_upload_no = (!$allow_avatars_upload) ? "CHECKED" : "";
|
||||
$smtp_yes = ($use_smtp) ? "CHECKED" : "";
|
||||
$smtp_no = (!$use_smtp) ? "CHECKED" : "";
|
||||
|
||||
|
||||
|
||||
|
||||
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'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Error occured, show the error box
|
||||
//
|
||||
|
@ -137,9 +175,9 @@ switch($mode)
|
|||
$template->set_filenames(array(
|
||||
"body" => "admin/admin_config_body.tpl")
|
||||
);
|
||||
|
||||
|
||||
$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,
|
||||
|
@ -183,7 +221,7 @@ switch($mode)
|
|||
);
|
||||
|
||||
$template->pparse("body");
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
include('page_footer_admin.'.$phpEx);
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
//
|
||||
// ---> $lang['message'] = "text";
|
||||
//
|
||||
// message should be a GOOD representation of text, including capitalisation
|
||||
// and underscoring for spacing. Remember different languages often interpret
|
||||
// message should be a GOOD representation of text, including capitalisation
|
||||
// and underscoring for spacing. Remember different languages often interpret
|
||||
// consecutive words in different ways, so if you're building a sentence then
|
||||
// try and indicate what 'words' follow
|
||||
//
|
||||
|
@ -75,7 +75,7 @@ $lang['Next'] = "Next";
|
|||
$lang['Previous'] = "Previous";
|
||||
$lang['Goto_page'] = "Goto page";
|
||||
$lang['Page'] = "Page"; // Followed by the current page number then 'of x' where x is total pages
|
||||
$lang['Pages'] = "Pages";
|
||||
$lang['Pages'] = "Pages";
|
||||
$lang['of'] = "of"; // See Page above
|
||||
$lang['Go'] = "Go";
|
||||
|
||||
|
@ -98,7 +98,7 @@ $lang['read_posts'] = "read posts in this forum";
|
|||
$lang['post_topics'] = "post new topics in this forum";
|
||||
$lang['reply_posts'] = "reply to posts in this forum";
|
||||
$lang['edit_posts'] = "edit your posts in this forum";
|
||||
$lang['delete_posts'] = "delete your posts in this forum";
|
||||
$lang['delete_posts'] = "delete your posts in this forum";
|
||||
$lang['moderate_forum'] = "moderate this forum";
|
||||
|
||||
$lang['View_latest_post'] = "View latest post";
|
||||
|
@ -170,7 +170,7 @@ $lang['Log_me_in'] = "Log me on automatically each visit";
|
|||
// Index page
|
||||
//
|
||||
$lang['No_Posts'] = "No Posts";
|
||||
$lang['Forum_Index'] = "Forum Index";
|
||||
$lang['Forum_Index'] = "Forum Index";
|
||||
$lang['No_forums'] = "This board has no forums";
|
||||
|
||||
$lang['Private_Messages'] = "Private Messages";
|
||||
|
@ -266,7 +266,7 @@ $lang['Attach_signature'] = "Attach signature (signatures can be changed in prof
|
|||
$lang['Disable'] = "Disable "; // This is followed by a type, eg. HTML, Smilies, etc. and then 'on this post'
|
||||
$lang['HTML'] = "HTML";
|
||||
$lang['BBCode'] = "BBCode";
|
||||
$lang['Smilies'] = "Smilies";
|
||||
$lang['Smilies'] = "Smilies";
|
||||
$lang['in_this_post'] = " in this post";
|
||||
$lang['Notify'] = "Notify";
|
||||
$lang['Delete_post'] = "Delete this post";
|
||||
|
@ -301,8 +301,8 @@ $lang['Flag'] = "Flag";
|
|||
$lang['Subject'] = "Subject";
|
||||
$lang['From'] = "From";
|
||||
$lang['To'] = "To";
|
||||
$lang['Date'] = "Date";
|
||||
$lang['Mark'] = "Mark";
|
||||
$lang['Date'] = "Date";
|
||||
$lang['Mark'] = "Mark";
|
||||
$lang['Display_messages'] = "Display messages from previous"; // Followed by number of days/weeks/months
|
||||
$lang['All_Messages'] = "All Messages";
|
||||
|
||||
|
@ -357,7 +357,7 @@ $lang['Search_user_posts'] = "Search for posts by this user";
|
|||
$lang['Interests'] = "Interests";
|
||||
$lang['Occupation'] = "Occupation";
|
||||
|
||||
$lang['posts_per_day'] = "posts per day";
|
||||
$lang['posts_per_day'] = "posts per day";
|
||||
$lang['of_total'] = "of total"; // follows percentage of total posts
|
||||
|
||||
$lang['Wrong_Profile'] = "You cannot modify a profile that is not your own.";
|
||||
|
@ -472,7 +472,7 @@ $lang['Select_sort_method'] = "Select sort method";
|
|||
$lang['Sort'] = "Sort";
|
||||
$lang['Top_Ten'] = "Top Ten Posters";
|
||||
$lang['Ascending'] = "Ascending";
|
||||
$lang['Descending'] = "Descending";
|
||||
$lang['Descending'] = "Descending";
|
||||
$lang['Order'] = "Order";
|
||||
|
||||
//
|
||||
|
@ -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