diff --git a/phpBB/language/en/lang_main.php b/phpBB/language/en/lang_main.php
index 754b16e335..dca8383ec3 100644
--- a/phpBB/language/en/lang_main.php
+++ b/phpBB/language/en/lang_main.php
@@ -29,7 +29,7 @@
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
-$lang = array_merge($lang, array(
+$lang = array(
'ENCODING' => 'iso-8859-15',
'DIRECTION' => 'ltr',
'LEFT' => 'left',
@@ -70,8 +70,6 @@ $lang = array_merge($lang, array(
'GO' => 'Go',
'JUMP_TO' => 'Jump to',
- 'SEARCH_FOR' => 'Search for',
-
'SUBMIT' => 'Submit',
'RESET' => 'Reset',
'CANCEL' => 'Cancel',
@@ -83,6 +81,7 @@ $lang = array_merge($lang, array(
'NO' => 'No',
'ENABLED' => 'Enabled',
'DISABLED' => 'Disabled',
+ 'SELECT' => 'Select',
'ERROR' => 'Error',
'NEXT' => 'Next',
'PREVIOUS' => 'Previous',
@@ -281,6 +280,8 @@ $lang = array_merge($lang, array(
'VIEW_IP' => 'IP',
'DELETE_POST' => 'Delete',
'DELETE_POST_WARN' => 'Once deleted the post cannot be recovered',
+ 'REPORT_TO_ADMIN' => 'Report this post',
+ 'POST_BEEN_REPORTED' => 'This post has been reported',
'wrote' => 'wrote',
'Quote' => 'Quote',
'Code' => 'Code',
@@ -784,43 +785,6 @@ $lang = array_merge($lang, array(
'Viewing_priv_msgs' => 'Viewing Private Messages',
'Viewing_FAQ' => 'Viewing FAQ',
-
- 'MOD_CP' => 'Moderator Control Panel',
- 'MOD_CP_EXPLAIN' => 'Using the form below you can perform mass moderation operations on this forum. You can lock, unlock, move or delete any number of topics.',
- 'SELECT' => 'Select',
- 'MOVE' => 'Move',
- 'LOCK' => 'Lock',
- 'UNLOCK' => 'Unlock',
- 'Topics_Removed' => 'The selected topics have been successfully removed from the database.',
- 'Topics_Locked' => 'The selected topics have been locked',
- 'Topics_Moved' => 'The selected topics have been moved',
- 'Topics_Unlocked' => 'The selected topics have been unlocked',
- 'No_Topics_Moved' => 'No topics were moved',
- 'Confirm_delete_topic' => 'Are you sure you want to remove the selected topic/s?',
- 'Confirm_lock_topic' => 'Are you sure you want to lock the selected topic/s?',
- 'Confirm_unlock_topic' => 'Are you sure you want to unlock the selected topic/s?',
- 'Confirm_move_topic' => 'Are you sure you want to move the selected topic/s?',
- 'Move_to_forum' => 'Move to forum',
- 'Leave_shadow_topic' => 'Leave shadow topic in old forum.',
- 'Split_Topic' => 'Split Topic Control Panel',
- 'Split_Topic_explain' => 'Using the form below you can split a topic in two, either by selecting the posts individually or by splitting at a selected post',
- 'Split_title' => 'New topic title',
- 'Split_forum' => 'Forum for new topic',
- 'Split_posts' => 'Split selected posts',
- 'Split_after' => 'Split from selected post',
- 'Topic_split' => 'The selected topic has been split successfully',
- 'Too_many_error' => 'You have selected too many posts. You can only select one post to split a topic after!',
- 'None_selected' => 'You have no selected any topics to preform this operation on. Please go back and select at least one.',
- 'New_forum' => 'New forum',
- 'This_posts_IP' => 'IP for this post',
- 'Other_IP_this_user' => 'Other IP\'s this user has posted from',
- 'Users_this_IP' => 'Users posting from this IP',
- 'IP_info' => 'IP Information',
- 'Lookup_IP' => 'Look up IP',
-
- 'logm_lock' => 'Locked following topic/s => %s',
-
-
'All_times' => 'All times are %s %s',
'-13' => 'GMT - 13 Hours',
'-12' => 'GMT - 12 Hours',
@@ -943,5 +907,5 @@ $lang = array_merge($lang, array(
'Critical_Error' => 'Critical Error',
'An_error_occured' => 'An Error Occurred',
'A_critical_error' => 'A Critical Error Occurred'
-));
+);
?>
\ No newline at end of file
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 2e5ca3634c..358759bf54 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -57,6 +57,16 @@ $user->setup();
$auth->acl($user->data);
// End session management
+
+/**
+$sql = 'SELECT auth_option_id, auth_value FROM phpbb_auth_options';
+$result = $db->sql_query($sql);
+while ($row=$db->sql_fetchrow($result))
+{
+ echo "$row[auth_option_id] $row[auth_value] => " . $auth->acl_get($row['auth_value'], 2) . " ";
+}
+/**/
+
// temp temp temp
very_temporary_lang_strings();
// temp temp temp
@@ -69,17 +79,18 @@ $topic_id = (!empty($_REQUEST['t'])) ? intval($_REQUEST['t']) : '';
$post_id = (!empty($_REQUEST['p'])) ? intval($_REQUEST['p']) : '';
$start = (!empty($_REQUEST['start'])) ? intval($_REQUEST['start']) : 0;
+
//
// Check if user did or did not confirm
// If they did not, forward them to the last page they were on
//
if (isset($_POST['cancel']))
{
- if ($topic_id)
+ if ($topic_id > 0)
{
$redirect = "viewtopic.$phpEx$SID&t=$topic_id&start=$start";
}
- elseif ($forum_id)
+ elseif ($forum_id > 0)
{
$redirect = "viewforum.$phpEx$SID&f=$forum_id&start=$start";
}
@@ -116,6 +127,22 @@ foreach ($post_modes as $post_mode)
}
}
+// Cleanse inputted values
+foreach ($_POST['topic_id_list'] as $t_id)
+{
+ if ($t_id = intval($t_id))
+ {
+ $topic_id_list[] = $t_id;
+ }
+}
+foreach ($_POST['post_id_list'] as $p_id)
+{
+ if ($p_id = intval($p_id))
+ {
+ $post_id_list[] = $p_id;
+ }
+}
+
// Build short_id_list and $return string
$selected_post_ids = array();
if (!empty($_GET['post_id_list']))
@@ -128,7 +155,7 @@ if (!empty($_GET['post_id_list']))
$post_id_list[] = base_convert($short, 36, 10);
}
}
-$url_extra = (!empty($selected_post_ids)) ? '&post_id_list=' . short_id_list($selected_post_ids) : '';
+$url_extra = (!empty($post_id_list)) ? '&post_id_list=' . short_id_list($post_id_list ) : '';
$return_mcp = '
' . sprintf($user->lang['RETURN_MCP'], '', '');
// Build up return links and acl list
@@ -208,26 +235,9 @@ if ($to_forum_id > 0)
}
}
-// Cleanse inputted values then get permissions
-foreach ($_POST['topic_id_list'] as $t_id)
-{
- if ($t_id = intval($t_id))
- {
- $topic_id_list[] = $t_id;
- }
-}
-foreach ($_POST['post_id_list'] as $p_id)
-{
- if ($p_id = intval($p_id))
- {
- $post_id_list[] = $p_id;
- }
-}
-
+// Reset id lists then rebuild them from verified data
$topic_id_sql = implode(', ', array_unique($topic_id_list));
$post_id_sql = implode(', ', array_unique($post_id_list));
-
-// Reset id lists then rebuild them
$forum_id_list = $topic_id_list = $post_id_list = array();
$not_moderator = FALSE;
@@ -334,7 +344,7 @@ else
{
// There's no forums list available so the user either submitted an empty or invalid list of posts/topics or isn't a moderator
- if ($not_moderator)
+ if ($not_moderator || !$auth->acl_gets('m_', 'a_'))
{
trigger_error('Line : ' . __LINE__ . '
' . 'Not_Moderator');
}
@@ -344,7 +354,7 @@ else
if (!in_array($mode, $forumless_modes))
{
// The user has submitted invalid post_ids or topic_ids
- trigger_error('Line : ' . __LINE__ . '
+
+
\ No newline at end of file
diff --git a/phpBB/templates/subSilver/viewtopic_body.html b/phpBB/templates/subSilver/viewtopic_body.html
index 12ef522f60..e1926b7356 100644
--- a/phpBB/templates/subSilver/viewtopic_body.html
+++ b/phpBB/templates/subSilver/viewtopic_body.html
@@ -105,8 +105,16 @@