Admin definable max sig size

git-svn-id: file:///svn/phpbb/trunk@1087 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-09-25 23:22:42 +00:00
parent 2a228a29ed
commit 0def804896
12 changed files with 136 additions and 81 deletions

View file

@ -34,12 +34,12 @@ INSERT INTO phpbb_config VALUES ('posts_per_page','15');
INSERT INTO phpbb_config VALUES ('topics_per_page','50');
INSERT INTO phpbb_config VALUES ('hot_threshold','25');
INSERT INTO phpbb_config VALUES ('max_poll_options','10');
INSERT INTO phpbb_config VALUES ('max_sig_chars','255');
INSERT INTO phpbb_config VALUES ('board_email_sig','Thanks, The Management');
INSERT INTO phpbb_config VALUES ('board_email','youraddress@yourdomain.com');
INSERT INTO phpbb_config VALUES ('smtp_delivery','0');
INSERT INTO phpbb_config VALUES ('smtp_host','');
INSERT INTO phpbb_config VALUES ('require_activation','0');
INSERT INTO phpbb_config VALUES ('require_admin_activation','0');
INSERT INTO phpbb_config VALUES ('flood_interval','15');
INSERT INTO phpbb_config VALUES ('avatar_filesize','6144');
INSERT INTO phpbb_config VALUES ('avatar_max_width','80');

View file

@ -438,7 +438,7 @@ CREATE TABLE [phpbb_users] (
[user_icq] [varchar] (15) NULL ,
[user_website] [varchar] (50) NULL ,
[user_from] [varchar] (200) NULL ,
[user_sig] [varchar] (255) NULL ,
[user_sig] [text] NULL ,
[user_sig_bbcode_uid] [char] (10) NULL,
[user_aim] [varchar] (50) NULL ,
[user_yim] [varchar] (50) NULL ,

View file

@ -28,12 +28,12 @@ INSERT INTO phpbb_config VALUES ('posts_per_page','15');
INSERT INTO phpbb_config VALUES ('topics_per_page','50');
INSERT INTO phpbb_config VALUES ('hot_threshold','25');
INSERT INTO phpbb_config VALUES ('max_poll_options','10');
INSERT INTO phpbb_config VALUES ('max_sig_chars','255');
INSERT INTO phpbb_config VALUES ('board_email_sig','Thanks, The Management');
INSERT INTO phpbb_config VALUES ('board_email','youraddress@yourdomain.com');
INSERT INTO phpbb_config VALUES ('smtp_delivery','0');
INSERT INTO phpbb_config VALUES ('smtp_host','');
INSERT INTO phpbb_config VALUES ('require_activation','0');
INSERT INTO phpbb_config VALUES ('require_admin_activation','0');
INSERT INTO phpbb_config VALUES ('flood_interval','15');
INSERT INTO phpbb_config VALUES ('avatar_filesize','6144');
INSERT INTO phpbb_config VALUES ('avatar_max_width','80');

View file

@ -358,8 +358,7 @@ CREATE TABLE phpbb_themes (
span_class1 varchar(25) default NULL,
span_class2 varchar(25) default NULL,
span_class3 varchar(25) default NULL,
PRIMARY KEY (themes_id),
KEY themes_name (themes_name)
PRIMARY KEY (themes_id)
);
@ -476,7 +475,7 @@ CREATE TABLE phpbb_users (
user_icq varchar(15),
user_website varchar(100),
user_from varchar(100),
user_sig varchar(255),
user_sig text,
user_sig_bbcode_uid char(10),
user_aim varchar(255),
user_yim varchar(255),

View file

@ -28,6 +28,7 @@ INSERT INTO phpbb_config VALUES ('posts_per_page','15');
INSERT INTO phpbb_config VALUES ('topics_per_page','50');
INSERT INTO phpbb_config VALUES ('hot_threshold','25');
INSERT INTO phpbb_config VALUES ('max_poll_options','10');
INSERT INTO phpbb_config VALUES ('max_sig_chars','255');
INSERT INTO phpbb_config VALUES ('board_email_sig','Thanks, The Management');
INSERT INTO phpbb_config VALUES ('board_email','youraddress@yourdomain.com');
INSERT INTO phpbb_config VALUES ('smtp_delivery','0');

View file

@ -340,7 +340,6 @@ CREATE TABLE phpbb_themes (
span_class3 varchar(25),
CONSTRAINT phpbb_themes_pkey PRIMARY KEY (themes_id)
);
CREATE INDEX themes_name_phpbb_themes_index ON phpbb_themes (themes_name);
/* --------------------------------------------------------
@ -442,7 +441,7 @@ CREATE TABLE phpbb_users (
user_occ varchar(100),
user_from varchar(100),
user_interests varchar(255),
user_sig varchar(255),
user_sig varchar(2000),
user_sig_bbcode_uid char(10),
user_style number(4),
user_aim varchar(255),

View file

@ -28,12 +28,12 @@ INSERT INTO phpbb_config VALUES ('posts_per_page','15');
INSERT INTO phpbb_config VALUES ('topics_per_page','50');
INSERT INTO phpbb_config VALUES ('hot_threshold','25');
INSERT INTO phpbb_config VALUES ('max_poll_options','10');
INSERT INTO phpbb_config VALUES ('max_sig_chars','255');
INSERT INTO phpbb_config VALUES ('board_email_sig','Thanks, The Management');
INSERT INTO phpbb_config VALUES ('board_email','youraddress@yourdomain.com');
INSERT INTO phpbb_config VALUES ('smtp_delivery','0');
INSERT INTO phpbb_config VALUES ('smtp_host','');
INSERT INTO phpbb_config VALUES ('require_activation','0');
INSERT INTO phpbb_config VALUES ('require_admin_activation','0');
INSERT INTO phpbb_config VALUES ('flood_interval','15');
INSERT INTO phpbb_config VALUES ('avatar_filesize','6144');
INSERT INTO phpbb_config VALUES ('avatar_max_width','80');

View file

@ -321,7 +321,6 @@ CREATE TABLE phpbb_themes (
span_class3 varchar(25),
CONSTRAINT phpbb_themes_pkey PRIMARY KEY (themes_id)
);
CREATE INDEX themes_name_phpbb_themes_index ON phpbb_themes (themes_name);
/* --------------------------------------------------------
@ -429,7 +428,7 @@ CREATE TABLE phpbb_users (
user_occ varchar(100),
user_from varchar(100),
user_interests varchar(255),
user_sig varchar(255),
user_sig text,
user_sig_bbcode_uid char(10),
user_style int4,
user_aim varchar(255),

View file

@ -459,9 +459,11 @@ $lang['to_return_index'] = "to return to the index";
$lang['Password_mismatch'] = "The passwords you entered did not match";
$lang['Invalid_username'] = "The username you requested has been taken or disallowed";
$lang['Signature_too_long'] = "Your signature is too long";
$lang['Fields_empty'] = "You must fill in the required fields";
$lang['Avatar_filetype'] = "The avatar filetype must be .jpg, .gif or .png";
$lang['Avatar_filesize'] = "The avatar image file size must more than 0 kB and less than " . round($board_config['avatar_filesize'] / 1024) . " kB";
$lang['Avatar_filesize'] = "The avatar image file size must be more than 0 kB and less than"; // followed by xx kB, xx being the size
$lang['kB'] = "kB";
$lang['Avatar_imagesize'] = "The avatar must be less than " . $board_config['avatar_max_width'] . " pixels wide and " . $board_config['avatar_max_height'] . " pixels high";
$lang['Welcome_subject'] = "Welcome to " . $board_config['sitename'] . " Forums";
@ -832,13 +834,22 @@ $lang['Ban_update_sucessful'] = "The banlist has been updated sucessfully";
// Configuration
$lang['General_Config'] = "General Configuration";
$lang['Config_explain'] = "The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.";
$lang['General_settings'] = "General Board Settings";
$lang['Site_name'] = "Site name";
$lang['Acct_activation'] = "Enable account activation";
$lang['Config_updated'] = "Forum Configuration Updated Sucessfully";
// Forum Management
$lang['Remove'] = "Remove";
$lang['Action'] = "Action";
$lang['Update_order'] = "Update Order";
// Smiley Management
$lang['smile_remove_err'] = "Error Deleting Smiley!";
$lang['smiley_return'] = "Return to smiley listing";

View file

@ -517,6 +517,24 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
}
}
if( $signature != "" )
{
if( strlen($signature) > $board_config['max_sig_chars'] )
{
$error = TRUE;
if(isset($error_msg))
{
$error_msg .= "<br />";
}
$error_msg .= $lang['Signature_too_long'];
}
else
{
$signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : "";
$signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
}
}
if($mode == "register")
{
//
@ -573,7 +591,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
$error_msg .= $lang['Only_one_avatar'];
}
if(isset($HTTP_POST_VARS['avatardel']) && $mode == "editprofile")
if( isset($HTTP_POST_VARS['avatardel']) && $mode == "editprofile" )
{
if(file_exists("./".$board_config['avatar_path']."/".$userdata['user_avatar']))
{
@ -581,7 +599,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
$avatar_sql = ", user_avatar = ''";
}
}
else if(!empty($user_avatar_loc))
else if( $user_avatar_loc != "" )
{
if($board_config['allow_avatar_upload'])
{
@ -594,21 +612,21 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
//
// Opera appends the image name after the type, not big, not clever!
//
preg_match("'(image\/[a-z]+)'", $user_avatar_type, $user_avatar_type);
preg_match("'image\/[x\-]*([a-z]+)'", $user_avatar_type, $user_avatar_type);
$user_avatar_type = $user_avatar_type[1];
switch($user_avatar_type)
{
case "image/jpeg":
case "jpeg":
$imgtype = '.jpg';
break;
case "image/pjpeg":
case "pjpeg":
$imgtype = '.jpg';
break;
case "image/gif":
case "gif":
$imgtype = '.gif';
break;
case "image/png":
case "png":
$imgtype = '.png';
break;
default:
@ -649,13 +667,14 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
else
{
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $lang['Avatar_filesize'] : $lang['Avatar_filesize'];
$error_filesize = $lang['Avatar_filesize'] . " " . round($board_config['avatar_filesize'] / 1024) . " " . $lang['kB'];
$error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $error_filesize : $error_filesize;
}
}
else
{
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
echo $error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
}
} // if ... allow_avatar_upload
}
@ -668,9 +687,9 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
// to, look for a :[xxxx]/ or, if that doesn't
// exist assume port 80 (http)
//
preg_match("/^(http:\/\/)?([^\/]+?)\:?([0-9]*)\/(.*)$/", $user_avatar_url, $url_ary);
preg_match("/^(http:\/\/)?([a-z0-9\.]+)\:?([0-9]*)\/(.*)$/", $user_avatar_url, $url_ary);
if(!empty($url_ary[4]))
if( !empty($url_ary[4]) )
{
$port = (!empty($url_ary[3])) ? $url_ary[3] : 80;
@ -687,29 +706,29 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
@fputs($fsock, "Connection: close\r\n\r\n");
unset($avatar_data);
while(!feof($fsock))
while(!@feof($fsock))
{
$avatar_data .= fread($fsock, $board_config['avatar_filesize']);
$avatar_data .= @fread($fsock, $board_config['avatar_filesize']);
}
@fclose($fsock);
if(preg_match("/Content-Length\: ([0-9]+)[^\/]+Content-Type\: (image\/[a-z]+)[\s]+/i", $avatar_data, $file_data))
if(preg_match("/Content-Length\: ([0-9]+)[^\/]+Content-Type\: image\/[x\-]*([a-z]+)[\s]+/i", $avatar_data, $file_data))
{
$file_size = $file_data[1];
$file_type = $file_data[2];
switch($file_type)
{
case "image/jpeg":
case "jpeg":
$imgtype = '.jpg';
break;
case "image/pjpeg":
case "pjpeg":
$imgtype = '.jpg';
break;
case "image/gif":
case "gif":
$imgtype = '.gif';
break;
case "image/png":
case "png":
$imgtype = '.png';
break;
default:
@ -794,6 +813,12 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
}
} // if ... allow_avatar_upload
}
else if( !empty($user_avatar_name) )
{
$error = true;
$error_filesize = $lang['Avatar_filesize'] . " " . round($board_config['avatar_filesize'] / 1024) . " " . $lang['kB'];
$error_msg = (!empty($error_msg)) ? $error_msg . "<br />" . $error_filesize : $error_filesize;
}
}
if($board_config['allow_avatar_remote'] && !$error)
@ -808,12 +833,6 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
}
}
if( $signature != "" )
{
$signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : "";
$signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
}
if(!$error)
{
if($mode == "editprofile")
@ -1014,6 +1033,29 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
}
} // if mode == register
}
//
// If an error occured we need to stripslashes on returned data
//
$username = stripslashes($username);
$email = stripslashes($email);
$password = "";
$password_confirm = "";
$icq = stripslashes($icq);
$aim = stripslashes($aim);
$msn = stripslashes($msn);
$yim = stripslashes($yim);
$website = stripslashes($website);
$location = stripslashes($location);
$occupation = stripslashes($occupation);
$interests = stripslashes($interests);
$signature = stripslashes($signature);
$user_lang = stripslashes($user_lang);
$user_dateformat = stripslashes($user_dateformat);
}
else if($mode == "editprofile")
{

View file

@ -1,20 +1,20 @@
<br clear="all" />
<h1>General Configuration</h1>
<h1>{L_CONFIGURATION_TITLE}</h1>
<p>The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.</p>
<p>{L_CONFIGURATION_EXPLAIN}</p>
<form action="{S_CONFIG_ACTION}" method="POST"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center">
<tr>
<td class="cat" colspan="2"><span class="cattitle">General Board Settings</span></td>
<td class="cat" colspan="2"><span class="cattitle">{L_GENERAL_SETTINGS}</span></td>
</tr>
<tr>
<td class="row1">Site Name:</td>
<td class="row1">{L_SITE_NAME}:</td>
<td class="row2"><input type="text" size="25" maxlength="100" name="sitename" value="{SITENAME}"></td>
</tr>
<tr>
<td class="row1">Enable account activation:</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED}>None&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED}>User&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED}>Admin</td>
<td class="row1">{L_ACCT_ACTIVATION}:</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED}>{L_NO}ne&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED}>User&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED}>Admin</td>
</tr>
<tr>
<td class="row1">Flood Interval: <br /><span class="gensmall">Number of seconds a user must wait between posts</span></td>
@ -38,7 +38,7 @@
</tr>
<tr>
<td class="row1">Override user style:<br /><span class="gensmall">Replaces users style with the default</span></td>
<td class="row2"><input type="radio" name="override_user_style" value="1" {OVERRIDE_STYLE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="override_user_style" value="0" {OVERRIDE_STYLE_NO}> No</td>
<td class="row2"><input type="radio" name="override_user_style" value="1" {OVERRIDE_STYLE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="override_user_style" value="0" {OVERRIDE_STYLE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Default Language:</td>
@ -54,26 +54,26 @@
</tr>
<tr>
<td class="row1">Enable GZip Compression:</td>
<td class="row2"><input type="radio" name="gzip_compress" value="1" {GZIP_YES}> Yes&nbsp;&nbsp;<input type="radio" name="gzip_compress" value="0" {GZIP_NO}> No</td>
<td class="row2"><input type="radio" name="gzip_compress" value="1" {GZIP_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="gzip_compress" value="0" {GZIP_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Enable Forum Pruning:</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO}> No</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="cat" colspan="2"><span class="cattitle">User/Forum Ability Settings</span></td>
</tr>
<tr>
<td class="row1">Allow HTML</td>
<td class="row2"><input type="radio" name="allow_html" value="1" {HTML_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_html" value="0" {HTML_NO}> No</td>
<td class="row2"><input type="radio" name="allow_html" value="1" {HTML_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_html" value="0" {HTML_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow BBCode</td>
<td class="row2"><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_bbcode" value="0" {BBCODE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_bbcode" value="0" {BBCODE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow Smilies</td>
<td class="row2"><input type="radio" name="allow_smilies" value="1" {SMILE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_smilies" value="0" {SMILE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_smilies" value="1" {SMILE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_smilies" value="0" {SMILE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Smilies Storage Path <br /><span class="gensmall">Path under your phpBB root dir, e.g. images/smilies</span></td>
@ -81,26 +81,30 @@
</tr>
<tr>
<td class="row1">Allow Signatures</td>
<td class="row2"><input type="radio" name="allow_sig" value="1" {SIG_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_sig" value="0" {SIG_NO}> No</td>
<td class="row2"><input type="radio" name="allow_sig" value="1" {SIG_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_sig" value="0" {SIG_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Maximum signature length<br /><span class="gensmall">Number of characters allowed</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}"></td>
</tr>
<tr>
<td class="row1">Allow Name Change</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="cat" colspan="2"><span class="cattitle">Avatar Settings</span></td>
</tr>
<tr>
<td class="row1">Allow local gallery avatars</td>
<td class="row2"><input type="radio" name="allow_avatar_local" value="1" {AVATARS_LOCAL_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_local" value="0" {AVATARS_LOCAL_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_local" value="1" {AVATARS_LOCAL_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_local" value="0" {AVATARS_LOCAL_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow remote avatars <br /><span class="gensmall">Avatars linked from another website</span></td>
<td class="row2"><input type="radio" name="allow_avatar_remote" value="1" {AVATARS_REMOTE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_remote" value="0" {AVATARS_REMOTE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_remote" value="1" {AVATARS_REMOTE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_remote" value="0" {AVATARS_REMOTE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow avatar uploading</td>
<td class="row2"><input type="radio" name="allow_avatar_upload" value="1" {AVATARS_UPLOAD_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_upload" value="0" {AVATARS_UPLOAD_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_upload" value="1" {AVATARS_UPLOAD_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_upload" value="0" {AVATARS_UPLOAD_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Max. Avatar File Size<br /><span class="gensmall">For uploaded avatar files</span></td>
@ -128,17 +132,15 @@
<td class="row2"><textarea name="board_email_sig" rows="5" cols="30">{EMAIL_SIG}</textarea></td>
</tr>
<tr>
<td class="row1">Use SMTP for delivery<br /><span class="gensmall">Say yes if you want or have to send email via a server instead of the local mail function</span></td>
<td class="row2"><input type="radio" name="smtp_delivery" value="1" {SMTP_YES}> Yes&nbsp;&nbsp;<input type="radio" name="smtp_delivery" value="0" {SMTP_NO}> No</td>
<td class="row1">Use SMTP for delivery<br /><span class="gensmall">Say {L_YES} if you want or have to send email via a server instead of the local mail function</span></td>
<td class="row2"><input type="radio" name="smtp_delivery" value="1" {SMTP_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="smtp_delivery" value="0" {SMTP_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">SMTP Server</td>
<td class="row2"><input type="text" name="smtp_host" value="{SMTP_HOST}" size="25" maxlength="50"></td>
</tr>
<tr>
<td class="cat" colspan="2" align="center">
<input type="hidden" name="mode" value="config">
<input type="submit" name="submit" value="Save Settings">
<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="Save Settings">
</td>
</tr>
</table></form>

View file

@ -1,20 +1,20 @@
<br clear="all" />
<h1>General Configuration</h1>
<h1>{L_CONFIGURATION_TITLE}</h1>
<p>The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.</p>
<p>{L_CONFIGURATION_EXPLAIN}</p>
<form action="{S_CONFIG_ACTION}" method="POST"><table width="99%" cellpadding="4" cellspacing="1" border="0" align="center">
<tr>
<td class="cat" colspan="2"><span class="cattitle">General Board Settings</span></td>
<td class="cat" colspan="2"><span class="cattitle">{L_GENERAL_SETTINGS}</span></td>
</tr>
<tr>
<td class="row1">Site Name:</td>
<td class="row1">{L_SITE_NAME}:</td>
<td class="row2"><input type="text" size="25" maxlength="100" name="sitename" value="{SITENAME}"></td>
</tr>
<tr>
<td class="row1">Enable account activation:</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED}>None&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED}>User&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED}>Admin</td>
<td class="row1">{L_ACCT_ACTIVATION}:</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED}>{L_NO}ne&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED}>User&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED}>Admin</td>
</tr>
<tr>
<td class="row1">Flood Interval: <br /><span class="gensmall">Number of seconds a user must wait between posts</span></td>
@ -38,7 +38,7 @@
</tr>
<tr>
<td class="row1">Override user style:<br /><span class="gensmall">Replaces users style with the default</span></td>
<td class="row2"><input type="radio" name="override_user_style" value="1" {OVERRIDE_STYLE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="override_user_style" value="0" {OVERRIDE_STYLE_NO}> No</td>
<td class="row2"><input type="radio" name="override_user_style" value="1" {OVERRIDE_STYLE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="override_user_style" value="0" {OVERRIDE_STYLE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Default Language:</td>
@ -54,26 +54,26 @@
</tr>
<tr>
<td class="row1">Enable GZip Compression:</td>
<td class="row2"><input type="radio" name="gzip_compress" value="1" {GZIP_YES}> Yes&nbsp;&nbsp;<input type="radio" name="gzip_compress" value="0" {GZIP_NO}> No</td>
<td class="row2"><input type="radio" name="gzip_compress" value="1" {GZIP_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="gzip_compress" value="0" {GZIP_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Enable Forum Pruning:</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO}> No</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="prune_enable" value="0" {PRUNE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="cat" colspan="2"><span class="cattitle">User/Forum Ability Settings</span></td>
</tr>
<tr>
<td class="row1">Allow HTML</td>
<td class="row2"><input type="radio" name="allow_html" value="1" {HTML_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_html" value="0" {HTML_NO}> No</td>
<td class="row2"><input type="radio" name="allow_html" value="1" {HTML_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_html" value="0" {HTML_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow BBCode</td>
<td class="row2"><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_bbcode" value="0" {BBCODE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_bbcode" value="0" {BBCODE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow Smilies</td>
<td class="row2"><input type="radio" name="allow_smilies" value="1" {SMILE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_smilies" value="0" {SMILE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_smilies" value="1" {SMILE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_smilies" value="0" {SMILE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Smilies Storage Path <br /><span class="gensmall">Path under your phpBB root dir, e.g. images/smilies</span></td>
@ -81,26 +81,30 @@
</tr>
<tr>
<td class="row1">Allow Signatures</td>
<td class="row2"><input type="radio" name="allow_sig" value="1" {SIG_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_sig" value="0" {SIG_NO}> No</td>
<td class="row2"><input type="radio" name="allow_sig" value="1" {SIG_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_sig" value="0" {SIG_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Maximum signature length<br /><span class="gensmall">Number of characters allowed</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}"></td>
</tr>
<tr>
<td class="row1">Allow Name Change</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="cat" colspan="2"><span class="cattitle">Avatar Settings</span></td>
</tr>
<tr>
<td class="row1">Allow local gallery avatars</td>
<td class="row2"><input type="radio" name="allow_avatar_local" value="1" {AVATARS_LOCAL_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_local" value="0" {AVATARS_LOCAL_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_local" value="1" {AVATARS_LOCAL_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_local" value="0" {AVATARS_LOCAL_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow remote avatars <br /><span class="gensmall">Avatars linked from another website</span></td>
<td class="row2"><input type="radio" name="allow_avatar_remote" value="1" {AVATARS_REMOTE_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_remote" value="0" {AVATARS_REMOTE_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_remote" value="1" {AVATARS_REMOTE_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_remote" value="0" {AVATARS_REMOTE_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Allow avatar uploading</td>
<td class="row2"><input type="radio" name="allow_avatar_upload" value="1" {AVATARS_UPLOAD_YES}> Yes&nbsp;&nbsp;<input type="radio" name="allow_avatar_upload" value="0" {AVATARS_UPLOAD_NO}> No</td>
<td class="row2"><input type="radio" name="allow_avatar_upload" value="1" {AVATARS_UPLOAD_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_avatar_upload" value="0" {AVATARS_UPLOAD_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">Max. Avatar File Size<br /><span class="gensmall">For uploaded avatar files</span></td>
@ -128,17 +132,15 @@
<td class="row2"><textarea name="board_email_sig" rows="5" cols="30">{EMAIL_SIG}</textarea></td>
</tr>
<tr>
<td class="row1">Use SMTP for delivery<br /><span class="gensmall">Say yes if you want or have to send email via a server instead of the local mail function</span></td>
<td class="row2"><input type="radio" name="smtp_delivery" value="1" {SMTP_YES}> Yes&nbsp;&nbsp;<input type="radio" name="smtp_delivery" value="0" {SMTP_NO}> No</td>
<td class="row1">Use SMTP for delivery<br /><span class="gensmall">Say {L_YES} if you want or have to send email via a server instead of the local mail function</span></td>
<td class="row2"><input type="radio" name="smtp_delivery" value="1" {SMTP_YES}> {L_YES}&nbsp;&nbsp;<input type="radio" name="smtp_delivery" value="0" {SMTP_NO}> {L_NO}</td>
</tr>
<tr>
<td class="row1">SMTP Server</td>
<td class="row2"><input type="text" name="smtp_host" value="{SMTP_HOST}" size="25" maxlength="50"></td>
</tr>
<tr>
<td class="cat" colspan="2" align="center">
<input type="hidden" name="mode" value="config">
<input type="submit" name="submit" value="Save Settings">
<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="Save Settings">
</td>
</tr>
</table></form>