Please contact the %2$sBoard Administrator%3$s for more information.',
'BOARD_BAN_PERM' => 'You have been permanently banned from this board.
Please contact the %2$sBoard Administrator%3$s for more information.',
'BOARD_BAN_REASON' => 'Reason given for ban: %s',
-
- 'EMAIL_DISABLED' => 'Sorry but all emailing functions have been disabled.',
-
+ 'EMAIL_DISABLED' => 'Sorry but all email related functions have been disabled.',
'G_ADMINISTRATORS' => 'ADMINISTRATORS',
'G_SUPER_MODERATORS'=> 'SUPER MODERATORS',
@@ -135,12 +246,17 @@ $lang = array(
'G_INACTIVE' => 'INACTIVE USERS',
'G_GUESTS' => 'GUESTS',
+ 'NO_NEW_POSTS' => 'No new posts',
+ 'NEW_POSTS' => 'New posts',
+ 'NEW_POST' => 'New post',
+ 'NO_NEW_POSTS_HOT' => 'No new posts [ Popular ]',
+ 'NEW_POSTS_HOT' => 'New posts [ Popular ]',
+ 'NO_NEW_POSTS_LOCKED' => 'No new posts [ Locked ]',
+ 'NEW_POSTS_LOCKED' => 'New posts [ Locked ]',
+ 'FORUM_LOCKED' => 'Forum Locked',
'YOU_LAST_VISIT' => 'You last visited on %s',
'CURRENT_TIME' => 'The time now is %s',
- 'SEARCH_NEW' => 'View posts since last visit',
- 'SEARCH_SELF' => 'View your posts',
- 'SEARCH_UNANSWERED' => 'View unanswered posts',
'LOGIN' => 'Login',
'LOGOUT_USER' => 'Logout [ %s ]',
@@ -166,11 +282,29 @@ $lang = array(
'You_no_new_pm' => 'No new private messages are waiting for you',
'LEGEND' => 'Legend',
- 'RECORD_ONLINE_USERS' => 'Most users ever online was %1$s on %2$s',
- 'Registered_users' => 'Registered Users:',
- 'Browsing_forum_guest' => 'Users browsing this forum: %1$s and %2$d guest',
- 'Browsing_forum_guests' => 'Users browsing this forum: %1$s and %2$d guests',
+ 'REGISTERED_USERS' => 'Registered Users:',
+ 'BROWSING_FORUM_GUEST' => 'Users browsing this forum: %1$s and %2$d guest',
+ 'BROWSING_FORUM_GUESTS' => 'Users browsing this forum: %1$s and %2$d guests',
+ 'GUEST' => 'Guest',
+ 'ACP' => '[ %sAdministration Control Panel%s ]',
+ 'MCP' => '[ %sModerator Control Panel%s ]',
+
+ 'LOGIN_FORUM' => 'To view or post in this forum you must enter a password.',
+ 'WRONG_PASSWORD'=> 'You entered an incorrect password.',
+
+ 'INDEX' => 'Index page',
+ 'REDIRECTS' => 'Total redirects',
+ 'WHO_IS_ONLINE' => 'Who is Online',
+
+ 'SEARCH_NEW' => 'View posts since last visit',
+ 'SEARCH_SELF' => 'View your posts',
+ 'SEARCH_UNANSWERED' => 'View unanswered posts',
+
+ 'MARK_FORUMS_READ' => 'Mark all forums read',
+ 'FORUMS_MARKED' => 'All forums have been marked read',
+
+ 'RECORD_ONLINE_USERS' => 'Most users ever online was %1$s on %2$s',
'ONLINE_USERS_ZERO_TOTAL' => 'In total there are 0 users online :: ',
'ONLINE_USERS_TOTAL' => 'In total there are %d users online :: ',
'ONLINE_USER_TOTAL' => 'In total there is %d user online :: ',
@@ -184,26 +318,17 @@ $lang = array(
'GUEST_USERS_TOTAL' => '%d Guests',
'GUEST_USER_TOTAL' => '%d Guest',
- 'Posted_articles_zero_total'=> 'Our users have posted a total of 0 article',
- 'Posted_articles_total' => 'Our users have posted a total of %d articles',
- 'Posted_article_total' => 'Our users have posted a total of %d article',
- 'Posted_topics_zero_total' => 'Our users have posted a total of 0 topic',
- 'Posted_topics_total' => 'Our users have posted a total of %d topics',
- 'Posted_topic_total' => 'Our users have posted a total of %d topic',
+ 'POSTED_ARTICLES_ZERO_TOTAL'=> 'Our users have posted a total of 0 article',
+ 'POSTED_ARTICLES_TOTAL' => 'Our users have posted a total of %d articles',
+ 'POSTED_ARTICLE_TOTAL' => 'Our users have posted a total of %d article',
+ 'POSTED_TOPICS_ZERO_TOTAL' => 'Our users have posted a total of 0 topic',
+ 'POSTED_TOPICS_TOTAL' => 'Our users have posted a total of %d topics',
+ 'POSTED_TOPIC_TOTAL' => 'Our users have posted a total of %d topic',
+ 'NEWEST_USER' => 'The newest registered user is %s%s%s',
+ 'REGISTERED_USERS_ZERO_TOTAL' => 'We have 0 registered users',
+ 'REGISTERED_USERS_TOTAL' => 'We have %d registered users',
+ 'REGISTERED_USER_TOTAL' => 'We have %d registered user',
- 'Registered_users_zero_total' => 'We have 0 registered users',
- 'Registered_users_total' => 'We have %d registered users',
- 'Registered_user_total' => 'We have %d registered user',
- 'Newest_user' => 'The newest registered user is %s%s%s',
-
- 'NO_NEW_POSTS' => 'No new posts',
- 'NEW_POSTS' => 'New posts',
- 'NEW_POST' => 'New post',
- 'NO_NEW_POSTS_HOT' => 'No new posts [ Popular ]',
- 'NEW_POSTS_HOT' => 'New posts [ Popular ]',
- 'NO_NEW_POSTS_LOCKED' => 'No new posts [ Locked ]',
- 'NEW_POSTS_LOCKED' => 'New posts [ Locked ]',
- 'FORUM_LOCKED' => 'Forum Locked',
'POST_STICKY' => 'Sticky',
'POST_ANNOUNCEMENT' => 'Announcement',
@@ -216,7 +341,6 @@ $lang = array(
'LIST_USERS'=> '%d Users',
- 'REDIRECTS' => 'Total redirects',
'LOGIN' => 'Login',
'TERMS_USE' => 'Terms of Use',
'PRIVACY' => 'Privacy Policy',
@@ -231,18 +355,16 @@ $lang = array(
'Private_Messages' => 'Private Messages',
'View_forum' => 'View Forum',
- 'WHO_IS_ONLINE' => 'Who is Online',
+
'DISPLAY_TOPICS' => 'Display topics from previous',
'ALL_TOPICS' => 'All Topics',
- 'VIEW_TOPIC_ANNOUNCEMENT'=> 'Announcement:',
- 'VIEW_TOPIC_STICKY' => 'Sticky:',
- 'VIEW_TOPIC_MOVED' => 'Moved:',
- 'VIEW_TOPIC_POLL' => 'Poll:',
- 'VIEW_TOPIC_LOCKED' => 'Locked:',
- 'MARK_FORUMS_READ' => 'Mark all forums read',
- 'FORUMS_MARKED' => 'All forums have been marked read',
+ 'VIEW_TOPIC_ANNOUNCEMENT'=> 'Announcement',
+ 'VIEW_TOPIC_STICKY' => 'Sticky',
+ 'VIEW_TOPIC_MOVED' => 'Moved',
+ 'VIEW_TOPIC_POLL' => 'Poll',
+ 'VIEW_TOPIC_LOCKED' => 'Locked',
'MARK_TOPICS_READ' => 'Mark all topics read',
'TOPICS_MARKED' => 'The topics for this forum have now been marked read',
@@ -264,10 +386,6 @@ $lang = array(
'RULES_VOTE_CANNOT' => 'You cannot vote in polls in this forum',
- 'GUEST' => 'Guest',
- 'ACP' => '[ %sAdministration Control Panel%s ]',
- 'MCP' => '[ %sModerator Control Panel%s ]',
-
'NO_MODE' => 'No mode specified.',
'NO_FORUMS' => 'This board has no forums',
'NO_FORUM' => 'The forum you selected does not exist',
@@ -480,30 +598,33 @@ $lang = array(
'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options',
'NO_DELETE_POLL_OPTIONS'=> 'You cannot delete existing poll options',
- 'GENERAL_UPLOAD_ERROR' => 'Upload Error: Could not upload Attachment to %s',
- 'TOO_MANY_ATTACHMENTS' => 'Attachment cannot be added, since the max. number of %d Attachments in this post was achieved',
+ 'GENERAL_UPLOAD_ERROR' => 'Could not upload Attachment to %s',
+ 'TOO_MANY_ATTACHMENTS' => 'Cannot add another attacment, %d is the maxmimum.',
'INVALID_FILENAME' => '%s is an invalid filename',
- 'ATTACHMENT_PHP_SIZE_NA'=> 'The Attachment is too big. Couldn\'t get the maximum Size defined in PHP. The Attachment Mod is unable to determine the maximum Upload Size defined in the php.ini file.',
- 'ATTACHMENT_PHP_SIZE_OVERRUN' => 'The Attachment is too big. Maximum Upload Size: %d MB. Please note that this Size is defined in php.ini, this means it\'s set by PHP and the Attachment Mod can not override this value.',
'DISALLOWED_EXTENSION' => 'The Extension %s is not allowed',
'ALLOWED' => 'Allowed',
+ 'ATTACHMENT_PHP_SIZE_NA' => 'The attachment is too big. Could not get determine the maximum size defined by PHP in php.ini.',
+ 'ATTACHMENT_PHP_SIZE_OVERRUN' => 'The attachment is too big, maximum upload size is %d MB. Please note this is set in php.ini and cannot be overriden.',
+ 'ATTACHMENT_TOO_BIG' => 'The attachment is too big, maximum size is %1d %2s',
+ 'ATTACH_QUOTA_REACHED' => 'Sorry, the board attachment quota has been reached.',
'BYTES' => 'Bytes',
'KB' => 'KB',
'MB' => 'MB',
- 'ATTACHMENT_TOO_BIG' => 'The Attachment is too big, maximum size is %1d %2s',
- 'ATTACH_QUOTA_REACHED' => 'Sorry, the total board attachment quota has been reached.',
- 'EXTENSION_DISABLED_AFTER_POSTING' => 'The Extension \'%s\' has been deactivated by an board admin, therefore this Attachment is not displayed.', // used in Posts and PM's, replace %s with extension
+ 'EXTENSION_DISABLED_AFTER_POSTING' => 'The extension %s has been deactivated and can no longer be displayed.', // used in Posts and PM's, replace %s with extension
'DESCRIPTION' => 'Description',
'DOWNLOAD' => 'Download',
'FILESIZE' => 'Filesize',
- 'FILE_NOT_FOUND_404' => '404 File Not Found: The File %s does not exist.',
+ 'FILE_NOT_FOUND_404' => 'The file %s does not exist.',
'DOWNLOADED' => 'Downloaded',
'VIEWED' => 'Viewed',
- 'DOWNLOAD_NUMBER' => '%d Time(s)', // replace %d with count
+ 'DOWNLOAD_NUMBER' => '%d Time(s)', // replace %d with count <-- NEEDS CHANGING TO FOLLOWING
+ 'DOWNLOAD_NONE' => '0 Times', // replace %d with count
+ 'DOWNLOAD_COUNT' => '%d Time', // replace %d with count
+ 'DOWNLOAD_COUNTS' => '%d Times', // replace %d with count
- 'User_control_panel' => 'User Control Panel',
- 'UCP_Main' => 'Control Panel',
+ 'UCP' => 'User Control Panel',
+ 'UCP_Main' => 'Control Panel',
'UCP_Profile' => 'Profile Settings',
'UCP_Lists' => 'Black/White Lists',
'UCP_Priv_messages' => 'Private Messages',
@@ -557,7 +678,6 @@ $lang = array(
'Disable_Smilies_pm' => 'Disable Smilies in this message',
'Message_sent' => 'Your message has been sent',
'Click_return_inbox' => 'Click %sHere%s to return to your Inbox',
- 'Click_return_index' => 'Click %sHere%s to return to the Index',
'Send_a_new_message' => 'Send a new private message',
'Send_a_reply' => 'Reply to a private message',
'Edit_message' => 'Edit private message',
@@ -666,6 +786,7 @@ $lang = array(
'Account_active_admin' => 'The account has now been activated',
'Reactivate' => 'Reactivate your account!',
'Already_activated' => 'You have already activated your account',
+
'COPPA' => 'Your account has been created but has to be approved, please check your email for details.',
'REGISTRATION' => 'Registration Agreement Terms',
'REG_AGREEMENT' => 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.
You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.
This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above, they serve only to improve your viewing pleasure. The email address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).
By clicking Register below you agree to be bound by these conditions.',
@@ -747,6 +868,7 @@ $lang = array(
'SEND_MSN' => 'Please note that you need Microsoft (or MSN) Messenger installed to use this.',
'SEND_AIM' => 'Please note that you need AOL Instant Messenger installed to use this.',
+
'Group_Control_Panel' => 'Group Control Panel',
'Group_member_details' => 'Group Membership Details',
'Group_member_join' => 'Join a Group',
@@ -830,166 +952,35 @@ $lang = array(
'No_search_match' => 'No topics or posts met your search criteria',
'Found_search_match' => 'Search found %d match',
'Found_search_matches' => 'Search found %d matches',
+
- 'Sorry_auth_announce' => 'Sorry but only %s can post announcements in this forum',
- 'Sorry_auth_sticky' => 'Sorry but only %s can post sticky messages in this forum',
- 'Sorry_auth_read' => 'Sorry but only %s can read topics in this forum',
- 'Sorry_auth_post' => 'Sorry but only %s can post topics in this forum',
- 'Sorry_auth_reply' => 'Sorry but only %s can reply to posts in this forum',
- 'Sorry_auth_edit' => 'Sorry but only %s can edit posts in this forum',
- 'Sorry_auth_delete' => 'Sorry but only %s can delete posts in this forum',
- 'Sorry_auth_vote' => 'Sorry but only %s can vote in polls in this forum',
- 'Auth_Anonymous_Users' => 'anonymous users',
- 'Auth_Registered_Users' => 'registered users',
- 'Auth_Users_granted_access' => 'users granted special access',
- 'Auth_Moderators' => 'moderators',
- 'Auth_Administrators' => 'administrators',
- 'Not_Moderator' => 'You are not a moderator of this forum',
- 'Not_Authorised' => 'Not Authorised',
+ 'Not_Moderator' => 'You are not a moderator of this forum',
+ 'Not_Authorised' => 'Not Authorised',
- 'Reg_users_zero_online' => 'There are 0 Registered users and ',
- 'Reg_users_online' => 'There are %d Registered users and ',
- 'Reg_user_online' => 'There is %d Registered user and ',
- 'Hidden_users_zero_online' => '0 Hidden users online',
- 'Hidden_users_online' => '%d Hidden users online',
- 'Hidden_user_online' => '%d Hidden user online',
- 'Guest_users_online' => 'There are %d Guest users online',
- 'Guest_users_zero_online' => 'There are 0 Guest users online',
- 'Guest_user_online' => 'There is %d Guest user online',
- 'No_users_browsing' => 'There are no users currently browsing this forum',
+ 'REG_USERS_ZERO_ONLINE' => 'There are 0 Registered users and ',
+ 'REG_USERS_ONLINE' => 'There are %d Registered users and ',
+ 'REG_USER_ONLINE' => 'There is %d Registered user and ',
+ 'HIDDEN_USERS_ZERO_ONLINE'=> '0 Hidden users online',
+ 'HIDDEN_USERS_ONLINE' => '%d Hidden users online',
+ 'HIDDEN_USER_ONLINE' => '%d Hidden user online',
+ 'GUEST_USERS_ONLINE' => 'There are %d Guest users online',
+ 'GUEST_USERS_ZERO_ONLINE'=> 'There are 0 Guest users online',
+ 'GUEST_USER_ONLINE' => 'There is %d Guest user online',
+
'VIEW_ONLINE_TIME' => 'This data is based on users active over the past %d minute', // 1 minute
'VIEW_ONLINE_TIMES' => 'This data is based on users active over the past %d minutes', // 2 minutes, etc.
- 'Forum_Location' => 'Forum Location',
- 'Last_updated' => 'Last Updated',
- 'Forum_index' => 'Forum index',
- 'READING_FORUM' => 'Viewing topics in %s',
- 'READING_TOPIC' => 'Reading topic in %s',
- 'Logging_on' => 'Logging on',
- 'POSTING_MESSAGE' => 'Posting message in %s',
- 'REPLYING_MESSAGE' => 'Replying to message in %s',
- 'Searching_forums' => 'Searching forums',
- 'Viewing_profile' => 'Viewing profile',
- 'Viewing_online' => 'Viewing who is online',
- 'Viewing_member_list' => 'Viewing member list',
- 'Viewing_priv_msgs' => 'Viewing Private Messages',
- 'Viewing_FAQ' => 'Viewing FAQ',
-
- 'ALL_TIMES' => 'All times are %s %s',
- '-13' => 'GMT - 13 Hours',
- '-12' => 'GMT - 12 Hours',
- '-11' => 'GMT - 11 Hours',
- '-10' => 'GMT - 10 Hours',
- '-9' => 'GMT - 9 Hours',
- '-8' => 'GMT - 8 Hours',
- '-7' => 'GMT - 7 Hours',
- '-6' => 'GMT - 6 Hours',
- '-5' => 'GMT - 5 Hours',
- '-4' => 'GMT - 4 Hours',
- '-3.5' => 'GMT - 3.5 Hours',
- '-3' => 'GMT - 3 Hours',
- '-2.5' => 'GMT - 2.5 Hours',
- '-2' => 'GMT - 2 Hours',
- '-1' => 'GMT - 1 Hours',
- '0' => 'GMT',
- '1' => 'GMT + 1 Hour',
- '2' => 'GMT + 2 Hours',
- '3' => 'GMT + 3 Hours',
- '3.5' => 'GMT + 3.5 Hours',
- '4' => 'GMT + 4 Hours',
- '4.5' => 'GMT + 4.5 Hours',
- '5' => 'GMT + 5 Hours',
- '5.5' => 'GMT + 5.5 Hours',
- '6' => 'GMT + 6 Hours',
- '6.5' => 'GMT + 6.5 Hours',
- '7' => 'GMT + 7 Hours',
- '8' => 'GMT + 8 Hours',
- '9' => 'GMT + 9 Hours',
- '9.5' => 'GMT + 9.5 Hours',
- '10' => 'GMT + 10 Hours',
- '10.5' => 'GMT + 10.5 Hours',
- '11' => 'GMT + 11 Hours',
- '12' => 'GMT + 12 Hours',
- '13' => 'GMT + 13 Hours',
- 'tz' => array(
- '-13' => 'GMT - 13 Hours',
- '-12' => 'GMT - 12 Hours',
- '-11' => 'GMT - 11 Hours',
- '-10' => 'GMT - 10 Hours',
- '-9' => 'GMT - 9 Hours',
- '-8' => 'GMT - 8 Hours',
- '-7' => 'GMT - 7 Hours',
- '-6' => 'GMT - 6 Hours',
- '-5' => 'GMT - 5 Hours',
- '-4' => 'GMT - 4 Hours',
- '-3.5' => 'GMT - 3.5 Hours',
- '-3' => 'GMT - 3 Hours',
- '-2.5' => 'GMT - 2.5 Hours',
- '-2' => 'GMT - 2 Hours',
- '-1' => 'GMT - 1 Hours',
- '0' => 'GMT',
- '1' => 'GMT + 1 Hour',
- '2' => 'GMT + 2 Hours',
- '3' => 'GMT + 3 Hours',
- '3.5' => 'GMT + 3.5 Hours',
- '4' => 'GMT + 4 Hours',
- '4.5' => 'GMT + 4.5 Hours',
- '5' => 'GMT + 5 Hours',
- '5.5' => 'GMT + 5.5 Hours',
- '6' => 'GMT + 6 Hours',
- '6.5' => 'GMT + 6.5 Hours',
- '7' => 'GMT + 7 Hours',
- '8' => 'GMT + 8 Hours',
- '9' => 'GMT + 9 Hours',
- '9.5' => 'GMT + 9.5 Hours',
- '10' => 'GMT + 10 Hours',
- '10.5' => 'GMT + 10.5 Hours',
- '11' => 'GMT + 11 Hours',
- '12' => 'GMT + 12 Hours',
- '13' => 'GMT + 13 Hours',
- 'dst' => '[ DST ]'
- ),
- 'AM' => 'AM',
- 'PM' => 'PM',
- 'datetime' => array(
- 'Sunday' => 'Sunday',
- 'Monday' => 'Monday',
- 'Tuesday' => 'Tuesday',
- 'Wednesday' => 'Wednesday',
- 'Thursday' => 'Thursday',
- 'Friday' => 'Friday',
- 'Saturday' => 'Saturday',
- 'Sun' => 'Sun',
- 'Mon' => 'Mon',
- 'Tue' => 'Tue',
- 'Wed' => 'Wed',
- 'Thu' => 'Thu',
- 'Fri' => 'Fri',
- 'Sat' => 'Sat',
- 'January' => 'January',
- 'February' => 'February',
- 'March' => 'March',
- 'April' => 'April',
- 'May' => 'May',
- 'June' => 'June',
- 'July' => 'July',
- 'August' => 'August',
- 'September' => 'September',
- 'October' => 'October',
- 'November' => 'November',
- 'December' => 'December',
- 'Jan' => 'Jan',
- 'Feb' => 'Feb',
- 'Mar' => 'Mar',
- 'Apr' => 'Apr',
- 'Jun' => 'Jun',
- 'Jul' => 'Jul',
- 'Aug' => 'Aug',
- 'Sep' => 'Sep',
- 'Oct' => 'Oct',
- 'Nov' => 'Nov',
- 'Dec' => 'Dec',
- )
+ 'FORUM_LOCATION' => 'Forum Location',
+ 'LAST_UPDATED' => 'Last Updated',
+ 'READING_FORUM' => 'Viewing topics in %s',
+ 'READING_TOPIC' => 'Reading topic in %s',
+ 'POSTING_MESSAGE' => 'Posting message in %s',
+ 'REPLYING_MESSAGE' => 'Replying to message in %s',
+ 'SEARCHING_FORUMS' => 'Searching forums',
+ 'VIEWING_ONLINE' => 'Viewing who is online',
+ 'VIEWING_MEMBERS' => 'Viewing member details',
+ 'VIEWING_MESSAGES' => 'Viewing Private Messages',
+ 'VIEWING_FAQ' => 'Viewing FAQ',
);
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 6c6d267657..2cb5fcdad9 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -840,7 +840,7 @@ switch ($mode)
));
mcp_header('mcp_move.html');
- include($phpbb_root_path . 'includes/page_tail.' . $phpEx);
+ page_footer();
}
else
{
@@ -1977,7 +1977,7 @@ switch ($mode)
));
}
-include($phpbb_root_path . 'includes/page_tail.' . $phpEx);
+page_footer();
// -----------------------
// Page specific functions
@@ -1989,14 +1989,13 @@ function mcp_header($template_name, $jumpbox_acl = FALSE, $forum_nav = FALSE)
$forum_id = (!empty($forum_id)) ? $forum_id : FALSE;
- $page_title = sprintf($user->lang['MCP'], '', '');
- include($phpbb_root_path . 'includes/page_header.' . $phpEx);
+ page_header(sprintf($user->lang['MCP'], '', ''));
$template->set_filenames(array(
- 'body' => $template_name
- ));
+ 'body' => $template_name)
+ );
- if (preg_match('/mod_queue|post_reports|viewlogs/', $mode))
+ if (preg_match('#mod_queue|post_reports|viewlogs#', $mode))
{
$enable_select_all = TRUE;
}
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 9e6999fde0..5ae5b8ef29 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -24,11 +24,13 @@ $phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
+
// Start session management
$user->start();
$user->setup();
$auth->acl($user->data);
+
// Grab data
$mode = (isset($_REQUEST['mode'])) ? htmlspecialchars($_REQUEST['mode']) : '';
$user_id = (isset($_GET['u'])) ? intval($_GET['u']) : ANONYMOUS;
@@ -38,9 +40,10 @@ switch ($mode)
{
case 'email':
break;
+
default:
// Can this user view profiles/memberslist?
- if (!$auth->acl_gets('u_viewprofile', 'a_'))
+ if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
{
if ($user->data['user_id'] != ANONYMOUS)
{
@@ -94,7 +97,7 @@ $db->sql_freeresult($result);
switch ($mode)
{
case 'leaders':
- // Display a listing of board admins, moderators
+ // Display a listing of board admins, moderators?
break;
case 'contact':
@@ -141,6 +144,8 @@ switch ($mode)
}
$db->sql_freeresult($result);
+
+
// Which forums does this user have an enabled post count?
// Really auth should be handling this capability ...
$post_count_sql = array();
@@ -157,6 +162,8 @@ switch ($mode)
$post_count_sql = (sizeof($post_count_sql)) ? 'AND f.forum_id IN (' . implode(', ', $post_count_sql) . ')' : '';
unset($auth2);
+
+
// Grab all the relevant data
$sql = "SELECT COUNT(p.post_id) AS num_posts
FROM " . POSTS_TABLE . " p, " . FORUMS_TABLE . " f
@@ -581,14 +588,14 @@ switch ($mode)
// Output the page
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+page_header($page_title);
$template->set_filenames(array(
'body' => $template_html)
);
make_jumpbox('viewforum.'.$phpEx);
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
// ---------
@@ -694,6 +701,8 @@ function show_profile($data)
$search_img = '' . $user->img('btn_search', $user->lang['SEARCH']) . '';
$search = '' . $user->lang['SEARCH'] . '';
+
+
if ($data['user_sig_bbcode_bitfield'])
{
if (!isset($bbcode))
@@ -704,6 +713,8 @@ function show_profile($data)
$bbcode->bbcode_second_pass($data['user_sig'], $data['user_sig_bbcode_uid'], $data['user_sig_bbcode_bitfield']);
}
+
+
$last_visit = (!empty($data['session_time'])) ? $data['session_time'] : $data['user_lastvisit'];
$template_vars = array(
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 11cf0fc29e..e9b58eec31 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -167,6 +167,11 @@ if ($sql != '')
$topic_id = intval($row['topic_id']);
$post_id = intval($row['post_id']);
+ if ($row['forum_password'])
+ {
+ login_forum_box($row);
+ }
+
foreach ($forum_fields as $var => $type)
{
switch ($type)
@@ -466,8 +471,7 @@ if ($mode == 'delete' && (($poster_id == $user->data['user_id'] && $user->data['
{
$s_hidden_fields = '';
- $page_title = $user->lang['DELETE_MESSAGE'];
- include($phpbb_root_path . 'includes/page_header.' . $phpEx);
+ page_header($user->lang['DELETE_MESSAGE']);
$template->set_filenames(array(
'body' => 'confirm_body.html')
@@ -481,7 +485,7 @@ if ($mode == 'delete' && (($poster_id == $user->data['user_id'] && $user->data['
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
- include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+ page_footer();
}
}
@@ -1120,7 +1124,7 @@ if (($perm['f_attach']) || ($perm['m_edit']))
}
// Output page ...
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+page_header($page_title);
$template->set_filenames(array(
'body' => 'posting_body.html')
@@ -1134,7 +1138,7 @@ if ($mode == 'reply' || $mode == 'quote')
topic_review($topic_id, true);
}
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
// FUNCTIONS
@@ -1265,7 +1269,7 @@ function topic_review($topic_id, $is_inline_review = false)
'body' => 'posting_topic_review.html')
);
- include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+ page_footer();
}
}
diff --git a/phpBB/report.php b/phpBB/report.php
index c44342b831..b9f10a52ef 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -149,16 +149,16 @@ while ($row = $db->sql_fetchrow($result))
$template->assign_var('S_CAN_NOTIFY', ($user->data['user_id'] == ANONYMOUS) ? FALSE : TRUE);
-// Start output of page
-$page_title = $user->lang['REPORT_TO_ADMIN'];
-include($phpbb_root_path . 'includes/page_header.' . $phpEx);
-
generate_forum_nav($forum_data);
+
+// Start output of page
+page_header($user->lang['REPORT_TO_ADMIN']);
+
$template->set_filenames(array(
'body' => 'report_body.html')
);
-include($phpbb_root_path . 'includes/page_tail.' . $phpEx);
+page_tail();
?>
\ No newline at end of file
diff --git a/phpBB/search.php b/phpBB/search.php
index 994e1eb562..7da95b0865 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -1134,19 +1134,18 @@ if ( $search_keywords != '' || $search_author != '' || $search_id )
'L_GOTO_PAGE' => $user->lang['Goto_page'])
);
- $page_title = $user->lang['Search'];
- include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+ page_header($user->lang['SEARCH']);
$template->set_filenames(array(
'body' => ( $show_results == 'posts' ) ? 'search_results_posts.html' : 'search_results_topics.html')
);
make_jumpbox('viewforum.'.$phpEx);
- include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+ page_footer();
}
else
{
- message_die(MESSAGE, $user->lang['No_search_match']);
+ trigger_error($user->lang['No_search_match']);
}
}
@@ -1262,14 +1261,13 @@ $template->assign_vars(array(
//
// Output the basic page
//
-$page_title = $user->lang['Search'];
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+page_header($user->lang['SEARCH']);
$template->set_filenames(array(
'body' => 'search_body.html')
);
make_jumpbox('viewforum.'.$phpEx);
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?>
\ No newline at end of file
diff --git a/phpBB/templates/subSilver/viewonline_body.html b/phpBB/templates/subSilver/viewonline_body.html
index 9ad03ad9fb..4f0274ae70 100644
--- a/phpBB/templates/subSilver/viewonline_body.html
+++ b/phpBB/templates/subSilver/viewonline_body.html
@@ -9,7 +9,7 @@
{L_USERNAME}
-
{L_LAST_UPDATE}
+
{L_LAST_UPDATED}
{L_FORUM_LOCATION}
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index e03818f12b..476fd8f55b 100755
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -296,13 +296,12 @@ $db->sql_freeresult($result);
// Output the page
-$page_title = $user->lang['User_control_panel'] . ' - ' . $this_section;
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+page_header($user->lang['UCP'] . ' - ' . $this_section);
$template->set_filenames(array(
'body' => 'usercp_main.html')
);
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?>
\ No newline at end of file
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 64dd9948df..88e95ba6b9 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -116,11 +116,11 @@ if ($forum_data['forum_link'])
$user->setup(false, $forum_data['forum_style']);
-// Does a password exist for this forum? If so do the necessary
+// Forum is passworded ... check whether access has been granted to this
+// user this session, if not show login box
if ($forum_data['forum_password'])
{
-
-
+ login_forum_box($forum_data);
}
@@ -555,17 +555,15 @@ $nav_links['up'] = array(
);
*/
-// Dump out the page header and load viewforum template
-$page_title = $user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'];
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+// Dump out the page header and load viewforum template
+page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name']);
$template->set_filenames(array(
'body' => 'viewforum_body.html')
);
make_jumpbox("viewforum.$phpEx$SID", $forum_id);
-
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?>
\ No newline at end of file
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 3985e980f6..8cd33af480 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -24,38 +24,35 @@ $phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
+
// Start session management
$user->start();
$user->setup();
$auth->acl($user->data);
+
// Forum info
-$sql = "SELECT forum_id, forum_name
- FROM " . FORUMS_TABLE;
+$sql = 'SELECT forum_id, forum_name
+ FROM ' . FORUMS_TABLE;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$forum_data[$row['forum_id']] = $row['forum_name'];
}
+$db->sql_freeresult($result);
+
// Get user list
-$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_colour, s.session_time, s.session_page, s.session_ip, s.session_allow_viewonline
- FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s
+$sql = 'SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_colour, s.session_time, s.session_page, s.session_ip, s.session_allow_viewonline
+ FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . ' s
WHERE u.user_id = s.session_user_id
- AND s.session_time >= ".(time() - ($config['load_online_time'] * 60)) . "
- ORDER BY u.username ASC, s.session_ip ASC, s.session_time DESC";
+ AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) . '
+ ORDER BY u.username ASC, s.session_ip ASC, s.session_time DESC';
$result = $db->sql_query($sql);
-$guest_users = 0;
-$registered_users = 0;
-$hidden_users = 0;
-
-$reg_counter = 0;
-$guest_counter = 0;
-$prev_user = 0;
$prev_ip = '';
-
+$logged_visible_online = $logged_hidden_online = $guests_online = $reg_counter = $guest_counter = $prev_user = 0;
while ($row = $db->sql_fetchrow($result))
{
$view_online = false;
@@ -76,14 +73,14 @@ while ($row = $db->sql_fetchrow($result))
if (!$row['user_allow_viewonline'] || !$row['session_allow_viewonline'])
{
$view_online = ($auth->acl_gets('u_viewonline')) ? true : false;
- $hidden_users++;
+ $logged_hidden_online++;
$username = '' . $username . '';
}
else
{
$view_online = true;
- $registered_users++;
+ $logged_visible_online++;
}
$which_counter = 'reg_counter';
@@ -97,7 +94,7 @@ while ($row = $db->sql_fetchrow($result))
{
$username = $user->lang['GUEST'];
$view_online = true;
- $guest_users++;
+ $guests_online++;
$which_counter = 'guest_counter';
$which_row = 'guest_user_row';
@@ -113,7 +110,7 @@ while ($row = $db->sql_fetchrow($result))
switch ($on_page[1])
{
case 'index':
- $location = $user->lang['Forum_index'];
+ $location = $user->lang['INDEX'];
$location_url = "index.$phpEx$SID";
break;
@@ -123,7 +120,7 @@ while ($row = $db->sql_fetchrow($result))
preg_match('#f=([0-9]+)#', $row['session_page'], $forum_id);
$forum_id = $forum_id[1];
- if ($auth->acl_gets('f_list', 'a_', $forum_id))
+ if ($auth->acl_get('f_list', $forum_id))
{
$location = '';
switch ($on_page[1])
@@ -156,38 +153,33 @@ while ($row = $db->sql_fetchrow($result))
}
else
{
- $location = $user->lang['Forum_index'];
+ $location = $user->lang['INDEX'];
$location_url = "index.$phpEx$SID";
}
break;
case 'search':
- $location = $user->lang['Searching_forums'];
+ $location = $user->lang['SEARCHING_FORUMS'];
$location_url = "search.$phpEx$SID";
break;
- case 'profile':
- $location = $user->lang['Viewing_profile'];
- $location_url = "index.$phpEx$SID";
- break;
-
case 'faq':
- $location = $user->lang['Viewing_FAQ'];
+ $location = $user->lang['VIEWING_FAQ'];
$location_url = "faq.$phpEx$SID";
break;
case 'viewonline':
- $location = $user->lang['Viewing_online'];
+ $location = $user->lang['VIEWING_ONLINE'];
$location_url = "viewonline.$phpEx$SID";
break;
case 'memberslist':
- $location = $user->lang['Viewing_member_list'];
+ $location = $user->lang['VIEWING_MEMBERS'];
$location_url = "memberlist.$phpEx$SID";
break;
default:
- $location = $user->lang['Forum_index'];
+ $location = $user->lang['INDEX'];
$location_url = "index.$phpEx$SID";
break;
}
@@ -199,52 +191,42 @@ while ($row = $db->sql_fetchrow($result))
'S_ROW_COUNT' => $$which_counter,
- 'U_USER_PROFILE' => "memberlist.$phpEx$SID&mode=viewprofile&u=" . $user_id,
+ 'U_USER_PROFILE' => "memberlist.$phpEx$SID&mode=viewprofile&u=$user_id",
'U_FORUM_LOCATION' => $location_url)
);
$$which_counter++;
}
}
+$db->sql_freeresult($result);
-if($registered_users == 0)
-{
- $l_r_user_s = $user->lang['Reg_users_zero_online'];
-}
-else if($registered_users == 1)
-{
- $l_r_user_s = $user->lang['Reg_user_online'];
-}
-else
-{
- $l_r_user_s = $user->lang['Reg_users_online'];
-}
-if($hidden_users == 0)
-{
- $l_h_user_s = $user->lang['Hidden_users_zero_online'];
-}
-else if($hidden_users == 1)
-{
- $l_h_user_s = $user->lang['Hidden_user_online'];
-}
-else
-{
- $l_h_user_s = $user->lang['Hidden_users_online'];
-}
+// Generate reg/hidden/guest online text
+$vars_online = array(
+ 'REG' => array('logged_visible_online', 'l_r_user_s'),
+ 'HIDDEN'=> array('logged_hidden_online', 'l_h_user_s'),
+ 'GUEST' => array('guests_online', 'l_g_user_s')
+);
-if($guest_users == 0)
+foreach ($vars_online as $l_prefix => $var_ary)
{
- $l_g_user_s = $user->lang['Guest_users_zero_online'];
-}
-else if($guest_users == 1)
-{
- $l_g_user_s = $user->lang['Guest_user_online'];
-}
-else
-{
- $l_g_user_s = $user->lang['Guest_users_online'];
+ switch ($$var_ary[0])
+ {
+ case 0:
+ $$var_ary[1] = $user->lang[$l_prefix . '_USERS_ZERO_ONLINE'];
+ break;
+
+ case 1:
+ $$var_ary[1] = $user->lang[$l_prefix . '_USER_ONLINE'];
+ break;
+
+ default:
+ $$var_ary[1] = $user->lang[$l_prefix . '_USERS_ONLINE'];
+ break;
+ }
}
+unset($vars_online);
+
// Grab group details for legend display
$sql = "SELECT group_name, group_colour, group_type
@@ -258,31 +240,27 @@ while ($row = $db->sql_fetchrow($result))
{
$legend .= (($legend != '') ? ', ' : '') . '' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '';
}
+$db->sql_freeresult($result);
+
+// Send data to template
$template->assign_vars(array(
- 'TOTAL_REGISTERED_USERS_ONLINE' => sprintf($l_r_user_s, $registered_users) . sprintf($l_h_user_s, $hidden_users),
- 'TOTAL_GUEST_USERS_ONLINE' => sprintf($l_g_user_s, $guest_users),
+ 'TOTAL_REGISTERED_USERS_ONLINE' => sprintf($l_r_user_s, $logged_visible_online) . sprintf($l_h_user_s, $logged_hidden_online),
+ 'TOTAL_GUEST_USERS_ONLINE' => sprintf($l_g_user_s, $guests_online),
'LEGEND' => $legend,
- 'META' => '',
-
- 'L_WHOSONLINE' => $user->lang['Who_is_online'],
- 'L_ONLINE_EXPLAIN' => $user->lang['Online_explain'],
- 'L_USERNAME' => $user->lang['Username'],
- 'L_FORUM_LOCATION' => $user->lang['Forum_Location'],
- 'L_LAST_UPDATE' => $user->lang['Last_updated'],
- 'L_NO_GUESTS_BROWSING' => $user->lang['No_users_browsing'],
- 'L_NO_REGISTERED_USERS_BROWSING'=> $user->lang['No_users_browsing'])
+ 'META' => '')
);
-$page_title = $user->lang['Who_is_online'];
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+
+// Output the page
+page_header($user->lang['WHO_IS_ONLINE']);
$template->set_filenames(array(
'body' => 'viewonline_body.html')
);
make_jumpbox('viewforum.'.$phpEx);
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?>
\ No newline at end of file
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 1ad7c5091d..e3ca4a5e1e 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -155,7 +155,7 @@ else
}
}
$extra_fields = (!$post_id) ? '' : ", COUNT(p2.post_id) AS prev_posts";
-$order_sql = (!$post_id) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.poll_max_options, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style ORDER BY p.post_id ASC";
+$order_sql = (!$post_id) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.poll_max_options, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style, f.forum_password ORDER BY p.post_id ASC";
if ($user->data['user_id'] != ANONYMOUS)
{
@@ -177,13 +177,16 @@ if ($user->data['user_id'] != ANONYMOUS)
// is done so navigation, forum name, etc. remain consistent with where
// user clicked to view a global topic
+
+
+
// Note2: after much inspection, having to find a valid forum_id when making return_to_topic links for global announcements in mcp is a pain. The easiest solution is to let admins choose under what forum topics should be seen when forum_id is not specified (preferably a public forum)
if (!$forum_id)
{
$forum_id = 2;
}
-$sql = "SELECT t.topic_id, t.forum_id AS real_forum_id, t.topic_title, t.topic_attachment, t.topic_status, " . (($auth->acl_get('m_approve')) ? 't.topic_replies_real AS topic_replies' : 't.topic_replies') . ", t.topic_last_post_id, t.topic_time, t.topic_type, t.poll_max_options, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style" . $extra_fields . "
- FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
+$sql = 'SELECT t.topic_id, t.forum_id AS real_forum_id, t.topic_title, t.topic_attachment, t.topic_status, ' . (($auth->acl_get('m_approve')) ? 't.topic_replies_real AS topic_replies' : 't.topic_replies') . ', t.topic_last_post_id, t.topic_time, t.topic_type, t.poll_max_options, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style, f.forum_password' . $extra_fields . '
+ FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . ' f' . $join_sql_table . "
WHERE $join_sql
AND (f.forum_id = t.forum_id
OR (t.forum_id = 0 AND
@@ -192,15 +195,29 @@ $sql = "SELECT t.topic_id, t.forum_id AS real_forum_id, t.topic_title, t.topic_a
$order_sql";
$result = $db->sql_query($sql);
+
+
+
if (!$topic_data = $db->sql_fetchrow($result))
{
trigger_error('NO_TOPIC');
}
-extract($topic_data);
// Setup look and feel
-$user->setup(false, $forum_style);
+$user->setup(false, $topic_data['forum_style']);
+
+
+// Forum is passworded ... check whether access has been granted to this
+// user this session, if not show login box
+if ($topic_data['forum_password'])
+{
+ login_forum_box($topic_data);
+}
+
+
+// Extract the data
+extract($topic_data);
// Start auth check
@@ -1369,14 +1386,13 @@ if ($force_encoding != '')
// Output the page
-$page_title = $user->lang['VIEW_TOPIC'] .' - ' . $topic_title;
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_title);
$template->set_filenames(array(
'body' => (isset($_GET['view']) && $_GET['view'] == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?>
\ No newline at end of file