diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php
index 86f0edceac..bd423be05d 100644
--- a/phpBB/admin/admin_board.php
+++ b/phpBB/admin/admin_board.php
@@ -55,20 +55,24 @@ else
}
}
- if($HTTP_POST_VARS['submit'])
+ if( isset($HTTP_POST_VARS['submit']) )
{
- message_die(GENERAL_MESSAGE, $lang['Config_updated']);
+ $message = $lang['Config_updated'] . "
" . sprintf($lang['Click_return_config'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");
+
+ message_die(GENERAL_MESSAGE, $message);
}
}
$style_select = style_select($new['default_style'], 'default_style', "../templates");
-
-$admin_style_select = style_select($new['default_admin_style'], 'default_admin_style', "../templates");
-
$lang_select = language_select($new['default_lang'], 'default_lang', "../language");
-
$timezone_select = tz_select($new['board_timezone'], 'board_timezone');
+$disable_board_yes = ( $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'];
$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : "";
@@ -129,7 +133,16 @@ $template->assign_vars(array(
"L_GENERAL_SETTINGS" => $lang['General_settings'],
"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_COOKIE_SETTINGS" => $lang['Cookie_settings'],
+ "L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'],
+ "L_COOKIE_NAME" => $lang['Cookie_name'],
+ "L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
+ "L_COOKIE_PATH" => $lang['Cookie_path'],
+ "L_SESSION_LENGTH" => $lang['Session_length'],
+ "L_COOKIE_SECURE" => $lang['Cookie_secure'],
"L_PRIVATE_MESSAGING" => $lang['Private_Messaging'],
"L_INBOX_LIMIT" => $lang['Inbox_limits'],
"L_SENTBOX_LIMIT" => $lang['Sentbox_limits'],
@@ -189,9 +202,12 @@ $template->assign_vars(array(
"L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'],
"L_SMTP_SERVER" => $lang['SMTP_server'],
"L_SUBMIT" => $lang['Submit'],
+ "L_RESET" => $lang['Reset'],
"SITENAME" => $new['sitename'],
- "SITE_DESCRIPTION" => $new['site_desc'],
+ "SITE_DESCRIPTION" => $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,
@@ -216,6 +232,12 @@ $template->assign_vars(array(
"INBOX_LIMIT" => $new['max_inbox_privmsgs'],
"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
+ "COOKIE_NAME" => $new['cookie_name'],
+ "COOKIE_DOMAIN" => $new['cookie_domain'],
+ "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,
@@ -262,4 +284,4 @@ $template->pparse("body");
include('page_footer_admin.'.$phpEx);
-?>
+?>
\ No newline at end of file
diff --git a/phpBB/admin/admin_forumauth.php b/phpBB/admin/admin_forumauth.php
index 6ea86354fb..619eac6ec7 100644
--- a/phpBB/admin/admin_forumauth.php
+++ b/phpBB/admin/admin_forumauth.php
@@ -201,10 +201,10 @@ if( empty($forum_id) )
$select_list .= "";
$template->assign_vars(array(
- "L_AUTH_TITLE" => $lang['Forum'] . " " . $lang['Auth_Control'],
+ "L_AUTH_TITLE" => $lang['Auth_Control_Forum'],
"L_AUTH_EXPLAIN" => $lang['Forum_auth_explain'],
- "L_AUTH_SELECT" => $lang['Select_a'] . " " . $lang['Forum'],
- "L_LOOK_UP" => $lang['Look_up'] . " " . $lang['Forum'],
+ "L_AUTH_SELECT" => $lang['Select_a_Forum'],
+ "L_LOOK_UP" => $lang['Look_up_Forum'],
"S_AUTH_ACTION" => append_sid("admin_forumauth.$phpEx"),
"S_AUTH_SELECT" => $select_list)
@@ -328,10 +328,10 @@ else
$template->assign_vars(array(
"FORUM_NAME" => $forum_name,
- "L_AUTH_TITLE" => $lang['Forum'] . " " . $lang['Auth_Control'],
+ "L_AUTH_TITLE" => $lang['Auth_Control_Forum'],
"L_AUTH_EXPLAIN" => $lang['Forum_auth_explain'],
- "L_SUBMIT_CHANGES" => $lang['Submit_changes'],
- "L_RESET_CHANGES" => $lang['Reset_changes'],
+ "L_SUBMIT" => $lang['Submit'],
+ "L_RESET" => $lang['Reset'],
"U_FORUMAUTH_ACTION" => append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
"U_SWITCH_MODE" => $u_switch_mode,
diff --git a/phpBB/admin/admin_groupauth.php b/phpBB/admin/admin_groupauth.php
index 4d4355fb03..68e198775e 100644
--- a/phpBB/admin/admin_groupauth.php
+++ b/phpBB/admin/admin_groupauth.php
@@ -455,48 +455,52 @@ if( isset($HTTP_POST_VARS['submit']) && ( !empty($HTTP_POST_VARS[POST_GROUPS_URL
//
// Any warnings?
//
- $warning_list = "";
+ $warning_list_mod = "";
while( list($forum_id, $user_ary) = each($warning_mod_userid) )
{
for($i = 0; $i < count($user_ary); $i++)
{
- if(!empty($valid_auth_mod_sql[$forum_id]))
+ echo $user_ary[$i];
+ if( !empty($valid_auth_mod_sql[$forum_id]) )
{
- $warning_list .= "" . $warning_mod_username[$forum_id][$i] . " " . $lang['has_moderator_status'] . " " . $warning_mod_frmname[$forum_id][$i] . "
";
+ $warning_list_mod .= "
" . $warning_mod_username[$forum_id][$i] . " -> " . $warning_mod_frmname[$forum_id][$i];
}
}
}
+ $warning_list_acl = "";
while( list($forum_id, $user_ary) = each($warning_prv_userid) )
{
for($i = 0; $i < count($user_ary); $i++)
{
- if(!empty($valid_auth_prv_sql[$forum_id]))
+ if( !empty($valid_auth_prv_sql[$forum_id]) )
{
- $warning_list .= "" . $warning_prv_username[$forum_id][$i] . " " . $lang['has_access_status'] . " " . $warning_prv_frmname[$forum_id][$i] . "
";
+ $warning_list_acl .= "
" . $warning_prv_username[$forum_id][$i] . " -> " . $warning_prv_frmname[$forum_id][$i];
}
}
}
- if($warning_list != "")
+ $warning_list = "";
+ if( $warning_list_mod != "" )
{
- $warning_list = "
" . $lang['Conflict_message_groupauth'] . "
" . $warning_list . "
" . $lang['Click'] ." " . $lang['HERE'] . " " . $lang['return_group_auth_admin'] . "
";
+ $warning_list .= $lang['Conflict_mod_groupauth'] . "
" . $warning_list_mod;
+ }
+ if( $warning_list_acl != "" )
+ {
+ $warning_list .= $lang['Conflict_access_groupauth'] . "
" . $warning_list_acl;
+ }
- include('page_header_admin.'.$phpEx);
+ if( $warning_list != "" )
+ {
+ $message = $warning_list . "
" . sprintf($lang['Click_return_groupauth'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");
- $template->set_filenames(array(
- "body" => "admin/admin_message_body.tpl")
- );
-
- $template->assign_vars(array(
- "MESSAGE_TITLE" => $lang['Conflict_warning'],
- "MESSAGE_TEXT" => $warning_list)
- );
+ message_die(GENERAL_MESSAGE, $message);
}
else
{
+ $message = $lang['Auth_updated'] . "
" . sprintf($lang['Click_return_groupauth'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");
- header("Location: " . append_sid("admin_groupauth.$phpEx?" . POST_GROUPS_URL . "=$group_id", true));
+ message_die(GENERAL_MESSAGE, $message);
}
}
@@ -733,10 +737,10 @@ else if( !empty($HTTP_POST_VARS[POST_GROUPS_URL]) || !empty($HTTP_GET_VARS[POST_
$optionlist_mod .= "";
$row_class = ( !($i%2) ) ? "row2" : "row1";
- $row_color = "#" . ( ( !($i%2) ) ? $theme['td_color1'] : $theme['td_color2'] );
+ $row_color = ( !($i%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$template->assign_block_vars("forums", array(
- "ROW_COLOR" => $row_color,
+ "ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"FORUM_NAME" => $forum_access[$i]['forum_name'],
@@ -818,18 +822,19 @@ else if( !empty($HTTP_POST_VARS[POST_GROUPS_URL]) || !empty($HTTP_GET_VARS[POST_
$switch_mode_text = ( !$adv ) ? $lang['Advanced_mode'] : $lang['Simple_mode'];
$u_switch_mode = '' . $switch_mode_text . '';
+ $template->assign_block_vars("switch_group_auth", array());
+
$template->assign_vars(array(
"USERNAME" => $t_groupname,
- "USER_GROUP_MEMBERSHIPS" => $lang['Group_has_members'] . ": " . $t_usergroup_list,
-
+ "GROUP_MEMBERSHIP" => $lang['Usergroup_members'] . ": " . $t_usergroup_list,
"L_USER_OR_GROUPNAME" => $lang['Group_name'],
- "L_AUTH_TITLE" => $lang['Group'] . " " . $lang['Auth_Control'],
- "L_AUTH_EXPLAIN" => $lang['User_auth_explain'],
+ "L_AUTH_TITLE" => $lang['Auth_Control_Group'],
+ "L_AUTH_EXPLAIN" => $lang['Group_auth_explain'],
"L_MODERATOR_STATUS" => $lang['Moderator_status'],
"L_PERMISSIONS" => $lang['Permissions'],
- "L_SUBMIT_CHANGES" => $lang['Submit_changes'],
- "L_RESET_CHANGES" => $lang['Reset_changes'],
+ "L_SUBMIT" => $lang['Submit'],
+ "L_RESET" => $lang['Reset'],
"U_USER_OR_GROUP" => append_sid("admin_groupauth.$phpEx"),
"U_SWITCH_MODE" => $u_switch_mode,
@@ -867,10 +872,10 @@ else
);
$template->assign_vars(array(
- "L_AUTH_TITLE" => $lang['Group'] . " " . $lang['Auth_Control'],
+ "L_AUTH_TITLE" => $lang['Auth_Control_Group'],
"L_AUTH_EXPLAIN" => $lang['Group_auth_explain'],
- "L_AUTH_SELECT" => $lang['Select_a'] . " " . $lang['Group'],
- "L_LOOK_UP" => $lang['Look_up'] . " " . $lang['Group'],
+ "L_AUTH_SELECT" => $lang['Select_a_Group'],
+ "L_LOOK_UP" => $lang['Look_up_Group'],
"S_AUTH_ACTION" => append_sid("admin_groupauth.$phpEx"),
"S_AUTH_SELECT" => $select_list)
diff --git a/phpBB/admin/admin_mass_email.php b/phpBB/admin/admin_mass_email.php
index 17fbdc4245..593bf62e14 100644
--- a/phpBB/admin/admin_mass_email.php
+++ b/phpBB/admin/admin_mass_email.php
@@ -39,24 +39,11 @@ $phpbb_root_dir = "./../";
$no_page_header = TRUE;
require('pagestart.inc');
-
-//
-// Set VERBOSE to 1 for debugging info..
-//
-if(DEBUG)
-{
- define("VERBOSE", 1);
-}
-else
-{
- define("VERBOSE", 0);
-}
-
//
// Increase maximum execution time in case of a lot of users, but don't complain about it if it isn't
// allowed.
//
-@set_time_limit(600);
+@set_time_limit(1200);
//
// Set form names
@@ -64,68 +51,111 @@ else
$f_title = 'e_title';
$f_msg = 'e_msg';
-if(isset($HTTP_POST_VARS['submit']))
+if( isset($HTTP_POST_VARS['submit']) )
{
- $group_id = $HTTP_POST_VARS[POST_GROUPS_URL];
- if($group_id != -1)
+ $group_id = intval($HTTP_POST_VARS[POST_GROUPS_URL]);
+
+ if( $group_id != -1 )
{
- $sql = 'SELECT u.user_email
- FROM '.USERS_TABLE.' u, '.USER_GROUP_TABLE.' g
- WHERE u.user_id = g.user_id AND g.group_id = '.$group_id;
+ $sql = "SELECT u.user_email
+ FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " g
+ WHERE u.user_id = g.user_id
+ AND g.group_id = $group_id";
}
else
{
- $sql = 'SELECT user_email FROM '.USERS_TABLE;
+ $sql = "SELECT user_email
+ FROM " . USERS_TABLE;
}
- if(!$g_result = $db->sql_query($sql))
+
+ if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Coult not select group members!", __LINE__, __FILE__, $sql);
}
- $g_list = $db->sql_fetchrowset($g_result);
+ $email_list = $db->sql_fetchrowset($g_result);
- $email_headers = "From: " . $board_config['board_email'] . "\r\n";
- $msg = stripslashes($HTTP_POST_VARS["$f_msg"]);
+ $subject = stripslashes($HTTP_POST_VARS["$f_title"]);
+ $message = stripslashes($HTTP_POST_VARS["$f_msg"]);
- $email_headers .= 'bcc: ';
- for($i = 0;$i < count($g_list); $i++)
- {
- if($i != 0)
- {
- $email_headers.= ' ,';
- }
- $email_headers .= $g_list[$i]['user_email'];
- }
-
- mail($board_config['board_email'],$HTTP_POST_VARS["$f_title"],$HTTP_POST_VARS["$f_msg"],$email_headers);
- $notice = $lang['Messages'].' '.$lang['Sent'].'!';
-}
-//Else, or if they already sent a message
+ include($phpbb_root_path . 'includes/emailer.'.$phpEx);
+ $emailer = new emailer($board_config['smtp_delivery']);
-$sql = "SELECT group_id, group_name FROM ".GROUPS_TABLE.' WHERE group_single_user <> 1';
+ $email_headers = "From: " . $board_config['board_email'] . "\n";
+
+ $bcc_list = "";
+ for($i = 0; $i < count($email_list); $i++)
+ {
+ if( $bcc_list != "" )
+ {
+ $bcc_list .= ", ";
+ }
+ $bcc_list .= $email_list[$i]['user_email'];
+ }
+ $email_headers .= "Bcc: $bcc_list\n";
+
+ $email_headers .= "Return-Path: " . $userdata['board_email'] . "\n";
+ $email_headers .= "X-AntiAbuse: Board servername - " . $server_name . "\n";
+ $email_headers .= "X-AntiAbuse: User_id - " . $userdata['user_id'] . "\n";
+ $email_headers .= "X-AntiAbuse: Username - " . $userdata['username'] . "\n";
+ $email_headers .= "X-AntiAbuse: User IP - " . decode_ip($user_ip) . "\r\n";
+
+ $emailer->use_template("admin_send_email");
+ $emailer->email_address($board_config['board_email']);
+ $emailer->set_subject($subject);
+ $emailer->extra_headers($email_headers);
+
+ $emailer->assign_vars(array(
+ "SITENAME" => $board_config['sitename'],
+ "BOARD_EMAIL" => $board_config['board_email'],
+ "MESSAGE" => $message)
+ );
+ $emailer->send();
+ $emailer->reset();
+
+ $template->assign_vars(array(
+ "META" => '')
+ );
+
+ $message = $lang['Email_sent'] . "
" . sprintf($lang['Click_return_admin_index'], "", "");
+
+ message_die(GENERAL_MESSAGE, $message);
+
+}
+
+//
+// Initial selection
+//
+
+$sql = "SELECT group_id, group_name
+ FROM ".GROUPS_TABLE . "
+ WHERE group_single_user <> 1";
$g_result = $db->sql_query($sql);
$group_list = $db->sql_fetchrowset($g_result);
-$select_list = '";
+//
+// Generate page
+//
include('page_header_admin.'.$phpEx);
$template->set_filenames(array(
- "body" => "admin/user_email.tpl")
+ "body" => "admin/user_email_body.tpl")
);
$template->assign_vars(array(
"L_EMAIL_TITLE" => $lang['Email'],
"L_EMAIL_EXPLAIN" => $lang['Mass_email_explain'],
"L_COMPOSE" => $lang['Compose'],
- "L_GROUP_SELECT" => $lang['Group'],
+ "L_RECIPIENTS" => $lang['Recipients'],
"L_EMAIL_SUBJECT" => $lang['Subject'],
"L_EMAIL_MSG" => $lang['Message'],
"L_EMAIL" => $lang['Email'],
@@ -140,4 +170,5 @@ $template->assign_vars(array(
$template->pparse('body');
include('page_footer_admin.'.$phpEx);
+
?>
\ No newline at end of file
diff --git a/phpBB/admin/admin_user_ban.php b/phpBB/admin/admin_user_ban.php
index 3ffef0ec03..e247e69bb4 100644
--- a/phpBB/admin/admin_user_ban.php
+++ b/phpBB/admin/admin_user_ban.php
@@ -23,8 +23,7 @@
if($setmodules == 1)
{
$filename = basename(__FILE__);
- $module['Users']['Ban'] = $filename . "?mode=ban";
- $module['Users']['Un-ban'] = $filename . "?mode=unban";
+ $module['Users']['Ban_Management'] = $filename;
return;
}
@@ -35,475 +34,442 @@ if($setmodules == 1)
$phpbb_root_dir = "./../";
require('pagestart.inc');
-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 = "unban";
-}
-
//
// Start program
//
-if( isset($HTTP_POST_VARS['submit']) && isset($HTTP_POST_VARS['bancontrol']) )
+if( isset($HTTP_POST_VARS['submit']) )
{
- if($HTTP_POST_VARS['bancontrol'] == "ban")
+ $user_bansql = "";
+ $email_bansql = "";
+ $ip_bansql = "";
+
+ $user_list = array();
+ if(isset($HTTP_POST_VARS['ban_user']))
{
- $user_bansql = "";
- $email_bansql = "";
- $ip_bansql = "";
+ $user_list_temp = $HTTP_POST_VARS['ban_user'];
- $user_list = array();
- if(isset($HTTP_POST_VARS['user']))
+ for($i = 0; $i < count($user_list_temp); $i++)
{
- $user_list_temp = $HTTP_POST_VARS['user'];
-
- for($i = 0; $i < count($user_list_temp); $i++)
- {
- $user_list[] = trim($user_list_temp[$i]);
- }
+ $user_list[] = trim($user_list_temp[$i]);
}
+ }
- $ip_list = array();
- if(isset($HTTP_POST_VARS['ip']))
+ $ip_list = array();
+ if(isset($HTTP_POST_VARS['ban_ip']))
+ {
+ $ip_list_temp = explode(",", $HTTP_POST_VARS['ban_ip']);
+
+ for($i = 0; $i < count($ip_list_temp); $i++)
{
- $ip_list_temp = explode(",", $HTTP_POST_VARS['ip']);
-
- for($i = 0; $i < count($ip_list_temp); $i++)
- {
- if( preg_match("/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})[ ]*\-[ ]*([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/", trim($ip_list_temp[$i]), $ip_range_explode) )
- {
- //
- // Don't ask about all this, just don't ask ... !
- //
- $ip_1_counter = $ip_range_explode[1];
- $ip_1_end = $ip_range_explode[5];
-
- while($ip_1_counter <= $ip_1_end)
- {
- $ip_2_counter = ($ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[2] : 0;
- $ip_2_end = ($ip_1_counter < $ip_1_end) ? 254 : $ip_range_explode[6];
-
- if($ip_2_counter == 0 && $ip_2_end == 254)
- {
- $ip_2_counter = 255;
- $ip_2_fragment = 255;
-
- $ip_list[] = encode_ip("$ip_1_counter.255.255.255");
- }
-
- while($ip_2_counter <= $ip_2_end)
- {
- $ip_3_counter = ($ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[3] : 0;
- $ip_3_end = ($ip_2_counter < $ip_2_end || $ip_1_counter < $ip_1_end) ? 254 : $ip_range_explode[7];
-
- if($ip_3_counter == 0 && $ip_3_end == 254 )
- {
- $ip_3_counter = 255;
- $ip_3_fragment = 255;
-
- $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.255.255");
- }
-
- while($ip_3_counter <= $ip_3_end)
- {
- $ip_4_counter = ($ip_3_counter == $ip_range_explode[3] && $ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[4] : 0;
- $ip_4_end = ($ip_3_counter < $ip_3_end || $ip_2_counter < $ip_2_end) ? 254 : $ip_range_explode[8];
-
- if($ip_4_counter == 0 && $ip_4_end == 254)
- {
- $ip_4_counter = 255;
- $ip_4_fragment = 255;
-
- $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.255");
- }
-
- while($ip_4_counter <= $ip_4_end)
- {
- $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.$ip_4_counter");
- $ip_4_counter++;
- }
- $ip_3_counter++;
- }
- $ip_2_counter++;
- }
- $ip_1_counter++;
- }
- }
- else if( preg_match("/^([\w\-_]\.?){2,}$/is", trim($ip_list_temp[$i])) )
- {
- $ip = gethostbynamel(trim($ip_list_temp[$i]));
-
- for($j = 0; $j < count($ip); $j++)
- {
- if( !empty($ip[$j]) )
- {
- $ip_list[] = encode_ip($ip[$j]);
- }
- }
- }
- else if( preg_match("/^([0-9]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})$/", trim($ip_list_temp[$i])) )
- {
- $ip_list[] = encode_ip(str_replace("*", "255", trim($ip_list_temp[$i])));
- }
- }
- }
-
- $email_list = array();
- if(isset($HTTP_POST_VARS['email']))
- {
- $email_list_temp = explode(",", $HTTP_POST_VARS['email']);
-
- for($i = 0; $i < count($email_list_temp); $i++)
+ if( preg_match("/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})[ ]*\-[ ]*([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/", trim($ip_list_temp[$i]), $ip_range_explode) )
{
//
- // This ereg match is based on one by php@unreelpro.com
- // contained in the annotated php manual at php.com (ereg
- // section)
+ // Don't ask about all this, just don't ask ... !
//
- if( eregi("^(([[:alnum:]]+([-_.][[:alnum:]]+)*\.?)|(\*))@([[:alnum:]]+([-_]?[[:alnum:]]+)*\.){1,3}([[:alnum:]]{2,6})$", trim($email_list_temp[$i])) )
+ $ip_1_counter = $ip_range_explode[1];
+ $ip_1_end = $ip_range_explode[5];
+
+ while($ip_1_counter <= $ip_1_end)
{
- $email_list[] = trim($email_list_temp[$i]);
+ $ip_2_counter = ($ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[2] : 0;
+ $ip_2_end = ($ip_1_counter < $ip_1_end) ? 254 : $ip_range_explode[6];
+
+ if($ip_2_counter == 0 && $ip_2_end == 254)
+ {
+ $ip_2_counter = 255;
+ $ip_2_fragment = 255;
+
+ $ip_list[] = encode_ip("$ip_1_counter.255.255.255");
+ }
+
+ while($ip_2_counter <= $ip_2_end)
+ {
+ $ip_3_counter = ($ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[3] : 0;
+ $ip_3_end = ($ip_2_counter < $ip_2_end || $ip_1_counter < $ip_1_end) ? 254 : $ip_range_explode[7];
+
+ if($ip_3_counter == 0 && $ip_3_end == 254 )
+ {
+ $ip_3_counter = 255;
+ $ip_3_fragment = 255;
+
+ $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.255.255");
+ }
+
+ while($ip_3_counter <= $ip_3_end)
+ {
+ $ip_4_counter = ($ip_3_counter == $ip_range_explode[3] && $ip_2_counter == $ip_range_explode[2] && $ip_1_counter == $ip_range_explode[1]) ? $ip_range_explode[4] : 0;
+ $ip_4_end = ($ip_3_counter < $ip_3_end || $ip_2_counter < $ip_2_end) ? 254 : $ip_range_explode[8];
+
+ if($ip_4_counter == 0 && $ip_4_end == 254)
+ {
+ $ip_4_counter = 255;
+ $ip_4_fragment = 255;
+
+ $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.255");
+ }
+
+ while($ip_4_counter <= $ip_4_end)
+ {
+ $ip_list[] = encode_ip("$ip_1_counter.$ip_2_counter.$ip_3_counter.$ip_4_counter");
+ $ip_4_counter++;
+ }
+ $ip_3_counter++;
+ }
+ $ip_2_counter++;
+ }
+ $ip_1_counter++;
}
}
- }
-
- $sql = "SELECT *
- FROM " . BANLIST_TABLE;
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Couldn't obtain banlist information", "", __LINE__, __FILE__, $sql);
- }
-
- $current_banlist = $db->sql_fetchrowset($result);
-
- $kill_session_sql = "";
- for($i = 0; $i < count($user_list); $i++)
- {
- $in_banlist = false;
- for($j = 0; $j < count($current_banlist); $j++)
+ else if( preg_match("/^([\w\-_]\.?){2,}$/is", trim($ip_list_temp[$i])) )
{
- if($user_list[$i] == $current_banlist[$j]['ban_userid'])
+ $ip = gethostbynamel(trim($ip_list_temp[$i]));
+
+ for($j = 0; $j < count($ip); $j++)
{
- $in_banlist = true;
+ if( !empty($ip[$j]) )
+ {
+ $ip_list[] = encode_ip($ip[$j]);
+ }
}
}
-
- if(!$in_banlist)
+ else if( preg_match("/^([0-9]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})\.([0-9\*]{1,3})$/", trim($ip_list_temp[$i])) )
{
- $kill_session_sql .= ( ($kill_session_sql != "") ? " OR " : "" ) . "session_user_id = $user_list[$i]";
-
- $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid)
- VALUES ('" . $user_list[$i] . "')";
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql);
- }
- }
- }
-
- for($i = 0; $i < count($ip_list); $i++)
- {
- $in_banlist = false;
- for($j = 0; $j < count($current_banlist); $j++)
- {
- if($ip_list[$i] == $current_banlist[$j]['ban_ip'])
- {
- $in_banlist = true;
- }
- }
-
- if(!$in_banlist)
- {
- if( preg_match("/(ff\.)|(\.ff)/is", chunk_split($ip_list[$i], 2, ".")) )
- {
- $kill_ip_sql = "session_ip LIKE '" . str_replace(".", "", preg_replace("/(ff\.)|(\.ff)/is", "%", chunk_split($ip_list[$i], 2, "."))) . "'";
- }
- else
- {
- $kill_ip_sql = "session_ip = '" . $ip_list[$i] . "'";
- }
-
- $kill_session_sql .= ( ($kill_session_sql != "") ? " OR " : "" ) . $kill_ip_sql;
-
- $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_ip)
- VALUES ('" . $ip_list[$i] . "')";
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql);
- }
- }
- }
-
- //
- // Now we'll delete all entries from the
- // session table with any of the banned
- // user or IP info just entered into the
- // ban table ... this will force a session
- // initialisation resulting in an instant
- // ban
- //
- if($kill_session_sql != "")
- {
- $sql = "DELETE FROM " . SESSIONS_TABLE . "
- WHERE $kill_session_sql";
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Couldn't delete banned sessions from database", "", __LINE__, __FILE__, $sql);
- }
- }
-
- for($i = 0; $i < count($email_list); $i++)
- {
- $in_banlist = false;
- for($j = 0; $j < count($current_banlist); $j++)
- {
- if($email_list[$i] == $current_banlist[$j]['ban_email'])
- {
- $in_banlist = true;
- }
- }
-
- if(!$in_banlist)
- {
- $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_email)
- VALUES ('" . $email_list[$i] . "')";
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Couldn't insert ban_email info into database", "", __LINE__, __FILE__, $sql);
- }
+ $ip_list[] = encode_ip(str_replace("*", "255", trim($ip_list_temp[$i])));
}
}
}
- else if($HTTP_POST_VARS['bancontrol'] == "unban")
+
+ $email_list = array();
+ if(isset($HTTP_POST_VARS['ban_mail']))
{
+ $email_list_temp = explode(",", $HTTP_POST_VARS['ban_mail']);
- $where_sql = "";
-
- if(isset($HTTP_POST_VARS['user']))
+ for($i = 0; $i < count($email_list_temp); $i++)
{
- $user_list = $HTTP_POST_VARS['user'];
-
- for($i = 0; $i < count($user_list); $i++)
+ //
+ // This ereg match is based on one by php@unreelpro.com
+ // contained in the annotated php manual at php.com (ereg
+ // section)
+ //
+ if( eregi("^(([[:alnum:]]+([-_.][[:alnum:]]+)*\.?)|(\*))@([[:alnum:]]+([-_]?[[:alnum:]]+)*\.){1,3}([[:alnum:]]{2,6})$", trim($email_list_temp[$i])) )
{
- if($user_list[$i] != -1)
- {
- if($where_sql != "")
- {
- $where_sql .= " OR ";
- }
- $where_sql .= "ban_id = " . $user_list[$i];
- }
+ $email_list[] = trim($email_list_temp[$i]);
+ }
+ }
+ }
+
+ $sql = "SELECT *
+ FROM " . BANLIST_TABLE;
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't obtain banlist information", "", __LINE__, __FILE__, $sql);
+ }
+
+ $current_banlist = $db->sql_fetchrowset($result);
+
+ $kill_session_sql = "";
+ for($i = 0; $i < count($user_list); $i++)
+ {
+ $in_banlist = false;
+ for($j = 0; $j < count($current_banlist); $j++)
+ {
+ if($user_list[$i] == $current_banlist[$j]['ban_userid'])
+ {
+ $in_banlist = true;
}
}
- if(isset($HTTP_POST_VARS['ip']))
+ if(!$in_banlist)
{
- $ip_list = $HTTP_POST_VARS['ip'];
+ $kill_session_sql .= ( ($kill_session_sql != "") ? " OR " : "" ) . "session_user_id = $user_list[$i]";
- for($i = 0; $i < count($ip_list); $i++)
- {
- if($ip_list[$i] != -1)
- {
- if($where_sql != "")
- {
- $where_sql .= " OR ";
- }
- $where_sql .= "ban_id = " . $ip_list[$i];
- }
- }
- }
-
- if(isset($HTTP_POST_VARS['email']))
- {
- $email_list = $HTTP_POST_VARS['email'];
-
- for($i = 0; $i < count($email_list); $i++)
- {
- if($email_list[$i] != -1)
- {
- if($where_sql != "")
- {
- $where_sql .= " OR ";
- }
- $where_sql .= "ban_id = " . $email_list[$i];
- }
- }
- }
-
- if($where_sql != "")
- {
- $sql = "DELETE FROM " . BANLIST_TABLE . "
- WHERE $where_sql";
+ $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid)
+ VALUES ('" . $user_list[$i] . "')";
if( !$result = $db->sql_query($sql) )
{
- message_die(GENERAL_ERROR, "Couldn't delete ban info from database", "", __LINE__, __FILE__, $sql);
+ message_die(GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql);
}
}
}
+ for($i = 0; $i < count($ip_list); $i++)
+ {
+ $in_banlist = false;
+ for($j = 0; $j < count($current_banlist); $j++)
+ {
+ if($ip_list[$i] == $current_banlist[$j]['ban_ip'])
+ {
+ $in_banlist = true;
+ }
+ }
+
+ if(!$in_banlist)
+ {
+ if( preg_match("/(ff\.)|(\.ff)/is", chunk_split($ip_list[$i], 2, ".")) )
+ {
+ $kill_ip_sql = "session_ip LIKE '" . str_replace(".", "", preg_replace("/(ff\.)|(\.ff)/is", "%", chunk_split($ip_list[$i], 2, "."))) . "'";
+ }
+ else
+ {
+ $kill_ip_sql = "session_ip = '" . $ip_list[$i] . "'";
+ }
+
+ $kill_session_sql .= ( ($kill_session_sql != "") ? " OR " : "" ) . $kill_ip_sql;
+
+ $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_ip)
+ VALUES ('" . $ip_list[$i] . "')";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql);
+ }
+ }
+ }
+
+ //
+ // Now we'll delete all entries from the
+ // session table with any of the banned
+ // user or IP info just entered into the
+ // ban table ... this will force a session
+ // initialisation resulting in an instant
+ // ban
+ //
+ if($kill_session_sql != "")
+ {
+ $sql = "DELETE FROM " . SESSIONS_TABLE . "
+ WHERE $kill_session_sql";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't delete banned sessions from database", "", __LINE__, __FILE__, $sql);
+ }
+ }
+
+ for($i = 0; $i < count($email_list); $i++)
+ {
+ $in_banlist = false;
+ for($j = 0; $j < count($current_banlist); $j++)
+ {
+ if($email_list[$i] == $current_banlist[$j]['ban_email'])
+ {
+ $in_banlist = true;
+ }
+ }
+
+ if(!$in_banlist)
+ {
+ $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_email)
+ VALUES ('" . $email_list[$i] . "')";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't insert ban_email info into database", "", __LINE__, __FILE__, $sql);
+ }
+ }
+ }
+
+ $where_sql = "";
+
+ if(isset($HTTP_POST_VARS['unban_user']))
+ {
+ $user_list = $HTTP_POST_VARS['unban_user'];
+
+ for($i = 0; $i < count($user_list); $i++)
+ {
+ if($user_list[$i] != -1)
+ {
+ if($where_sql != "")
+ {
+ $where_sql .= " OR ";
+ }
+ $where_sql .= "ban_id = " . $user_list[$i];
+ }
+ }
+ }
+
+ if(isset($HTTP_POST_VARS['unban_ip']))
+ {
+ $ip_list = $HTTP_POST_VARS['unban_ip'];
+
+ for($i = 0; $i < count($ip_list); $i++)
+ {
+ if($ip_list[$i] != -1)
+ {
+ if($where_sql != "")
+ {
+ $where_sql .= " OR ";
+ }
+ $where_sql .= "ban_id = " . $ip_list[$i];
+ }
+ }
+ }
+
+ if(isset($HTTP_POST_VARS['unban_email']))
+ {
+ $email_list = $HTTP_POST_VARS['unban_email'];
+
+ for($i = 0; $i < count($email_list); $i++)
+ {
+ if($email_list[$i] != -1)
+ {
+ if($where_sql != "")
+ {
+ $where_sql .= " OR ";
+ }
+ $where_sql .= "ban_id = " . $email_list[$i];
+ }
+ }
+ }
+
+ if($where_sql != "")
+ {
+ $sql = "DELETE FROM " . BANLIST_TABLE . "
+ WHERE $where_sql";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't delete ban info from database", "", __LINE__, __FILE__, $sql);
+ }
+ }
+
message_die(GENERAL_MESSAGE, $lang['Ban_update_sucessful']);
+
}
else
{
- if( $mode == "ban" )
+
+ $template->set_filenames(array(
+ "body" => "admin/user_ban_body.tpl")
+ );
+
+ $template->assign_vars(array(
+ "L_BAN_TITLE" => $lang['Ban_control'],
+ "L_BAN_EXPLAIN" => $lang['Ban_explain'],
+ "L_BAN_EXPLAIN_WARN" => $lang['Ban_explain_warn'],
+ "L_IP_OR_HOSTNAME" => $lang['IP_hostname'],
+ "L_EMAIL_ADDRESS" => $lang['Email_address'],
+ "L_SUBMIT" => $lang['Submit'],
+ "L_RESET" => $lang['Reset'],
+
+ "S_BANLIST_ACTION" => append_sid("admin_user_ban.$phpEx"))
+ );
+
+ $userban_count = 0;
+
+ $sql = "SELECT user_id, username
+ FROM " . USERS_TABLE . "
+ WHERE user_id <> " . ANONYMOUS . "
+ ORDER BY username ASC";
+ $u_result = $db->sql_query($sql);
+ $user_list = $db->sql_fetchrowset($u_result);
+
+ $select_userlist = "";
+ for($i = 0; $i < count($user_list); $i++)
{
- $userban_count = 0;
-
- $sql = "SELECT user_id, username
- FROM " . USERS_TABLE . "
- WHERE user_id <> " . ANONYMOUS . "
- ORDER BY username ASC";
- $u_result = $db->sql_query($sql);
- $user_list = $db->sql_fetchrowset($u_result);
-
- $select_userlist = "";
- for($i = 0; $i < count($user_list); $i++)
- {
- $select_userlist .= "";
- $userban_count++;
- }
- $select_userlist = "
";
+ $warning_list_mod .= "
" . $warning_mod_grpname[$forum_id][$i] . " -> " . $warning_mod_frmname[$forum_id][$i];
}
}
}
+ $warning_list_acl = "";
while( list($forum_id, $group_ary) = each($warning_prv_grpid) )
{
for($i = 0; $i < count($group_ary); $i++)
{
if( !empty($valid_auth_prv_sql[$forum_id]) )
{
- $warning_list .= "" . $warning_prv_grpname[$forum_id][$i] . " " . $lang['grants_access_status'] . " " . $warning_prv_frmname[$forum_id][$i] . " " . $lang['for_this_user'] . "
";
+ $warning_list_acl .= "
" . $warning_prv_grpname[$forum_id][$i] . " -> " . $warning_prv_frmname[$forum_id][$i];
}
}
}
+ $warning_list = "";
+ if( $warning_list_mod != "" )
+ {
+ $warning_list .= $lang['Conflict_mod_groupauth'] . "
" . $warning_list_mod;
+ }
+ if( $warning_list_acl != "" )
+ {
+ $warning_list .= $lang['Conflict_access_groupauth'] . "
" . $warning_list_acl;
+ }
+
if( $warning_list != "" )
{
- $warning_list = "
" . $lang['Conflict_message_userauth'] . "
" . $warning_list . "
" . $lang['Click'] . " " . $lang['HERE'] . " ". $lang['return_user_auth_admin'] . "
";
+ $message = $warning_list . "
" . sprintf($lang['Click_return_userauth'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");
- include('page_header_admin.'.$phpEx);
-
- $template->set_filenames(array(
- "body" => "admin/admin_message_body.tpl")
- );
-
- $template->assign_vars(array(
- "MESSAGE_TITLE" => $lang['Conflict_warning'],
- "MESSAGE_TEXT" => $warning_list)
- );
+ message_die(GENERAL_MESSAGE, $message);
}
else
{
- header("Location: " . append_sid("admin_userauth.$phpEx?" . POST_USERS_URL . "=$user_id", true));
+ $message = $lang['Auth_updated'] . "
" . sprintf($lang['Click_return_userauth'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");
+
+ message_die(GENERAL_MESSAGE, $message);
}
}
}
@@ -849,7 +853,7 @@ else if( isset($HTTP_POST_VARS['username']) || $user_id)
@reset($auth_user);
$t_username .= $userinf[0]['username'];
- $s_user_type = ($is_admin) ? '
Your board should be back to the state it was when the backup was made.";
$lang['Backup_download'] = "Your download will start shortly please wait till it begins";
$lang['Backups_not_supported'] = "Sorry but database backups are not currently supported for your database system";
@@ -60,13 +66,15 @@ $lang['Restore_Error_no_file'] = "No file was uploaded";
//
// Auth pages
//
-$lang['Administrator'] = "Administrator";
-$lang['User'] = "User";
-$lang['Group'] = "Group";
-$lang['Forum'] = "Forum";
-$lang['Select_a'] = "Select a"; // followed by on the entries above
-$lang['Auth_Control'] = "Authorisation Control"; // preceeded by one of the above options
-$lang['Look_up'] = "Look up"; // preceeded by one of the above options
+$lang['Select_a_User'] = "Select a User";
+$lang['Select_a_Group'] = "Select a Group";
+$lang['Select_a_Forum'] = "Select a Forum";
+$lang['Auth_Control_User'] = "User Permissions Control";
+$lang['Auth_Control_Group'] = "Group Permissions Control";
+$lang['Auth_Control_Forum'] = "Forum Permissions Control";
+$lang['Look_up_User'] = "Look up User";
+$lang['Look_up_Group'] = "Look up Group";
+$lang['Look_up_Forum'] = "Look up Forum";
$lang['Group_auth_explain'] = "Here you can alter the permissions and moderator status assigned to each user group. Do not forget when changing group permissions that individual user permissions may still allow the user entry to forums, etc. You will be warned if this is the case.";
$lang['User_auth_explain'] = "Here you can alter the permissions and moderator status assigned to each individual user. Do not forget when changing user permissions that group permissions may still allow the user entry to forums, etc. You will be warned if this is the case.";
@@ -82,17 +90,11 @@ $lang['Is_Moderator'] = "Is Moderator";
$lang['Not_Moderator'] = "Not Moderator";
$lang['Conflict_warning'] = "Authorisation Conflict Warning";
-$lang['Conflict_message_userauth'] = "This user still has access/moderator rights to this forum via group membership. You may want to alter the group authorisation or remove this user the group to fully prevent them having access/moderator rights. The groups granting rights are noted below.";
-$lang['Conflict_message_groupauth'] = "The following user/s still have access/moderator rights to this forum via their user auth settings. You may want to alter the user authorisation/s to fully prevent them having access/moderator rights. The users granted rights are noted below.";
+$lang['Conflict_access_userauth'] = "This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.";
+$lang['Conflict_mod_userauth'] = "This user still has moderator rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having moderator rights. The groups granting rights (and the forums involved) are noted below.";
-$lang['has_moderator_status'] = "has moderator status on";
-$lang['has_access_status'] = "has access status to";
-$lang['grants_access_status'] = "grants access status to";
-$lang['grants_moderator_status'] = "grants moderator status to";
-$lang['for_this_user'] = "for this user";
-
-$lang['Submit_changes'] = "Submit changes";
-$lang['Reset_changes'] = "Reset changes";
+$lang['Conflict_access_groupauth'] = "The following user (or users) still have access rights to this forum via their user permission settings. You may want to alter the user permissions to fully prevent them having access rights. The users granted rights (and the forums involved) are noted below.";
+$lang['Conflict_mod_groupauth'] = "The following user (or users) still have moderator rights to this forum via their user permissions settings. You may want to alter the user permissions to fully prevent them having moderator rights. The users granted rights (and the forums involved) are noted below.";
$lang['Public'] = "Public";
$lang['Private'] = "Private";
@@ -114,17 +116,20 @@ $lang['Pollcreate'] = "Poll create";
$lang['Permissions'] = "Permissions";
$lang['Simple_Permission'] = "Simple Permission";
-$lang['This_user_is'] = "This user is a"; // followed by User/Administrator and then next line
-$lang['and_belongs_groups'] = "and belongs to the following groups"; // followed by list of groups
-
-$lang['Group_has_members'] = "This group has the following members";
+$lang['User_Level'] = "User Level";
+$lang['Auth_User'] = "User";
+$lang['Auth_Admin'] = "Administrator";
+$lang['Group_memberships'] = "Usergroup memberships";
+$lang['Usergroup_members'] = "This group has the following members";
$lang['Forum_auth_updated'] = "Forum permissions updated";
$lang['User_auth_updated'] = "User permissions updated";
$lang['Group_auth_updated'] = "Group permissions updated";
-$lang['return_forum_auth_admin'] = "to return to the forum permissions panel";
-$lang['return_group_auth_admin'] = "to return to the group permissions panel";
-$lang['return_user_auth_admin'] = "to return to the user permissions panel";
+
+$lang['Auth_updated'] = "Permissions have been updated";
+$lang['Click_return_userauth'] = "Click %sHere%s to return to User Permissions";
+$lang['Click_return_groupauth'] = "Click %sHere%s to return to Group Permissions";
+$lang['Click_return_forumauth'] = "Click %sHere%s to return to Forum Permissions";
//
@@ -134,25 +139,32 @@ $lang['Ban_control'] = "Ban Control";
$lang['Ban_explain'] = "Here you can control the banning of users. You can achieve this by banning either or both of a specific user or an individual or range of IP addresses or hostnames. These methods prevent a user from even reaching the index page of your board. To prevent a user from registering under a different username you can also specify a banned email address. Please note that banning an email address alone will not prevent that user from being able to logon or post to your board, you should use one of the first two methods to achieve this.";
$lang['Ban_explain_warn'] = "Please note that entering a range of IP addresses results in all the addresses between the start and end being added to the banlist. Attempts will be made to minimise the number of addresses added to the database by introducing wildcards automatically where appropriate. If you really must enter a range try to keep it small or better yet state specific addresses.";
+$lang['Select_username'] = "Select a Username";
+$lang['Select_ip'] = "Select an IP";
+$lang['Select_email'] = "Select an Email address";
+
$lang['Ban_username'] = "Ban one or more specific users";
$lang['Ban_username_explain'] = "You can ban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser";
+
$lang['Ban_IP'] = "Ban one or more IP addresses or hostnames";
$lang['IP_hostname'] = "IP addresses or hostnames";
$lang['Ban_IP_explain'] = "To specify several different IP's or hostnames separate them with commas. To specify a range of IP addresses separate the start and end with a hyphen (-), to specify a wildcard use *";
+
$lang['Ban_email'] = "Ban one or more email addresses";
$lang['Ban_email_explain'] = "To specify more than one email address separate them with commas. To specify a wildcard username use *, for example *@hotmail.com";
$lang['Unban_username'] = "Un-ban one more specific users";
$lang['Unban_username_explain'] = "You can unban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser";
+
$lang['Unban_IP'] = "Un-ban one or more IP addresses";
$lang['Unban_IP_explain'] = "You can unban multiple IP addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser";
+
$lang['Unban_email'] = "Un-ban one or more email addresses";
$lang['Unban_email_explain'] = "You can unban multiple email addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser";
-$lang['No_banned_users'] = "No banned users";
+$lang['No_banned_users'] = "No banned usernames";
$lang['No_banned_ip'] = "No banned IP addresses";
$lang['No_banned_email'] = "No banned email addresses";
-$lang['No_unban'] = "Leave list unchanged";
$lang['Ban_update_sucessful'] = "The banlist has been updated sucessfully";
@@ -162,19 +174,24 @@ $lang['Ban_update_sucessful'] = "The banlist has been updated sucessfully";
//
$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['Click_return_config'] = "Click %sHere%s to return to General Configuration";
+
$lang['General_settings'] = "General Board Settings";
$lang['Site_name'] = "Site name";
$lang['Site_desc'] = "Site description";
+$lang['Board_disable'] = "Disable board";
+$lang['Board_disable_explain'] = "This will make the board unavailable to users. Do not logout when you disable the board, you will not be able to log back in!";
$lang['Acct_activation'] = "Enable account activation";
-$lang['Abilities_settings'] = "User/Forum Ability Settings";
+$lang['Abilities_settings'] = "User and Forum Basic Settings";
$lang['Flood_Interval'] = "Flood Interval";
$lang['Flood_Interval_explain'] = "Number of seconds a user must wait between posts";
$lang['Board_email_form'] = "User email via board";
$lang['Board_email_form_explain'] = "Users send email to each other via this board";
$lang['Topics_per_page'] = "Topics Per Page";
$lang['Posts_per_page'] = "Posts Per Page";
-$lang['Hot_threshold'] = "Hot Threshold";
+$lang['Hot_threshold'] = "Posts for Popular Threshold";
$lang['Default_style'] = "Default Style";
$lang['Override_style'] = "Override user style";
$lang['Override_style_explain'] = "Replaces users style with the default";
@@ -192,31 +209,34 @@ $lang['Smilies_path'] = "Smilies Storage Path";
$lang['Smilies_path_explain'] = "Path under your phpBB root dir, e.g. images/smilies";
$lang['Allow_sig'] = "Allow Signatures";
$lang['Max_sig_length'] = "Maximum signature length";
-$lang['Max_sig_length_explain'] = "Most number of characters allowed in a users signature";
-$lang['Allow_name_change'] = "Allow Name Change";
+$lang['Max_sig_length_explain'] = "Maximum number of characters in user signatures";
+$lang['Allow_name_change'] = "Allow Username changes";
+
$lang['Avatar_settings'] = "Avatar Settings";
-$lang['Allow_local'] = "Allow local gallery avatars";
-$lang['Allow_remote'] = "Allow remote avatars";
-$lang['Allow_remote_explain'] = "Avatars linked from another website";
-$lang['Allow_upload'] = "Allow avatar uploading";
-$lang['Max_filesize'] = "Max. Avatar File Size";
+$lang['Allow_local'] = "Enable gallery avatars";
+$lang['Allow_remote'] = "Enable remote avatars";
+$lang['Allow_remote_explain'] = "Avatars linked to from another website";
+$lang['Allow_upload'] = "Enable avatar uploading";
+$lang['Max_filesize'] = "Maximum Avatar File Size";
$lang['Max_filesize_explain'] = "For uploaded avatar files";
-$lang['Max_avatar_size'] = "Max. Avatar Size";
-$lang['Max_avatar_size_explain'] = "(height x width)";
+$lang['Max_avatar_size'] = "Maximum Avatar Dimensions";
+$lang['Max_avatar_size_explain'] = "(Height x Width in pixels)";
$lang['Avatar_storage_path'] = "Avatar Storage Path";
$lang['Avatar_storage_path_explain'] = "Path under your phpBB root dir, e.g. images/avatars";
$lang['Avatar_gallery_path'] = "Avatar Gallery Path";
$lang['Avatar_gallery_path_explain'] = "Path under your phpBB root dir for pre-loaded images, e.g. images/avatars/gallery";
+
$lang['COPPA_settings'] = "COPPA Settings";
$lang['COPPA_fax'] = "COPPA Fax Number";
$lang['COPPA_mail'] = "COPPA Mailing Address";
$lang['COPPA_mail_explain'] = "This is the mailing address where parents will send COPPA registration forms";
+
$lang['Email_settings'] = "Email Settings";
$lang['Admin_email'] = "Admin Email Address";
$lang['Email_sig'] = "Email Signature";
$lang['Email_sig_explain'] = "This text will be attached to all emails the board sends";
-$lang['Use_SMTP'] = "Use SMTP for delivery";
-$lang['Use_SMTP_explain'] = "Say yes if you want or have to send email via a server instead of the local mail function";
+$lang['Use_SMTP'] = "Use SMTP Server for email";
+$lang['Use_SMTP_explain'] = "Say yes if you want or have to send email via a named server instead of the local mail function";
$lang['SMTP_server'] = "SMTP Server Address";
$lang['Disable_privmsg'] = "Private Messaging";
@@ -224,6 +244,14 @@ $lang['Inbox_limits'] = "Max posts in Inbox";
$lang['Sentbox_limits'] = "Max posts in Sentbox";
$lang['Savebox_limits'] = "Max posts in Savebox";
+$lang['Cookie_settings'] = "Cookie settings";
+$lang['Cookie_settings_explain'] = "These control how the cookie sent to browsers is defined. In most cases the default should be sufficient. If you need to change these do so with care, incorrect settings can prevent users logging in.";
+$lang['Cookie_name'] = "Cookie name";
+$lang['Cookie_domain'] = "Cookie domain";
+$lang['Cookie_path'] = "Cookie path";
+$lang['Session_length'] = "Session length [ seconds ]";
+$lang['Cookie_secure'] = "Cookie secure [ https ]";
+
//
// Forum Management
@@ -357,8 +385,11 @@ $lang['Word_removed'] = "The selected word censor has been successfully removed"
//
// Mass Email
//
-$lang['Mass_email_explain'] = "Here you can email a message to either all of your users, or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all receptients. If you are emailing a large group of people, please be patient after submiting and DO NOT stop the page halfway through. It is normal for amass emailing to take a long time.";
-$lang['Compose'] = "Compose";
+$lang['Mass_email_explain'] = "Here you can email a message to either all of your users, or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all receptients. If you are emailing a large group of people, please be patient after submiting and DO NOT stop the page halfway through. It is normal for amass emailing to take a long time.";
+$lang['Compose'] = "Compose";
+
+$lang['Recipients'] = "Recipients";
+$lang['All_users'] = "All Users";
//
diff --git a/phpBB/templates/subSilver/admin/auth_ug_body.tpl b/phpBB/templates/subSilver/admin/auth_ug_body.tpl
index 02221ff455..78c8e60adc 100644
--- a/phpBB/templates/subSilver/admin/auth_ug_body.tpl
+++ b/phpBB/templates/subSilver/admin/auth_ug_body.tpl
@@ -5,7 +5,14 @@