mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Split up single page into several ... still not happy with certain splits or the "Default" page ...
git-svn-id: file:///svn/phpbb/trunk@2772 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cdcd5a1e4d
commit
bcdd07232c
1 changed files with 378 additions and 217 deletions
|
@ -27,9 +27,12 @@ if ( !empty($setmodules) )
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = basename(__FILE__);
|
$file = basename(__FILE__);
|
||||||
$module['General']['Avatars'] = "$file$SID&mode=avatars";
|
$module['General']['Avatar_settings'] = "$file$SID&mode=avatars";
|
||||||
$module['General']['Cookies'] = "$file$SID&mode=cookies";
|
$module['General']['Cookie_settings'] = "$file$SID&mode=cookies";
|
||||||
$module['General']['Defaults'] = "$file$SID&mode=gendefs";
|
$module['General']['Board_defaults'] = "$file$SID&mode=defaults";
|
||||||
|
$module['General']['Board_settings'] = "$file$SID&mode=settings";
|
||||||
|
$module['General']['Email_settings'] = "$file$SID&mode=email";
|
||||||
|
$module['General']['Server_settings'] = "$file$SID&mode=server";
|
||||||
$module['Users']['Defaults'] = "$file$SID&mode=userdefs";
|
$module['Users']['Defaults'] = "$file$SID&mode=userdefs";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -38,42 +41,62 @@ if ( !empty($setmodules) )
|
||||||
// Let's set the root dir for phpBB
|
// Let's set the root dir for phpBB
|
||||||
//
|
//
|
||||||
define('IN_PHPBB', 1);
|
define('IN_PHPBB', 1);
|
||||||
$phpbb_root_path = "../";
|
$phpbb_root_path = '../';
|
||||||
require($phpbb_root_path . 'extension.inc');
|
require($phpbb_root_path . 'extension.inc');
|
||||||
require('pagestart.' . $phpEx);
|
require('pagestart.' . $phpEx);
|
||||||
|
|
||||||
if ( !$acl->get_acl_admin('general') )
|
if ( !$acl->get_acl_admin('general') )
|
||||||
{
|
{
|
||||||
return;
|
message_die(MESSAGE, $lang['No_admin']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
|
||||||
|
{
|
||||||
|
$mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$mode = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Pull all config data
|
// Pull all config data
|
||||||
//
|
//
|
||||||
$sql = "SELECT *
|
switch ( $mode )
|
||||||
FROM " . CONFIG_TABLE;
|
|
||||||
$result = $db->sql_query($sql);
|
|
||||||
|
|
||||||
while ( $row = $db->sql_fetchrow($result) )
|
|
||||||
{
|
{
|
||||||
$config_name = $row['config_name'];
|
case 'userdefs':
|
||||||
$config_value = $row['config_value'];
|
$sql = "SELECT *
|
||||||
$default_config[$config_name] = $config_value;
|
FROM " . CONFIG_USER_TABLE;
|
||||||
|
$result = $db->sql_query($sql);
|
||||||
$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];
|
break;
|
||||||
|
|
||||||
if ( isset($HTTP_POST_VARS['submit']) )
|
default:
|
||||||
{
|
$sql = "SELECT *
|
||||||
$sql = "UPDATE " . CONFIG_TABLE . " SET
|
FROM " . CONFIG_TABLE;
|
||||||
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
|
$result = $db->sql_query($sql);
|
||||||
WHERE config_name = '$config_name'";
|
|
||||||
$db->sql_query($sql);
|
while ( $row = $db->sql_fetchrow($result) )
|
||||||
}
|
{
|
||||||
|
$config_name = $row['config_name'];
|
||||||
|
$config_value = $row['config_value'];
|
||||||
|
$default_config[$config_name] = $config_value;
|
||||||
|
|
||||||
|
$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];
|
||||||
|
|
||||||
|
if ( isset($HTTP_POST_VARS['submit']) )
|
||||||
|
{
|
||||||
|
$sql = "UPDATE " . CONFIG_TABLE . " SET
|
||||||
|
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
|
||||||
|
WHERE config_name = '$config_name'";
|
||||||
|
$db->sql_query($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($HTTP_POST_VARS['submit']) )
|
if ( isset($HTTP_POST_VARS['submit']) )
|
||||||
{
|
{
|
||||||
$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], '<a href="' . "admin_board.$phpEx$SID" . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . "index.$phpEx$SID?pane=right" . '">', '</a>');
|
$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], '<a href="' . "admin_board.$phpEx$SID&mode=$mode" . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . "index.$phpEx$SID?pane=right" . '">', '</a>');
|
||||||
|
|
||||||
message_die(MESSAGE, $message);
|
message_die(MESSAGE, $message);
|
||||||
}
|
}
|
||||||
|
@ -85,16 +108,13 @@ $timezone_select = tz_select($new['board_timezone'], 'board_timezone');
|
||||||
$disable_board_yes = ( $new['board_disable'] ) ? 'checked="checked"' : '';
|
$disable_board_yes = ( $new['board_disable'] ) ? 'checked="checked"' : '';
|
||||||
$disable_board_no = ( !$new['board_disable'] ) ? 'checked="checked"' : '';
|
$disable_board_no = ( !$new['board_disable'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
$cookie_secure_yes = ( $new['cookie_secure'] ) ? 'checked="checked"' : '';
|
|
||||||
$cookie_secure_no = ( !$new['cookie_secure'] ) ? 'checked="checked"' : '';
|
|
||||||
|
|
||||||
$html_tags = $new['allow_html_tags'];
|
$html_tags = $new['allow_html_tags'];
|
||||||
|
|
||||||
$override_user_style_yes = ( $new['override_user_style'] ) ? 'checked="checked"' : '';
|
$override_user_style_yes = ( $new['override_user_style'] ) ? 'checked="checked"' : '';
|
||||||
$override_user_style_no = ( !$new['override_user_style'] ) ? 'checked="checked"' : '';
|
$override_user_style_no = ( !$new['override_user_style'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
$html_yes = ( $new['allow_html'] ) ? 'checked="checked"' : '';
|
$htmYes = ( $new['allow_html'] ) ? 'checked="checked"' : '';
|
||||||
$html_no = ( !$new['allow_html'] ) ? 'checked="checked"' : '';
|
$htmNo = ( !$new['allow_html'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
$bbcode_yes = ( $new['allow_bbcode'] ) ? 'checked="checked"' : '';
|
$bbcode_yes = ( $new['allow_bbcode'] ) ? 'checked="checked"' : '';
|
||||||
$bbcode_no = ( !$new['allow_bbcode'] ) ? 'checked="checked"' : '';
|
$bbcode_no = ( !$new['allow_bbcode'] ) ? 'checked="checked"' : '';
|
||||||
|
@ -124,200 +144,341 @@ $sig_no = ( !$new['allow_sig'] ) ? 'checked="checked"' : '';
|
||||||
$namechange_yes = ( $new['allow_namechange'] ) ? 'checked="checked"' : '';
|
$namechange_yes = ( $new['allow_namechange'] ) ? 'checked="checked"' : '';
|
||||||
$namechange_no = ( !$new['allow_namechange'] ) ? 'checked="checked"' : '';
|
$namechange_no = ( !$new['allow_namechange'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? 'checked="checked"' : '';
|
|
||||||
$avatars_local_no = ( !$new['allow_avatar_local'] ) ? 'checked="checked"' : '';
|
|
||||||
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? 'checked="checked"' : '';
|
|
||||||
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? 'checked="checked"' : '';
|
|
||||||
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? 'checked="checked"' : '';
|
|
||||||
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? 'checked="checked"' : '';
|
|
||||||
|
|
||||||
$smtp_yes = ( $new['smtp_delivery'] ) ? 'checked="checked"' : '';
|
$smtp_yes = ( $new['smtp_delivery'] ) ? 'checked="checked"' : '';
|
||||||
$smtp_no = ( !$new['smtp_delivery'] ) ? 'checked="checked"' : '';
|
$smtp_no = ( !$new['smtp_delivery'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
$template->set_filenames(array(
|
switch ( $mode )
|
||||||
"body" => "admin/board_config_body.tpl")
|
{
|
||||||
);
|
case 'cookies':
|
||||||
|
$cookie_secure_yes = ( $new['cookie_secure'] ) ? 'checked="checked"' : '';
|
||||||
|
$cookie_secure_no = ( !$new['cookie_secure'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
//
|
page_header($lang['Cookie_settings']);
|
||||||
// Escape any quotes in the site description for proper display in the text
|
|
||||||
// box on the admin page
|
|
||||||
//
|
|
||||||
$template->assign_vars(array(
|
|
||||||
"S_CONFIG_ACTION" => "admin_board.$phpEx$SID",
|
|
||||||
|
|
||||||
"L_YES" => $lang['Yes'],
|
?>
|
||||||
"L_NO" => $lang['No'],
|
|
||||||
"L_CONFIGURATION_TITLE" => $lang['General_Config'],
|
|
||||||
"L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'],
|
|
||||||
"L_GENERAL_SETTINGS" => $lang['General_settings'],
|
|
||||||
"L_SERVER_NAME" => $lang['Server_name'],
|
|
||||||
"L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'],
|
|
||||||
"L_SERVER_PORT" => $lang['Server_port'],
|
|
||||||
"L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'],
|
|
||||||
"L_SCRIPT_PATH" => $lang['Script_path'],
|
|
||||||
"L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'],
|
|
||||||
"L_SITE_NAME" => $lang['Site_name'],
|
|
||||||
"L_SITE_DESCRIPTION" => $lang['Site_desc'],
|
|
||||||
"L_DISABLE_BOARD" => $lang['Board_disable'],
|
|
||||||
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
|
|
||||||
"L_ACCT_ACTIVATION" => $lang['Acct_activation'],
|
|
||||||
"L_NONE" => $lang['Acc_None'],
|
|
||||||
"L_USER" => $lang['Acc_User'],
|
|
||||||
"L_ADMIN" => $lang['Acc_Admin'],
|
|
||||||
"L_COOKIE_SETTINGS" => $lang['Cookie_settings'],
|
|
||||||
"L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'],
|
|
||||||
"L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
|
|
||||||
"L_COOKIE_NAME" => $lang['Cookie_name'],
|
|
||||||
"L_COOKIE_PATH" => $lang['Cookie_path'],
|
|
||||||
"L_COOKIE_SECURE" => $lang['Cookie_secure'],
|
|
||||||
"L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'],
|
|
||||||
"L_SESSION_LENGTH" => $lang['Session_length'],
|
|
||||||
"L_PRIVATE_MESSAGING" => $lang['Private_Messaging'],
|
|
||||||
"L_INBOX_LIMIT" => $lang['Inbox_limits'],
|
|
||||||
"L_SENTBOX_LIMIT" => $lang['Sentbox_limits'],
|
|
||||||
"L_SAVEBOX_LIMIT" => $lang['Savebox_limits'],
|
|
||||||
"L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'],
|
|
||||||
"L_ENABLED" => $lang['Enabled'],
|
|
||||||
"L_DISABLED" => $lang['Disabled'],
|
|
||||||
"L_ABILITIES_SETTINGS" => $lang['Abilities_settings'],
|
|
||||||
"L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'],
|
|
||||||
"L_FLOOD_INTERVAL" => $lang['Flood_Interval'],
|
|
||||||
"L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'],
|
|
||||||
"L_BOARD_EMAIL_FORM" => $lang['Board_email_form'],
|
|
||||||
"L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'],
|
|
||||||
"L_TOPICS_PER_PAGE" => $lang['Topics_per_page'],
|
|
||||||
"L_POSTS_PER_PAGE" => $lang['Posts_per_page'],
|
|
||||||
"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
|
|
||||||
"L_DEFAULT_STYLE" => $lang['Default_style'],
|
|
||||||
"L_OVERRIDE_STYLE" => $lang['Override_style'],
|
|
||||||
"L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'],
|
|
||||||
"L_DEFAULT_LANGUAGE" => $lang['Default_language'],
|
|
||||||
"L_DATE_FORMAT" => $lang['Date_format'],
|
|
||||||
"L_SYSTEM_TIMEZONE" => $lang['System_timezone'],
|
|
||||||
"L_ENABLE_GZIP" => $lang['Enable_gzip'],
|
|
||||||
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
|
|
||||||
"L_ALLOW_HTML" => $lang['Allow_HTML'],
|
|
||||||
"L_ALLOW_BBCODE" => $lang['Allow_BBCode'],
|
|
||||||
"L_ALLOWED_TAGS" => $lang['Allowed_tags'],
|
|
||||||
"L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'],
|
|
||||||
"L_ALLOW_SMILIES" => $lang['Allow_smilies'],
|
|
||||||
"L_SMILIES_PATH" => $lang['Smilies_path'],
|
|
||||||
"L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'],
|
|
||||||
"L_ALLOW_SIG" => $lang['Allow_sig'],
|
|
||||||
"L_MAX_SIG_LENGTH" => $lang['Max_sig_length'],
|
|
||||||
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
|
|
||||||
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
|
|
||||||
"L_AVATAR_SETTINGS" => $lang['Avatar_settings'],
|
|
||||||
"L_ALLOW_LOCAL" => $lang['Allow_local'],
|
|
||||||
"L_ALLOW_REMOTE" => $lang['Allow_remote'],
|
|
||||||
"L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'],
|
|
||||||
"L_ALLOW_UPLOAD" => $lang['Allow_upload'],
|
|
||||||
"L_MAX_FILESIZE" => $lang['Max_filesize'],
|
|
||||||
"L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'],
|
|
||||||
"L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'],
|
|
||||||
"L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'],
|
|
||||||
"L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'],
|
|
||||||
"L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'],
|
|
||||||
"L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'],
|
|
||||||
"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],
|
|
||||||
"L_COPPA_SETTINGS" => $lang['COPPA_settings'],
|
|
||||||
"L_COPPA_FAX" => $lang['COPPA_fax'],
|
|
||||||
"L_COPPA_MAIL" => $lang['COPPA_mail'],
|
|
||||||
"L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'],
|
|
||||||
"L_EMAIL_SETTINGS" => $lang['Email_settings'],
|
|
||||||
"L_ADMIN_EMAIL" => $lang['Admin_email'],
|
|
||||||
"L_EMAIL_SIG" => $lang['Email_sig'],
|
|
||||||
"L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'],
|
|
||||||
"L_USE_SMTP" => $lang['Use_SMTP'],
|
|
||||||
"L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'],
|
|
||||||
"L_SMTP_SERVER" => $lang['SMTP_server'],
|
|
||||||
"L_SMTP_USERNAME" => $lang['SMTP_username'],
|
|
||||||
"L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'],
|
|
||||||
"L_SMTP_PASSWORD" => $lang['SMTP_password'],
|
|
||||||
"L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'],
|
|
||||||
"L_SUBMIT" => $lang['Submit'],
|
|
||||||
"L_RESET" => $lang['Reset'],
|
|
||||||
|
|
||||||
"SERVER_NAME" => $new['server_name'],
|
|
||||||
"SCRIPT_PATH" => $new['script_path'],
|
|
||||||
"SERVER_PORT" => $new['server_port'],
|
|
||||||
"SITENAME" => htmlentities($new['sitename']),
|
|
||||||
"SITE_DESCRIPTION" => htmlentities($new['site_desc']),
|
|
||||||
"S_DISABLE_BOARD_YES" => $disable_board_yes,
|
|
||||||
"S_DISABLE_BOARD_NO" => $disable_board_no,
|
|
||||||
"ACTIVATION_NONE" => USER_ACTIVATION_NONE,
|
|
||||||
"ACTIVATION_NONE_CHECKED" => $activation_none,
|
|
||||||
"ACTIVATION_USER" => USER_ACTIVATION_SELF,
|
|
||||||
"ACTIVATION_USER_CHECKED" => $activation_user,
|
|
||||||
"ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN,
|
|
||||||
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
|
|
||||||
"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes,
|
|
||||||
"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no,
|
|
||||||
"MAX_POLL_OPTIONS" => $new['max_poll_options'],
|
|
||||||
"FLOOD_INTERVAL" => $new['flood_interval'],
|
|
||||||
"TOPICS_PER_PAGE" => $new['topics_per_page'],
|
|
||||||
"POSTS_PER_PAGE" => $new['posts_per_page'],
|
|
||||||
"HOT_TOPIC" => $new['hot_threshold'],
|
|
||||||
"STYLE_SELECT" => $style_select,
|
|
||||||
"OVERRIDE_STYLE_YES" => $override_user_style_yes,
|
|
||||||
"OVERRIDE_STYLE_NO" => $override_user_style_no,
|
|
||||||
"LANG_SELECT" => $lang_select,
|
|
||||||
"L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'],
|
|
||||||
"DEFAULT_DATEFORMAT" => $new['default_dateformat'],
|
|
||||||
"TIMEZONE_SELECT" => $timezone_select,
|
|
||||||
"S_PRIVMSG_ENABLED" => $privmsg_on,
|
|
||||||
"S_PRIVMSG_DISABLED" => $privmsg_off,
|
|
||||||
"INBOX_LIMIT" => $new['max_inbox_privmsgs'],
|
|
||||||
"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
|
|
||||||
"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
|
|
||||||
"COOKIE_DOMAIN" => $new['cookie_domain'],
|
|
||||||
"COOKIE_NAME" => $new['cookie_name'],
|
|
||||||
"COOKIE_PATH" => $new['cookie_path'],
|
|
||||||
"SESSION_LENGTH" => $new['session_length'],
|
|
||||||
"S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes,
|
|
||||||
"S_COOKIE_SECURE_DISABLED" => $cookie_secure_no,
|
|
||||||
"GZIP_YES" => $gzip_yes,
|
|
||||||
"GZIP_NO" => $gzip_no,
|
|
||||||
"PRUNE_YES" => $prune_yes,
|
|
||||||
"PRUNE_NO" => $prune_no,
|
|
||||||
"HTML_TAGS" => $html_tags,
|
|
||||||
"HTML_YES" => $html_yes,
|
|
||||||
"HTML_NO" => $html_no,
|
|
||||||
"BBCODE_YES" => $bbcode_yes,
|
|
||||||
"BBCODE_NO" => $bbcode_no,
|
|
||||||
"SMILE_YES" => $smile_yes,
|
|
||||||
"SMILE_NO" => $smile_no,
|
|
||||||
"SIG_YES" => $sig_yes,
|
|
||||||
"SIG_NO" => $sig_no,
|
|
||||||
"SIG_SIZE" => $new['max_sig_chars'],
|
|
||||||
"NAMECHANGE_YES" => $namechange_yes,
|
|
||||||
"NAMECHANGE_NO" => $namechange_no,
|
|
||||||
"AVATARS_LOCAL_YES" => $avatars_local_yes,
|
|
||||||
"AVATARS_LOCAL_NO" => $avatars_local_no,
|
|
||||||
"AVATARS_REMOTE_YES" => $avatars_remote_yes,
|
|
||||||
"AVATARS_REMOTE_NO" => $avatars_remote_no,
|
|
||||||
"AVATARS_UPLOAD_YES" => $avatars_upload_yes,
|
|
||||||
"AVATARS_UPLOAD_NO" => $avatars_upload_no,
|
|
||||||
"AVATAR_FILESIZE" => $new['avatar_filesize'],
|
|
||||||
"AVATAR_MAX_HEIGHT" => $new['avatar_max_height'],
|
|
||||||
"AVATAR_MAX_WIDTH" => $new['avatar_max_width'],
|
|
||||||
"AVATAR_PATH" => $new['avatar_path'],
|
|
||||||
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],
|
|
||||||
"SMILIES_PATH" => $new['smilies_path'],
|
|
||||||
"INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'],
|
|
||||||
"SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'],
|
|
||||||
"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'],
|
|
||||||
"EMAIL_FROM" => $new['board_email'],
|
|
||||||
"EMAIL_SIG" => $new['board_email_sig'],
|
|
||||||
"SMTP_YES" => $smtp_yes,
|
|
||||||
"SMTP_NO" => $smtp_no,
|
|
||||||
"SMTP_HOST" => $new['smtp_host'],
|
|
||||||
"SMTP_USERNAME" => $new['smtp_username'],
|
|
||||||
"SMTP_PASSWORD" => $new['smtp_password'],
|
|
||||||
"COPPA_MAIL" => $new['coppa_mail'],
|
|
||||||
"COPPA_FAX" => $new['coppa_fax'])
|
|
||||||
);
|
|
||||||
|
|
||||||
include('page_footer_admin.'.$phpEx);
|
<h1><?php echo $lang['Cookie_settings']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Cookie_settings_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Cookie_settings']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="50%"><?php echo $lang['Cookie_domain']; ?></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="255" name="cookie_domain" value="<?php echo $new['cookie_domain']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Cookie_name']; ?></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="16" name="cookie_name" value="<?php echo $new['cookie_name']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Cookie_path']; ?></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="255" name="cookie_path" value="<?php echo $new['cookie_path']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Cookie_secure']; ?><br /><span class="gensmall"><?php echo $lang['Cookie_secure_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="cookie_secure" value="0"<?php echo $cookie_secure_no; ?> /><?php echo $lang['Disabled']; ?> <input type="radio" name="cookie_secure" value="1"<?php echo $cookie_secure_yes; ?> /><?php echo $lang['Enabled']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Session_length']; ?></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="5" size="5" name="session_length" value="<?php echo $new['session_length']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'avatars':
|
||||||
|
$avatars_locaYes = ( $new['allow_avatar_local'] ) ? 'checked="checked"' : '';
|
||||||
|
$avatars_locaNo = ( !$new['allow_avatar_local'] ) ? 'checked="checked"' : '';
|
||||||
|
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? 'checked="checked"' : '';
|
||||||
|
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? 'checked="checked"' : '';
|
||||||
|
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? 'checked="checked"' : '';
|
||||||
|
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? 'checked="checked"' : '';
|
||||||
|
|
||||||
|
page_header($lang['Avatar_settings']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<h1><?php echo $lang['Avatar_settings']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Avatar_settings_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Avatar_settings']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="50%"><?php echo $lang['Allow_local']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_avatar_local" value="1"<?php echo $avatars_locaYes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_avatar_local" value="0"<?php echo $avatars_locaNo; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_remote']; ?> <br /><span class="gensmall"><?php echo $lang['Allow_remote_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_avatar_remote" value="1"<?php echo $avatars_remote_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_avatar_remote" value="0"<?php echo $avatars_remote_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_upload']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_avatar_upload" value="1"<?php echo $avatars_upload_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_avatar_upload" value="0"<?php echo $avatars_upload_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Max_filesize']; ?><br /><span class="gensmall"><?php echo $lang['Max_filesize_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="4" maxlength="10" name="avatar_filesize" value="<?php echo $new['avatar_filesize']; ?>" /> Bytes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Max_avatar_size']; ?> <br /><span class="gensmall"><?php echo $lang['Max_avatar_size_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="3" maxlength="4" name="avatar_max_height" value="<?php echo $new['avatar_max_height']; ?>" /> x <input type="text" size="3" maxlength="4" name="avatar_max_width" value="<?php echo $new['avatar_max_width']; ?>"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Avatar_storage_path']; ?> <br /><span class="gensmall"><?php echo $lang['Avatar_storage_path_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="20" maxlength="255" name="avatar_path" value="<?php echo $new['avatar_path']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Avatar_gallery_path']; ?> <br /><span class="gensmall"><?php echo $lang['Avatar_gallery_path_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="20" maxlength="255" name="avatar_gallery_path" value="<?php echo $new['avatar_gallery_path']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'defaults':
|
||||||
|
|
||||||
|
page_header($lang['Board_defaults']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<h1><?php echo $lang['Board_defaults']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Board_defaults_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Board_defaults']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="50%"><?php echo $lang['Default_style']; ?></td>
|
||||||
|
<td class="row2"><?php echo $style_select; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Override_style']; ?><br /><span class="gensmall"><?php echo $lang['Override_style_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="override_user_style" value="1" <?php echo $override_user_style_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="override_user_style" value="0" <?php echo $override_user_style_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Default_language']; ?></td>
|
||||||
|
<td class="row2"><?php echo $lang_select; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Date_format']; ?><br /><span class="gensmall"><?php echo $lang['Date_format_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" name="default_dateformat" value="<?php echo $new['default_dateformat']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['System_timezone']; ?></td>
|
||||||
|
<td class="row2"><?php echo $timezone_select; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_HTML']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_html" value="1" <?php echo $html_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_html" value="0" <?php echo $html_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allowed_tags']; ?><br /><span class="gensmall"><?php echo $lang['Allowed_tags_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="30" maxlength="255" name="allow_html_tags" value="<?php echo $html_tags; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_BBCode']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_bbcode" value="1" <?php echo $bbcode_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_bbcode" value="0" <?php echo $bbcode_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_smilies']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_smilies" value="1" <?php echo $smile_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_smilies" value="0" <?php echo $smile_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Smilies_path']; ?> <br /><span class="gensmall"><?php echo $lang['Smilies_path_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="20" maxlength="255" name="smilies_path" value="<?php echo $new['smilies_path']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_sig']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_sig" value="1" <?php echo $sig_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_sig" value="0" <?php echo $sig_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Max_sig_length']; ?><br /><span class="gensmall"><?php echo $lang['Max_sig_length_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_chars" value="<?php echo $new['max_sig_chars']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Allow_name_change']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="allow_namechange" value="1" <?php echo $namechange_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="allow_namechange" value="0" <?php echo $namechange_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'settings':
|
||||||
|
|
||||||
|
page_header($lang['Board_settings']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<h1><?php echo $lang['Board_settings']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Board_settings_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Board_settings']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="50%"><?php echo $lang['Site_name']; ?></td>
|
||||||
|
<td class="row2"><input type="text" size="40" maxlength="255" name="sitename" value="<?php echo htmlentities($new['sitename']); ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Site_desc']; ?></td>
|
||||||
|
<td class="row2"><input type="text" size="40" maxlength="255" name="site_desc" value="<?php echo htmlentities($new['site_desc']); ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Board_disable']; ?><br /><span class="gensmall"><?php echo $lang['Board_disable_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="board_disable" value="1" <?php echo $disable_board_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="board_disable" value="0" <?php echo $disable_board_no; ?> /> <?php echo $lang['No']; ?><br /><input type="text" name="board_disable_msg" maxlength="255" size="40" value="<?php echo $new['board_disable_msg']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Enable_gzip']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="gzip_compress" value="1" <?php echo $gzip_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="gzip_compress" value="0" <?php echo $gzip_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Enable_prune']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="prune_enable" value="1" <?php echo $prune_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="prune_enable" value="0" <?php echo $prune_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Acct_activation']; ?><br /><span class="gensmall"><?php echo $lang['Acct_activation_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="require_activation" value="<?php echo USER_ACTIVATION_NONE; ?>" <?php echo $activation_none; ?> /><?php echo $lang['Acc_None']; ?> <input type="radio" name="require_activation" value="<?php echo USER_ACTIVATION_SELF; ?>" <?php echo $activation_user; ?> /><?php echo $lang['Acc_User']; ?> <input type="radio" name="require_activation" value="<?php echo USER_ACTIVATION_ADMIN; ?>" <?php echo $activation_admin; ?> /><?php echo $lang['Acc_Admin']; ?> <input type="radio" name="require_activation" value="<?php echo USER_ACTIVATION_DISABLE; ?>" <?php echo $activation_disable; ?> /><?php echo $lang['Acc_Disable']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Enable_COPPA']; ?><br /><span class="gensmall"><?php echo $lang['Enable_COPPA_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="coppa_enable" value="1" <?php echo $coppa_enable_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="coppa_enable" value="0" <?php echo $coppa_enable_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['COPPA_fax']; ?></td>
|
||||||
|
<td class="row2"><input type="text" size="25" maxlength="100" name="coppa_fax" value="<?php echo $new['coppa_fax']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['COPPA_mail']; ?><br /><span class="gensmall"><?php echo $lang['COPPA_mail_explain']; ?></span></td>
|
||||||
|
<td class="row2"><textarea name="coppa_mail" rows="5" cols="40"><?php echo $new['coppa_mail']; ?></textarea></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Private_Messaging']; ?></td>
|
||||||
|
<td class="row2"><input type="radio" name="privmsg_disable" value="0" <?php echo $privmsg_on; ?> /><?php echo $lang['Enabled']; ?> <input type="radio" name="privmsg_disable" value="1" <?php echo $privmsg_off; ?> /><?php echo $lang['Disabled']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Boxes_max']; ?><br /><span class="gensmall"><?php echo $lang['Boxes_max_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="4" size="4" name="pm_max_boxes" value="<?php echo $new['pm_max_boxes']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Boxes_limit']; ?><br /><span class="gensmall"><?php echo $lang['Boxes_limit_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="4" size="4" name="pm_max_msgs" value="<?php echo $new['pm_max_msgs']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Flood_Interval']; ?> <br /><span class="gensmall"><?php echo $lang['Flood_Interval_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" size="3" maxlength="4" name="flood_interval" value="<?php echo $new['flood_interval']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Topics_per_page']; ?></td>
|
||||||
|
<td class="row2"><input type="text" name="topics_per_page" size="3" maxlength="4" value="<?php echo $new['topics_per_page']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Posts_per_page']; ?></td>
|
||||||
|
<td class="row2"><input type="text" name="posts_per_page" size="3" maxlength="4" value="<?php echo $new['posts_per_page']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Hot_threshold']; ?></td>
|
||||||
|
<td class="row2"><input type="text" name="hot_threshold" size="3" maxlength="4" value="<?php echo $new['hot_threshold']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Max_poll_options']; ?></td>
|
||||||
|
<td class="row2"><input type="text" name="max_poll_options" size="4" maxlength="4" value="<?php echo $new['max_poll_options']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'email':
|
||||||
|
|
||||||
|
page_header($lang['Email_settings']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<h1><?php echo $lang['Email_settings']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Email_settings_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Email_settings']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Board_email_form']; ?><br /><span class="gensmall"><?php echo $lang['Board_email_form_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="board_email_form" value="1" <?php echo $board_email_form_yes; ?> /> <?php echo $lang['Enabled']; ?> <input type="radio" name="board_email_form" value="0" <?php echo $board_email_form_no; ?> /> <?php echo $lang['Disabled']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1" width="50%"><?php echo $lang['Admin_email']; ?></td>
|
||||||
|
<td class="row2"><input type="text" size="25" maxlength="100" name="board_email" value="<?php echo $new['board_email']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Email_sig']; ?><br /><span class="gensmall"><?php echo $lang['Email_sig_explain']; ?></span></td>
|
||||||
|
<td class="row2"><textarea name="board_email_sig" rows="5" cols="30"><?php echo $new['board_email_sig']; ?></textarea></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Use_SMTP']; ?><br /><span class="gensmall"><?php echo $lang['Use_SMTP_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="radio" name="smtp_delivery" value="1" <?php echo $smtp_yes; ?> /> <?php echo $lang['Yes']; ?> <input type="radio" name="smtp_delivery" value="0" <?php echo $smtp_no; ?> /> <?php echo $lang['No']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['SMTP_server']; ?></td>
|
||||||
|
<td class="row2"><input type="text" name="smtp_host" value="<?php echo $new['smtp_host']; ?>" size="25" maxlength="50" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['SMTP_username']; ?><br /><span class="gensmall"><?php echo $lang['SMTP_username_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" name="smtp_username" value="<?php echo $new['smtp_username']; ?>" size="25" maxlength="255" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['SMTP_password']; ?><br /><span class="gensmall"><?php echo $lang['SMTP_password_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="password" name="smtp_password" value="<?php echo $new['smtp_password']; ?>" size="25" maxlength="255" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'server':
|
||||||
|
|
||||||
|
page_header($lang['Server_settings']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<h1><?php echo $lang['Server_settings']; ?></h1>
|
||||||
|
|
||||||
|
<p><?php echo $lang['Server_settings_explain']; ?></p>
|
||||||
|
|
||||||
|
<form action="<?php echo "admin_board.$phpEx$SID&mode=$mode"; ?>" method="post"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><?php echo $lang['Server_settings']; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Server_name']; ?><br /><span class="gensmall"><?php echo $lang['Server_name_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="255" size="40" name="server_name" value="<?php echo $new['server_name']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Server_port']; ?><br /><span class="gensmall"><?php echo $lang['Server_port_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="5" size="5" name="server_port" value="<?php echo $new['server_port']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1"><?php echo $lang['Script_path']; ?><br /><span class="gensmall"><?php echo $lang['Script_path_explain']; ?></span></td>
|
||||||
|
<td class="row2"><input type="text" maxlength="255" name="script_path" value="<?php echo $new['script_path']; ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="cat" colspan="2" align="center"><input type="submit" name="submit" value="<?php echo $lang['Submit']; ?>" class="mainoption" /> <input type="reset" value="<?php echo $lang['Reset']; ?>" class="liteoption" /></td>
|
||||||
|
</tr>
|
||||||
|
</table></form>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
page_footer();
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue