diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 41fd061e75..3649e7be51 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -233,6 +233,7 @@ p a {
[Fix] Prevent {URL} token in custom BBCodes from make_clickable messing (Bug #14151)
[Sec] Added alternative tokens to custom BBCodes which are safe for CSS/Javascript and changed TEXT token to entitise opening and closing parantheses.
[Fix] Convert 2.0 moderator posting permissions (Bug #14105)
+ [Fix] Correctly apply PM box limit of 0 to custom folder (Bug #14154)
@@ -544,7 +545,7 @@ p a {
-
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2007 phpBB Group, All Rights Reserved.
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
Top
diff --git a/phpBB/docs/FAQ.html b/phpBB/docs/FAQ.html
index 0ceba33038..0ccc7c0886 100644
--- a/phpBB/docs/FAQ.html
+++ b/phpBB/docs/FAQ.html
@@ -364,7 +364,7 @@ p a {
-
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2007 phpBB Group, All Rights Reserved.
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
Top
diff --git a/phpBB/docs/INSTALL.html b/phpBB/docs/INSTALL.html
index 8d9cac6cf3..e87614b5b2 100644
--- a/phpBB/docs/INSTALL.html
+++ b/phpBB/docs/INSTALL.html
@@ -531,7 +531,7 @@ p a {
-
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2007 phpBB Group, All Rights Reserved.
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
Top
diff --git a/phpBB/docs/README.html b/phpBB/docs/README.html
index 9f84503ef2..3dc47ae63b 100644
--- a/phpBB/docs/README.html
+++ b/phpBB/docs/README.html
@@ -431,7 +431,7 @@ p a {
-
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2007 phpBB Group, All Rights Reserved.
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
Top
diff --git a/phpBB/docs/auth_api.html b/phpBB/docs/auth_api.html
index 8f86ae2740..f744466254 100644
--- a/phpBB/docs/auth_api.html
+++ b/phpBB/docs/auth_api.html
@@ -178,7 +178,7 @@ body {
-
This is an explanation of how to use the phpBB auth/acl API. This document is (c) 2006 phpBB Group, copying or redistribution is not allowed without permission.
+
This is an explanation of how to use the phpBB auth/acl API.
Auth API
@@ -195,6 +195,7 @@ body {
Admin related functions
+
Copyright and disclaimer
@@ -360,6 +361,18 @@ $auth_admin = new auth_admin();
Top
+
+
+
+
+4. Copyright and disclaimer
+
+
+
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
+
+
+Top
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index 1efeadb111..a407be10ee 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -192,7 +192,7 @@ p a {
-These are the phpBB Coding Guidelines for Olympus, all attempts should be made to follow them as closely as possible.
This document is (c) 2006 phpBB Group, copying or redistribution is not allowed without permission.
+These are the phpBB Coding Guidelines for Olympus, all attempts should be made to follow them as closely as possible.
Coding Guidelines
@@ -224,6 +224,7 @@ p a {
Guidelines Changelog
+ Copyright and disclaimer
@@ -803,7 +804,7 @@ $sql = 'SELECT *
sql_escape():
- Always use $db->sql_escape()
if you need to check for a string within an SQL statement (even if you are sure the variable can not contain single quotes - never trust your input), for example:
+ Always use $db->sql_escape()
if you need to check for a string within an SQL statement (even if you are sure the variable cannot contain single quotes - never trust your input), for example:
$sql = 'SELECT *
@@ -2353,6 +2354,18 @@ if (utf8_case_fold_nfc($string1) == utf8_case_fold_nfc($string2))
+
+Top
+
+
+
+
+8. Copyright and disclaimer
+
+
+
+
This application is opensource software released under the GPL. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) 2000, 2002, 2005, 2007 phpBB Group, All Rights Reserved.
+
Top
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index d9f8256483..142b1e8ce7 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1957,8 +1957,8 @@ function meta_refresh($time, $url)
* @param boolean $check True for checking if confirmed (without any additional parameters) and false for displaying the confirm box
* @param string $title Title/Message used for confirm box.
* message text is _CONFIRM appended to title.
-* If title can not be found in user->lang a default one is displayed
-* If title_CONFIRM can not be found in user->lang the text given is used.
+* If title cannot be found in user->lang a default one is displayed
+* If title_CONFIRM cannot be found in user->lang the text given is used.
* @param string $hidden Hidden variables
* @param string $html_body Template used for confirm box
* @param string $u_action Custom form action
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index ac6f4a0afe..f0d0520a03 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -778,7 +778,7 @@ function move_pm($user_id, $message_limit, $move_msg_ids, $dest_folder, $cur_fol
trigger_error('NOT_AUTHORISED');
}
- if ($row['pm_count'] + sizeof($move_msg_ids) > $message_limit)
+ if ($message_limit && $row['pm_count'] + sizeof($move_msg_ids) > $message_limit)
{
$message = sprintf($user->lang['NOT_ENOUGH_SPACE_FOLDER'], $row['folder_name']) . '
';
$message .= sprintf($user->lang['CLICK_RETURN_FOLDER'], '', '', $row['folder_name']);
@@ -795,7 +795,7 @@ function move_pm($user_id, $message_limit, $move_msg_ids, $dest_folder, $cur_fol
$num_messages = (int) $db->sql_fetchfield('num_messages');
$db->sql_freeresult($result);
- if ($num_messages + sizeof($move_msg_ids) > $message_limit)
+ if ($message_limit && $num_messages + sizeof($move_msg_ids) > $message_limit)
{
$message = sprintf($user->lang['NOT_ENOUGH_SPACE_FOLDER'], $user->lang['PM_INBOX']) . '
';
$message .= sprintf($user->lang['CLICK_RETURN_FOLDER'], '', '', $user->lang['PM_INBOX']);
@@ -1281,9 +1281,9 @@ function get_folder_status($folder_id, $folder)
$return = array(
'folder_name' => $folder['folder_name'],
'cur' => $folder['num_messages'],
- 'remaining' => $user->data['message_limit'] - $folder['num_messages'],
+ 'remaining' => ($user->data['message_limit']) ? $user->data['message_limit'] - $folder['num_messages'] : 0,
'max' => $user->data['message_limit'],
- 'percent' => ($user->data['message_limit'] > 0) ? round(($folder['num_messages'] / $user->data['message_limit']) * 100) : 100,
+ 'percent' => ($user->data['message_limit']) ? (($user->data['message_limit'] > 0) ? round(($folder['num_messages'] / $user->data['message_limit']) * 100) : 100) : 0,
);
$return['message'] = sprintf($user->lang['FOLDER_STATUS_MSG'], $return['percent'], $return['cur'], $return['max']);
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 3d7df02850..d6391a4821 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -427,7 +427,7 @@ class ucp_register
$str = '';
if (!$change_lang)
{
- $sql = 'SELECT c.confirm_id
+ $sql = 'SELECT c.session_id
FROM ' . CONFIRM_TABLE . ' c
LEFT JOIN ' . SESSIONS_TABLE . ' s ON (c.session_id = s.session_id)
WHERE s.session_id IS NULL';
@@ -438,14 +438,14 @@ class ucp_register
$sql_in = array();
do
{
- $sql_in[] = (string) $row['confirm_id'];
+ $sql_in[(string) $row['session_id']] = 1;
}
while ($row = $db->sql_fetchrow($result));
if (sizeof($sql_in))
{
$sql = 'DELETE FROM ' . CONFIRM_TABLE . '
- WHERE ' . $db->sql_in_set('confirm_id', $sql_in) . '
+ WHERE ' . $db->sql_in_set('session_id', array_keys($sql_in)) . '
AND confirm_type = ' . CONFIRM_REG;
$db->sql_query($sql);
}
diff --git a/phpBB/language/en/ucp.php b/phpBB/language/en/ucp.php
index 44ae3bc196..7c397535ca 100644
--- a/phpBB/language/en/ucp.php
+++ b/phpBB/language/en/ucp.php
@@ -34,7 +34,7 @@ if (empty($lang) || !is_array($lang))
$lang = array_merge($lang, array(
'TERMS_OF_USE_CONTENT' => 'By accessing “%1$s” (hereinafter “we”, “us”, “our”, “%1$s”, “%2$s”), you agree to be legally bound by the following terms. If you do not agree to be legally bound by all of the following terms then please do not access and/or use “%1$s”. We may change these at any time and we’ll do our utmost in informing you, though it would be prudent to review this regularly yourself as your continued usage of “%1$s” after changes mean you agree to be legally bound by these terms as they are updated and/or amended.
- Our forums are powered by phpBB (hereinafter “they”, “them”, “their”, “phpBB software”, “www.phpbb.com”, “phpBB Group”, “phpBB Teams”) which is a bulletin board solution released under the “General Public License” (hereinafter “GPL”) and can be downloaded from www.phpbb.com. The phpBB software only facilitates internet based discussions, the phpBB Group are not responsible for what we allow and/or disallow as permissible content and/or conduct. For further information about phpBB, please see: http://www.phpbb.com/.
+ Our forums are powered by phpBB (hereinafter “they”, “them”, “their”, “phpBB software”, “www.phpbb.com”, “phpBB Group”, “phpBB Teams”) which is a bulletin board solution released under the “General Public License” (hereinafter “GPL”) and can be downloaded from www.phpbb.com. The phpBB software only facilitates internet based discussions, the phpBB Group are not responsible for what we allow and/or disallow as permissible content and/or conduct. For further information about phpBB, please see: http://www.phpbb.com/.
You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any laws be it of your country, the country where “%1$s” is hosted or International Law. Doing so may lead to you being immediately and permanently banned, with notification of your Internet Service Provider if deemed required by us. The IP address of all posts are recorded to aid in enforcing these conditions. You agree that “%1$s” have the right to remove, edit, move or close any topic at any time should we see fit. As a user you agree to any information you have entered to being stored in a database. While this information will not be disclosed to any third party without your consent, neither “%1$s” nor phpBB shall be held responsible for any hacking attempt that may lead to the data being compromised.
',
@@ -106,8 +106,8 @@ $lang = array_merge($lang, array(
'CANNOT_EDIT_MESSAGE_TIME' => 'You can no longer edit or delete that message.',
'CANNOT_MOVE_TO_SAME_FOLDER'=> 'Messages cannot be moved to the folder you want to remove.',
'CANNOT_MOVE_FROM_SPECIAL' => 'Messages cannot be moved from the outbox.',
- 'CANNOT_RENAME_FOLDER' => 'This folder can not be renamed.',
- 'CANNOT_REMOVE_FOLDER' => 'This folder can not be removed.',
+ 'CANNOT_RENAME_FOLDER' => 'This folder cannot be renamed.',
+ 'CANNOT_REMOVE_FOLDER' => 'This folder cannot be removed.',
'CHANGE_DEFAULT_GROUP' => 'Change default group',
'CHANGE_PASSWORD' => 'Change password',
'CLICK_RETURN_FOLDER' => '%1$sReturn to your “%3$s” folder%2$s',