aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/10950] Fix grammar in commentsJoas Schilling2012-07-201-3/+3
| | | | PHPBB3-10950
* [ticket/10950] Delete PMs for users that have not yet read the pmJoas Schilling2012-07-201-32/+44
| | | | PHPBB3-10950
* [ticket/10950] Update undelivered pm counts in batches not 1 by 1 for each userJoas Schilling2012-07-161-5/+18
| | | | PHPBB3-10950
* [ticket/10950] Use database count() and group by instead of doing that in phpJoas Schilling2012-07-111-11/+5
| | | | PHPBB3-10950
* [ticket/10950] Check $delete_ids to be not emptyJoas Schilling2012-07-041-19/+22
| | | | PHPBB3-10950
* [ticket/10950] Recreated the behaviour of phpbb_delete_user_pms()Joas Schilling2012-07-041-58/+74
| | | | | | | | | | | - Get delete_ids, pms of the user as receipt - Get undelivered_msg, pms of the user as sender - Delete undelivered_msg, if there are only NO_BOX, OUTBOX and SENTBOX links - Correct the _new and _unread user values for the receipts - Delete delete_ids, if there are no links to them anymore - Reset _new and _unread values for the user we delete PHPBB3-10950
* [ticket/10950] Correct comment for the second query.Andreas Fischer2012-06-231-1/+1
| | | | | | Only undelivered messages are handled. PHPBB3-10950
* [ticket/10950] Add empty line to make unset() call more visible.Andreas Fischer2012-06-231-0/+1
| | | | PHPBB3-10950
* [ticket/10950] Select the correct columns in SQL queries.Andreas Fischer2012-06-231-2/+2
| | | | PHPBB3-10950
* [ticket/10950] Use a variable for the private message id.Andreas Fischer2012-06-231-6/+8
| | | | PHPBB3-10950
* [ticket/10950] Move array initialisation to the front.Andreas Fischer2012-06-231-1/+2
| | | | PHPBB3-10950
* [ticket/10950] Remove redundant if statement.Andreas Fischer2012-06-231-12/+9
| | | | | | We already know author_id and folder_id. PHPBB3-10950
* [ticket/10950] Fix SQL coding style (indentation) in second SQL query.Andreas Fischer2012-06-231-1/+1
| | | | PHPBB3-10950
* [ticket/10950] Use proper ' in order to fix comment.Andreas Fischer2012-06-231-1/+1
| | | | PHPBB3-10950
* [ticket/10790] Remove a (kind of) dead code section from submit_pm().Andreas Fischer2012-05-221-6/+0
| | | | | | | | | | | | | | | | | | | | The type of $user->data['user_id'] is (almost) guranteed to be integer since session::session_create() casts it to integer. The type of $row['user_id'] is only an integer if the DB driver adjusts the PHP type according to the DB type. This is only done by some of our not-so-popular DB drivers and is not the case for MySQL. As such this comparison is (almost) never true and a PM is also sent to the author itself when it is sent to a group the author is also a member of. Since this behaviour seems to have been accepted by the communty, the dead code is removed and current behaviour is kept. Also, checking this in the loop seems to be a rather bad idea. Introduced by 78b1c4caaa17cc8760b685ad41c19f15f9d89b68. PHPBB3-10790
* Merge branch 'ticket/10605' into develop-olympusAndreas Fischer2012-05-141-0/+160
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/10605: [ticket/10605] Use database updater function _sql() instead of $db->sql_query() [ticket/10605] Put end of array on its own line because start of array is too. [ticket/10605] Add parameter documentation to phpbb_delete_user_pms [ticket/10605] Fix left join usage. [ticket/10605] Add a section for updating from 3.0.10 to schema updates. [ticket/10605] Fix syntax error in database updater. [ticket/10605] Reset user´s pm count to 0 when deleting his PMs [ticket/10605] Split query to be able to use indexes [ticket/10605] Rename $delete_rows to $delete_ids. [ticket/10605] Break long comment into multiple lines 80 chars short. [ticket/10605] Remove unnecessary $delete_ids array. [ticket/10605] Remove unnecessary array_keys calls on $delete_rows. [ticket/10605] Remove unused variable declarations. [ticket/10605] Turn $undelivered_user into a real array of counters. [ticket/10605] Use unset() instead of checking user_id over and over again. [ticket/10605] Prefix function with phpbb_ and use true instead of 1 [ticket/10605] Delete orphan private messages on update [ticket/10605] Check for orphan privmsgs when deleting a user Conflicts: phpBB/install/database_update.php
| * [ticket/10605] Add parameter documentation to phpbb_delete_user_pmsJoas Schilling2012-04-131-0/+4
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Reset user´s pm count to 0 when deleting his PMsJoas Schilling2012-03-271-1/+11
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Split query to be able to use indexesJoas Schilling2012-03-271-3/+31
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Rename $delete_rows to $delete_ids.Andreas Fischer2012-03-271-9/+9
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Break long comment into multiple lines 80 chars short.Andreas Fischer2012-03-271-1/+2
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Remove unnecessary $delete_ids array.Andreas Fischer2012-03-271-5/+3
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Remove unnecessary array_keys calls on $delete_rows.Andreas Fischer2012-03-271-3/+3
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Remove unused variable declarations.Andreas Fischer2012-03-271-1/+0
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Turn $undelivered_user into a real array of counters.Andreas Fischer2012-03-271-4/+12
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Use unset() instead of checking user_id over and over again.Andreas Fischer2012-03-271-5/+1
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Prefix function with phpbb_ and use true instead of 1Joas Schilling2012-03-121-2/+2
| | | | | | | | PHPBB3-10605
| * [ticket/10605] Check for orphan privmsgs when deleting a userJoas Schilling2012-02-181-0/+116
| | | | | | | | | | | | Also moved the hole code into a new function. PHPBB3-10605
* | [ticket/10684] Adjust function and parameter name, minor changes.rxu2012-03-221-2/+2
| | | | | | | | PHPBB3-10684
* | [ticket/10684] Remove intval mapping for array keysrxu2012-03-121-1/+1
| | | | | | | | | | | | | | | | | | PHP manual for arrays http://php.net/manual/en/language.types.array.php states that the following key cast will occur: Strings containing valid integers will be cast to the integer type. E.g. the key "8" will actually be stored under 8. Thus, no intval mapping for numeric array keys is needed. PHPBB3-10684
* | [ticket/10684] Adjust pm_notifications() to handle stale bansrxu2012-03-121-11/+6
|/ | | | | | | - Add parameter (array) to the function phpbb_get_banned_users_ids() - Fix function pm_notification() to handle users with stale bans PHPBB3-10684
* [ticket/8616] Include old U_INBOX var for BCIgor Wiedler2011-11-111-2/+3
| | | | PHPBB3-8616
* [ticket/8616] Rename U_INBOX to U_VIEW_MESSAGEIgor Wiedler2011-10-131-1/+1
| | | | PHPBB3-8616
* [ticket/8616] Direct links in pm notification emailsAlan2011-10-131-3/+3
| | | | | | | Import the "Direct links in pm notification emails" modification, version 1.0.1. PHPBB3-8616
* [ticket/7716] Data too long for column 'message_subject'Joas Schilling2010-08-211-0/+3
| | | | PHPBB3-7716
* [ticket/9757] Fix empty template variable {HISTORY_TITLE}Josh Woody2010-07-291-2/+2
| | | | | | | | | The template variable {HISTORY_TITLE} was always being set to the empty string. It is now filled with the title of the currently displayed message. It is not showed in prosilver or subsilver2 for aesthetic reasons (title is already prominent) PHPBB3-9757
* Do not permit unauthorised users to delete private messages from folder ↵Chris Smith2009-12-111-0/+7
| | | | | | listing. #54355 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10322 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix Bug #51655 - Missing global vars phpbb_root_path & phpExJoas Schilling2009-09-191-1/+1
| | | | | | Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10165 89ea8834-ac86-4346-8a33-228a782c2dd0
* Bug #39505, r9677 - Add integer casting and allow array to be empty. Unset ↵Andreas Fischer2009-09-031-3/+6
| | | | | | array when no longer needed. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10092 89ea8834-ac86-4346-8a33-228a782c2dd0
* Even if the recipient of a PM is now inactive (for whatever reason) still ↵Meik Sievertsen2009-08-041-2/+1
| | | | | | display the information in PM recipient lists and do not hide it git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9918 89ea8834-ac86-4346-8a33-228a782c2dd0
* Apply locale-independent basename() to attachment filenames. New function ↵Meik Sievertsen2009-08-011-1/+1
| | | | | | added: utf8_basename(). (Bug #43335 - Patch by ocean=Yohsuke) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9905 89ea8834-ac86-4346-8a33-228a782c2dd0
* Do not send private message back to sender if sender is in the same group ↵Meik Sievertsen2009-07-271-1/+7
| | | | | | the private message was sent to. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9876 89ea8834-ac86-4346-8a33-228a782c2dd0
* Users can report PMs to moderators which are then visible in a new MCP moduleNils Adermann2009-07-211-1/+91
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9814 89ea8834-ac86-4346-8a33-228a782c2dd0
* Change bug #39505 - Pm history only shows pms of the receipts you currently ↵Joas Schilling2009-06-261-1/+18
| | | | | | | | reply to Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9677 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #37285 - [Change] Add quote-button for own pm's in pm-historyJoas Schilling2009-06-241-2/+2
| | | | | | Authorised by: ToonArmy git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9671 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #46065 - Correctly show private message historyAndreas Fischer2009-06-081-1/+1
| | | | | | Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9561 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix skipping messages if using next/prev PM in history links. (Bug #22205)Meik Sievertsen2009-04-121-3/+8
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9441 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix race condition for updating post/topic/etc. counter. (reported by BartVB)Meik Sievertsen2009-03-191-3/+3
| | | | | | please do not try such fixes at home - the correct solution would be to create a second config table with integer columns. ;) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9398 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix regression introduced in r8951 #34985Chris Smith2008-10-101-5/+16
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8993 89ea8834-ac86-4346-8a33-228a782c2dd0
* Check users pm preferences for pm's sent to groups. (Bug #33245)Meik Sievertsen2008-09-301-1/+6
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8964 89ea8834-ac86-4346-8a33-228a782c2dd0