aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/13757] Properly fix bug with negative PM countVictor A. Safronov2016-12-021-1/+2
| | | | | | | | | The fix from PR #4548 doesn't work as expected because in phpBB the sql_affectedrows() method always returns a count of matched rows instead of affected rows. This commit fixes bug properly. PHPBB3-13757
* [ticket/13757] Prevents the count of unread PMs from being negativeVictor A. Safronov2016-11-301-0/+6
| | | | | | | | | Sometimes the user_unread_privmsg flag in users table can become negative. It happens when the unread message is requested by simultaneous concurrent requests. Both requests will decrement the value of the flag. This commit prevents updating the flag if the message already marked as read. PHPBB3-13757
* [ticket/14276] Adjust function get_folder_statusRichard McGirr2015-11-071-1/+1
| | | | PHPBB3-14276
* [ticket/13595] Removed unused codeJoshyPHP2015-02-131-13/+1
| | | | PHPBB3-13595
* [ticket/13597] Modify variable-variable syntax to be compatible with PHP7Marc Alexander2015-02-111-2/+2
| | | | PHPBB3-13597
* [ticket/13205] Explicitly cast ids to integers and reformat SQLNils Adermann2014-10-221-4/+5
| | | | PHPBB3-13205
* [ticket/13205] Add a mark all messages read link to PM foldersNils Adermann2014-10-221-0/+17
| | | | PHPBB3-13205
* [ticket/13027] round to floorJakub Senko2014-09-091-1/+1
| | | | PHPBB3-13027
* [ticket/12990] Use the full services name for the notification's typesTristan Darricau2014-08-161-7/+7
| | | | PHPBB3-12990
* Merge branch 'ticket/11480' into ticket/11480-ascraeusTristan Darricau2014-07-301-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | * ticket/11480: [ticket/11480] Move the test into get_folder() [ticket/11480] Fix the double spaces in phpbb_functional_test_case [ticket/11480] Fix typos [ticket/11480] Add functionnal test [ticket/11480] PM : "Unknown folder" returned when inbox folder is full Conflicts: tests/test_framework/phpbb_functional_test_case.php
| * [ticket/11480] Move the test into get_folder()Tristan Darricau2014-07-301-1/+1
| | | | | | | | PHPBB3-11480
* | Merge pull request #2574 from lucifer4o/ticket/12690Joas Schilling2014-06-231-0/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | [ticket/12690] Add core.submit_pm_after event * lucifer4o/ticket/12690: [ticket/12690] Find a space [ticket/12690] Remove $msg_id and chmod [ticket/12690] Add other info to core.submit_pm_after [ticket/12690] Add core.submit_pm_after event
| * | [ticket/12690] Find a spaceStanislav Atanasov2014-06-221-1/+1
| | | | | | | | | | | | | | | | | | Lost a spce there ... found it ... PHPBB3-12690
| * | [ticket/12690] Remove $msg_id and chmodStanislav Atanasov2014-06-221-3/+1
| | | | | | | | | | | | | | | | | | | | | Remove inneded $msg_id Chmod file to 644 PHPBB3-12690
| * | [ticket/12690] Add other info to core.submit_pm_afterStanislav Atanasov2014-06-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added $mode Added $subject Added $data Added $pm_data PHPBB3-12690
| * | [ticket/12690] Add core.submit_pm_after eventStanislav Atanasov2014-06-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add core.submit_pm_after to funtion submit_pm. Event will return just submited msg_id. It should be plased just before return $data['msg_id']; Justification: Using only core.submit_pm_before does not allow to follow up after message submission. The message ID is recieved at DB submission. Some times we need the MSG_ID as identifier PHPBB3-12690
* | | [ticket/12691] Comment changeStanislav Atanasov2014-06-221-1/+1
| | | | | | | | | | | | | | | | | | Change a bit the core event comment PHPBB3-12691
* | | [ticket/12691] Change event to core.delete_pm_beforeStanislav Atanasov2014-06-221-3/+3
| | | | | | | | | | | | | | | | | | Just a requested change by nickvergessen PHPBB3-12691
* | | [ticket/12691] Add core.delete_pm to funtion delete_pmStanislav Atanasov2014-06-221-1/+13
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Add core.delete_pm to funtion delete_pm. Event will return: int $user_id - ID of the user requested the message delete array $msg_ids - array of all messages to be deleted int $folder_id - ID of the user folder where the messages are stored Justification: Allow extensions to capture this event and act as intended by ext author PHPBB3-12691
* | [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-3/+7
| | | | | | | | PHPBB3-12594
* | Merge remote-tracking branch 'github-nickvergessen/ticket/12273' into ↵Nils Adermann2014-05-021-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-ascraeus * github-nickvergessen/ticket/12273: (55 commits) [ticket/12273] Move $extension to constructor so the path is always set [ticket/12273] Find events.md relative from the path not the phpbb root [ticket/12273] Do not look in extensions docs/ and tests/ directory [ticket/12273] Also check file for adm "Location:" events [ticket/12273] Do not allow template events in non-html files [ticket/12273] Fix return description [ticket/12273] Update exporter to allow specifying an extension [ticket/12273] Allow to filter events for extensions [ticket/12273] Remove old parameter from function call [ticket/12273] Fix table header for adm events [ticket/12273] Add root path to recursive_event_filter_iterator [ticket/12273] Fix missing classes in export_events_for_wiki.php [ticket/12273] Use RecursiveDirectoryIterator with filter in php_exporter [ticket/12273] Use RecursiveDirectoryIterator in md_exporter [ticket/12273] Fix doc blocks [ticket/12273] Do not allow 3.1-A1 for template events [ticket/12273] Sort arguments alphabetically before exporting [ticket/12273] Do not allow 3.1-A1 version [ticket/12273] Update since version to 3.1.0-a* style [ticket/12273] Update existing events ...
| * | [ticket/12273] Fix invalid @event and @since tagsJoas Schilling2014-04-181-1/+1
| | | | | | | | | | | | PHPBB3-12273
* | | [ticket/12458] Apply Squiz.WhiteSpace.SuperfluousWhitespace.* to legacy code.Andreas Fischer2014-04-291-3/+2
|/ / | | | | | | | | | | | | | | | | * There MUST NOT be trailing whitespace at the end of lines. * There MUST NOT be whitespace before the first content of a file. * There MUST NOT be whitespace after the last content of a file. * Functions MUST NOT contain multiple empty lines in a row. PHPBB3-12458
* | [ticket/12344] Add core.pm_submit_before to function submit_pmlucifer4o2014-04-151-1/+13
| | | | | | | | PHPBB3-12344
* | [ticket/12226] Split language strings to correctly allow multiple plural rulesJoas Schilling2014-02-241-1/+1
| | | | | | | | PHPBB3-12226
* | Merge remote-tracking branch 'github-phpbb/develop' into ticket/11700Nils Adermann2013-09-161-8/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * github-phpbb/develop: (586 commits) [ticket/11735] Display disabled checkbox in subsilver for read notifications [ticket/11735] Display disabled checkbox when notification is already read [ticket/11844] update acp/authentication language var [ticket/11795] Remove PM popup [ticket/11795] Remove outdated comment from forum_fn.js [ticket/11795] Move find user JS to forum_fn [ticket/11795] Replace TWIG with phpBB syntax in ACP [ticket/11795] Move MSN scripts to forum_fn.js [ticket/11795] Use phpBB template syntax instead of TWIG [ticket/11795] Move PM popup JS to forum_fn.js [ticket/11795] Get rid of pagination JS variables [ticket/11795] Get rid of onload_functions [ticket/11795] Use data-reset-on-edit attr to reset elements [ticket/11795] Redo form elements auto-focus [ticket/11811] Remove outline on :focus [ticket/11836] Fix subsilver fatal error [ticket/11837] Replace escaped single quote with utf-8 single quote [ticket/11836] Fix fatal error on unsupported provider for auth link [ticket/11837] Translate UCP_AUTH_LINK_NOT_SUPPORTED [ticket/11809] Ensure code.js is first script included after jQuery ... Conflicts: phpBB/config/services.yml phpBB/develop/create_schema_files.php phpBB/develop/mysql_upgrader.php phpBB/download/file.php phpBB/includes/bbcode.php phpBB/includes/functions_container.php phpBB/install/database_update.php phpBB/install/index.php phpBB/phpbb/controller/helper.php phpBB/phpbb/controller/resolver.php phpBB/phpbb/request/request_interface.php phpBB/phpbb/session.php phpBB/phpbb/style/extension_path_provider.php phpBB/phpbb/style/path_provider.php phpBB/phpbb/style/path_provider_interface.php phpBB/phpbb/style/resource_locator.php phpBB/phpbb/style/style.php phpBB/phpbb/template/locator.php phpBB/phpbb/template/template.php phpBB/phpbb/template/twig/node/includeasset.php phpBB/phpbb/template/twig/node/includecss.php phpBB/phpbb/template/twig/node/includejs.php phpBB/phpbb/template/twig/twig.php tests/controller/helper_url_test.php tests/di/create_container_test.php tests/extension/style_path_provider_test.php tests/notification/notification_test.php tests/session/continue_test.php tests/session/creation_test.php tests/template/template_events_test.php tests/template/template_test_case.php tests/template/template_test_case_with_tree.php tests/test_framework/phpbb_functional_test_case.php
| * | [ticket/11640] removed the space that I wonder what it was doing there.Bruno Ais2013-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11640
| * | [ticket/11640] removed the unsetBruno Ais2013-07-221-1/+0
| | | | | | | | | | | | | | | | | | | | | sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11640
| * | [ticket/11640] generate_text_for_display on functions_privmsgs.phpBruno Ais2013-07-161-8/+6
| | | | | | | | | | | | | | | | | | | | | sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11640
* | | [ticket/11700] Move all recent code to namespacesNils Adermann2013-09-161-1/+1
|/ / | | | | | | PHPBB3-11700
* | [ticket/11103] Instantiate $phpbb_notifications as neededNathan Guse2012-12-131-7/+12
| | | | | | | | | | | | https://github.com/phpbb/phpbb3/pull/992#discussion_r2413976 PHPBB3-11103
* | [ticket/11103] Create user loader class, update for DICNathan Guse2012-11-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Create a very basic user loader class to handle querying/storing user data in a centralized location. Use DIC collection service for notification types/methods. Cleanup unused dependencies. Fix some other issues. PHPBB3-11103
* | [ticket/11103] Fix failed automergeNathaniel Guse2012-11-101-1/+1
| | | | | | | | PHPBB3-11103
* | Merge branch 'develop' of github.com:EXreaction/phpbb3 into ticket/11103Nathaniel Guse2012-11-101-10/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: phpBB/install/schemas/mssql_schema.sql phpBB/report.php phpBB/styles/prosilver/template/ucp_prefs_personal.html phpBB/styles/subsilver2/template/ucp_prefs_personal.html
| * \ Merge remote-tracking branch 'upstream/develop' into feature/prune-usersOleg Pudeyev2012-11-061-59/+309
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/develop: (2171 commits) [ticket/11164] Update composer.phar [ticket/10933] Use inheritDoc, eliminate copy pasted docblocks. [ticket/10933] Dependency inject template context. [ticket/10933] Expanded prose documentation for phpbb_extension_provider. [ticket/10933] Specify empty template path for absolute includephp test. [ticket/10933] Useful documentation for template locate function [ticket/10933] Typo fixes [ticket/10933] Initialize template context when template is constructed. [ticket/11099] Mark acp_ban::display_ban_options() as static. [ticket/11158] Require acl_u_sig for ucp signature module. [ticket/11158] Revert old fix in PHPBB3-10186. [ticket/11159] static public is the currently approved order. [ticket/11157] static public is the currently approved order. [ticket/11157] Fix remaining captcha spam. [ticket/11157] get_captcha_types is an instance method. [ticket/11156] Delete "Misc" tab of forum based permissions + move items [ticket/10848] Move include up. [ticket/11014] Fix old pagination assignment [ticket/11018] Fix several paginations in ACP [ticket/11014] Fix IF statements for new template pagination ... Conflicts: phpBB/includes/functions_user.php
* | | | [ticket/11103] Use the full class name as the item_type/methodNathan Guse2012-10-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | This is going to require you recreate the db tables. PHPBB3-11103
* | | | [ticket/11103] Remove unnecessary commentsNathan Guse2012-10-181-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Comments that are not needed because the actions are completely self-explanatory PHPBB3-11103
* | | | [ticket/11103] Make $phpbb_notifications a global and use it everywhereNathan Guse2012-10-041-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | Do not use phpbb_container everywhere (makes testing difficult) PHPBB3-11103
* | | | [ticket/11103] Normalization of $phpbb_notifications variable nameNathan Guse2012-09-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use $phpbb_notifications instead of $notifications everywhere for consistency and conflict prevention. PHPBB3-11103
* | | | [ticket/11103] Delete notifications for PMs deleted by phpbb_delete_user_pmsNathan Guse2012-09-141-0/+13
| | | | | | | | | | | | | | | | PHPBB3-11103
* | | | [ticket/11103] Mark Private Messages as readNathan Guse2012-09-141-1/+5
| | | | | | | | | | | | | | | | PHPBB3-11103
* | | | [ticket/11103] The service now handles all user loading itselfNathan Guse2012-09-091-91/+15
| | | | | | | | | | | | | | | | | | | | | | | | Delete pm notifications when pms are deleted PHPBB3-11103
* | | | [ticket/11103] Some fixes for the email methodNathan Guse2012-09-081-14/+11
| | | | | | | | | | | | | | | | PHPBB3-11103
* | | | [ticket/11103] Work on the pm type and email methodNathan Guse2012-09-081-0/+13
| |/ / |/| | | | | | | | PHPBB3-11103
* | | Merge pull request #914 from EXreaction/ticket/10990Nils Adermann2012-07-221-1/+1
|\ \ \ | | | | | | | | Ticket/10990
| * | | [ticket/10990] Use $user->lang['COMMA_SEPARATOR'] when appropriateNathan2012-07-221-1/+1
| | | | | | | | | | | | | | | | PHPBB3-10990
* | | | Merge branch 'develop-olympus' into developNils Adermann2012-07-211-83/+122
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10950] Fix grammar in comments [ticket/10950] Delete PMs for users that have not yet read the pm [ticket/10950] Fix unit tests to fit the new pm deleting behaviour [ticket/10950] Update undelivered pm counts in batches not 1 by 1 for each user [ticket/10950] Remove deleted entries in tests instead of commenting them out [ticket/10950] Use database count() and group by instead of doing that in php [ticket/10950] Check $delete_ids to be not empty [ticket/10950] Recreated the behaviour of phpbb_delete_user_pms() [ticket/10950] Fix unit tests to reflect desired behaviour [ticket/10950] Add some first and simple unit tests for phpbb_delete_user_pms() [ticket/10950] Correct comment for the second query. [ticket/10950] Add empty line to make unset() call more visible. [ticket/10950] Select the correct columns in SQL queries. [ticket/10950] Use a variable for the private message id. [ticket/10950] Move array initialisation to the front. [ticket/10950] Remove redundant if statement. [ticket/10950] Fix SQL coding style (indentation) in second SQL query. [ticket/10950] Use proper ' in order to fix comment.
| * | [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