aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11717] Add 'has' to boolean variable and reduce line lengthMarc Alexander2013-07-221-4/+5
| | | | PHPBB3-11717
* [ticket/11717] Use topic_posts_approved instead of topic_repliesMarc Alexander2013-07-201-1/+4
| | | | | | | Due to the move to soft-delete, the topic_replies column no longer exists in the topics table. Instead, the column topic_posts_approved should be used. PHPBB3-11717
* [ticket/9657] Use the service instead of the static classJoas Schilling2013-07-111-9/+14
| | | | PHPBB3-9657
* Merge remote-tracking branch 'phpbb/develop' into ↵Joas Schilling2013-07-111-32/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/softdelete-1-permission * phpbb/develop: (704 commits) [ticket/11630] Improvements to the PHP lint pre-commit hook [feature/auth-refactor] Move auth providers to separate directory [ticket/11619] Use HTTP/1.0 because of lack of chunked-encoding handling. [ticket/11619] Some tests for get_remote_file(). [ticket/11617] Remove spaces and tabs from empty lines [ticket/11617] Missing U_ACTION in acp_captcha.php [feature/auth-refactor] Fix code style issue [feature/auth-refactor] Fix comment grammar [feature/auth-refactor] Fix the actual cause of test failures [ticket/10838] Fix URL for wiki and remove irrelevant line [ticket/10838] Remove php 5.4 and builtin server references [ticket/10838] Fix missing data [ticket/10838] separate database used mentioned in unit tests [ticket/11585] Make $auth_admin class property [feature/auth-refactor] A possible fix for the functional test failures [ticket/11566] Subsilver template error displayed after table headers [ticket/11566] Remove extra pair of brackets from conditional statement [ticket/11566] Check that guest doesn't have reporting permission by default [ticket/11566] Add captcha to report post template in subsilver [ticket/11566] Use the new constant CONFIRM_REPORT for captcha init ... Conflicts: phpBB/docs/sphinx.sample.conf phpBB/feed.php phpBB/styles/prosilver/template/search_results.html phpBB/styles/prosilver/template/viewforum_body.html
| * [ticket/11586] Move $filedata['thumbnail'] to where it might be returned.Andreas Fischer2013-06-031-3/+3
| | | | | | | | PHPBB3-11586
| * [ticket/11586] Combine $filedata['post_attach'] assign into a single statement.Andreas Fischer2013-06-031-8/+1
| | | | | | | | PHPBB3-11586
| * [ticket/11586] Use a variable for $cat_id == ATTACHMENT_CATEGORY_IMAGE.Andreas Fischer2013-06-031-8/+8
| | | | | | | | PHPBB3-11586
| * [ticket/11586] Combine administrator/moderator checks together.Andreas Fischer2013-06-031-7/+7
| | | | | | | | PHPBB3-11586
| * Merge branch 'develop-olympus' into developAndreas Fischer2013-06-031-10/+10
| |\ | | | | | | | | | | | | * develop-olympus: [ticket/11145] Wrong error thrown when uploading a bigger image.
| | * [ticket/11145] Wrong error thrown when uploading a bigger image.erangamapa2013-05-251-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | When attaching an image to a post with a size larger than maximum defined in php.ini, 'ATTACHED_IMAGE_NOT_IMAGE' error is thrown. $file->is_image() is returning false value when image size is too large. Therefore, moved not image test down after image size test. PHPBB3-11145
* | | [ticket/9657] Fix wrongly added notifications when post is posted softdeletedJoas Schilling2013-03-061-1/+27
| | | | | | | | | | | | | | | | | | | | | The post/topic should not trigger "*_in_queue" notifications if it is softdeleted, as it is not in the queue then. PHPBB3-9657
* | | Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ↵Joas Schilling2013-03-031-237/+71
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/softdelete-1-permission * 'develop' of https://github.com/phpbb/phpbb3: (480 commits) [ticket/6723] Show info that message has been deleted before delivery [ticket/11385] Fix issue with migration module tool not getting extension module info [ticket/11386] Fix failing tests from constructor changes [ticket/11386] Fix circular reference error & serialize error [ticket/11386] Remove tests that check if finder cache is working [ticket/11386] Forgot to get the migration classes [ticket/11386] Update tests with new constructors for ext.manager/migrator [ticket/11386] Use finder to find migration files [ticket/11363] Fix to make get_module_infos get from all extensions [ticket/11381] Make finder able to search in all available extensions [ticket/11103] Revert whitespace changes [ticket/11103] Few more minor language things [ticket/11103] Don't call generate_board_url many times [ticket/11103] Case time in queries as an int [ticket/11103] Fix effectively installed check [ticket/11103] Remove padding from notifications for now. [ticket/11363] Fix a couple bugs and throw errors if the file not found [ticket/11372] Migrator should only check if effectively installed if not [ticket/11363] Load module info files for extensions too [ticket/11103] Notifications Migration file ... Conflicts: phpBB/includes/functions_posting.php phpBB/includes/mcp/mcp_queue.php phpBB/includes/search/fulltext_mysql.php phpBB/includes/search/fulltext_native.php phpBB/includes/search/fulltext_postgres.php phpBB/includes/search/fulltext_sphinx.php phpBB/install/database_update.php phpBB/styles/prosilver/template/ajax.js
| * | Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11103Nathan Guse2013-01-151-2/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Oleg Pudeyev (37) and others # Via Oleg Pudeyev (24) and others * 'develop' of github.com:phpbb/phpbb3: (179 commits) [ticket/11323] Add tests for inclusion of defined variables [ticket/11324] Add PHP 5.5 environment to travis and allow it to fail. [ticket/11321] Recreate schema files with develop/create_schema_files.php [ticket/11320] Include functions file as we need phpbb_convert_30_dbms_to_31 [ticket/11313] Use correct object el instead of eel in alt_text callback [ticket/11301] Guidelines: Add spaces in front and after the / operator. [ticket/11301] Explicitly cast str offset to int to prevent E_NOTICE on 5.4. [ticket/11311] Include asset core.js in subsilver2 overall_footer.html [ticket/10949] Remove not needed comma [ticket/11309] phpbb_extension_interface::disable_step correct docblock. [ticket/10949] Converted missing code to new JS coding guidelines [ticket/11302] Correctly select first timezone or selected timezone [ticket/11305] Mock container for cache driver in functional create_user() [ticket/11305] Check for $cache being null before using it in db drivers. [ticket/10805] Compare phpbbAlertTimer against null [ticket/11305] Define hook finder as a service on the container. [ticket/11305] Adjust comment. [ticket/11305] Use phpbb_create_default_container. [ticket/11305] Create a normal container during final installation step. [ticket/11305] Retrieve cache driver from container rather than cache service. ... Conflicts: phpBB/install/schemas/firebird_schema.sql phpBB/install/schemas/mssql_schema.sql phpBB/install/schemas/mysql_40_schema.sql phpBB/install/schemas/mysql_41_schema.sql phpBB/install/schemas/oracle_schema.sql phpBB/install/schemas/postgres_schema.sql phpBB/install/schemas/sqlite_schema.sql phpBB/styles/subsilver2/template/overall_footer.html
| * | | [ticket/11103] Instantiate $phpbb_notifications as neededNathan Guse2012-12-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/phpbb/phpbb3/pull/992#discussion_r2413976 PHPBB3-11103
| * | | [ticket/11103] Create user loader class, update for DICNathan Guse2012-11-201-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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] Revert an overwrite that occured on merging from developNathan Guse2012-10-291-1/+3
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Use the full class name as the item_type/methodNathan Guse2012-10-201-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | This is going to require you recreate the db tables. PHPBB3-11103
| * | | [ticket/11103] Spacing consistencyNathan Guse2012-10-141-14/+14
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Make $phpbb_notifications a global and use it everywhereNathan Guse2012-10-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Do not use phpbb_container everywhere (makes testing difficult) PHPBB3-11103
| * | | [ticket/11103] Only notify a user once for a single itemNathan Guse2012-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: The user may be notified multiple times IF they use different notification options. e.g They are subscribed to topics they have bookmarked by a notification and subscribed to the topic by an email notification. In this case, they would receive two notifications. This occurs because we do not want to omit any more direct types of notifications (if they want an email, they should _always_ get at least one email). PHPBB3-11103
| * | | [ticket/11103] Fixing some bugs with the post/topic notificationsNathaniel Guse2012-09-251-30/+13
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Bug fixingNathaniel Guse2012-09-201-0/+4
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Topic/Post in queue notificationNathan Guse2012-09-151-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | Also, bug fixes and cleanup PHPBB3-11103
| * | | [ticket/11103] Topic and post dis/approval notificationsNathan Guse2012-09-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the formatted title function, plaintext is not needed since email templates are used Fix a number of bugs. PHPBB3-11103
| * | | [ticket/11103] Use appropriate email templates to send notificationsNathan Guse2012-09-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixing a number of bugs PHPBB3-11103
| * | | [ticket/11103] Normalization of $phpbb_notifications variable nameNathan Guse2012-09-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use $phpbb_notifications instead of $notifications everywhere for consistency and conflict prevention. PHPBB3-11103
| * | | [ticket/11103] Add/Update/Mark Read functions accept an array for the typeNathan Guse2012-09-141-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves a lot of code in some areas (where the same data is sent, just for different types) Notifications for bookmarks PHPBB3-11103
| * | | [ticket/11103] Allow notification types to override update functionalityNathan Guse2012-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for quote editing because we need to check if the users are still all quoted or notify new quotes appropriately. PHPBB3-11103
| * | | [ticket/11103] Quote notificationsNathan Guse2012-09-121-0/+9
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Update notifications on post/topic editNathan Guse2012-09-091-3/+16
| | | | | | | | | | | | | | | | PHPBB3-11103
| * | | [ticket/11103] Post notificationsNathan Guse2012-09-091-233/+19
| | | | | | | | | | | | | | | | PHPBB3-11103
* | | | Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ↵Joas Schilling2012-12-201-2/+3
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/softdelete-1-permission-rebase * 'develop' of https://github.com/phpbb/phpbb3: (544 commits) [feature/events] Fix improperly named event in documentation [feature/events] Fix alphabetization of events [feature/events] Put events in alphabetical order [feature/events] Make EVENTS.md lowercase [ticket/11285] Use more granularity in dependency checks in compress test [ticket/10880] The m_approve permisson no longer implies f_noapprove. [ticket/10803] Show failure message until user dismisses it [ticket/10954] Add missing semi-colon [ticket/10954] Make sure to mark subforums unread and add small fixes [feature/events] Use ` to escape HTML tags in markdown [feature/events] Remove HTML tags from markdown so they don't get parsed [ticket/10954] Miscellaneous coding fixes [feature/events] Remove extraneous space [feature/events] Add markdown template event documentation file [feature/events] forumlist_body_last_post_title_after -> _prepend (subsilver2) [feature/events] Fix overall_footer_end -> overall_footer_after (subsilver2) [feature/events] Fix typo in event name [ticket/10763] Use self when calling get_extension() in filespec class [feature/events] Fix more subsilver2 events [feature/events] Fix some subsilver2 events ... Conflicts: phpBB/install/database_update.php phpBB/posting.php
| * | | Merge branch 'develop-olympus' into developAndreas Fischer2012-12-201-2/+3
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10880] The m_approve permisson no longer implies f_noapprove. Conflicts: phpBB/posting.php
| | * | [ticket/10880] The m_approve permisson no longer implies f_noapprove.Andreas Fischer2012-12-191-2/+3
| | | | | | | | | | | | | | | | PHPBB3-10880
* | | | Merge remote-tracking branch 'remotes/phpbb/develop' into ↵Joas Schilling2012-11-101-3/+7
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/softdelete-merge-develop # By Oleg Pudeyev (45) and others # Via Oleg Pudeyev (42) and others * remotes/phpbb/develop: (289 commits) [ticket/10865] Use code tags for install/database_update.php. [ticket/10865] Should have been a slash. [ticket/10780] Use L_COLON on LDAP page. [ticket/10780] Use L_COLON on search backend ACP pages. [ticket/10780] Use L_COLON for "download all attachments". [ticket/10780] Use colon from language in ucp_pm_compose.php where possible. [ticket/10780] Replace colons in phpBB/adm/style/acp_ext_details.html. [ticket/10780] Replace colon usage in adm template output with {L_COLON} [ticket/10780] Replace colon usage in template output with {L_COLON} [ticket/11181] Bump PHP requirement to 5.3.3 (from 5.3.2) [develop-olympus] [ticket/11181] Bump PHP requirement to 5.3.3 (from 5.3.2) [ticket/10172] Show prosilver birthday list even if there are no birthdays. [ticket/11050] make all properties protected in all search backends [ticket/11050] get_common_words() returns empty array for sphinx [ticket/11050] fix tidied search query docblock language [ticket/11050] fix min/max length docblock language [ticket/11050] multi sentences separated by period in docblocks [ticket/11050] fix separated spelling in docblock [ticket/11050] fix split words doc block language [ticket/11050] remove class word from docblocks ... Conflicts: phpBB/install/database_update.php phpBB/install/schemas/mssql_schema.sql phpBB/language/en/acp/permissions_phpbb.php phpBB/styles/prosilver/template/posting_editor.html
| * | | Merge PR #624 branch 'develop-olympus' into developOleg Pudeyev2012-10-161-2/+4
| |\ \ \ | | |/ / | | | | | | | | | | | | * develop-olympus: [ticket/8743] Include poster´s name in mail notifications
| | * | Merge PR #624 branch 'nickvergessen/ticket/8743' into develop-olympusOleg Pudeyev2012-10-161-2/+4
| | |\ \ | | | | | | | | | | | | | | | | | | | | * nickvergessen/ticket/8743: [ticket/8743] Include poster´s name in mail notifications
| | | * | [ticket/8743] Include poster´s name in mail notificationsJoas Schilling2012-03-151-2/+4
| | | | | | | | | | | | | | | | | | | | PHPBB3-8743
| * | | | Merge PR #917 branch 'develop-olympus' into developOleg Pudeyev2012-10-161-1/+3
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| | * develop-olympus: [ticket/10967] adding $root_path to posting_get_topic_icons
| | * | [ticket/10967] adding $root_path to posting_get_topic_iconsSenky2012-10-111-2/+4
| | | | | | | | | | | | | | | | PHPBB3-10967
* | | | [feature/soft-delete] Fix the rest of *_approved and the delete_post unit testJoas Schilling2012-11-101-8/+7
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Append _approved to *_posts and *_topics column namesJoas Schilling2012-11-091-4/+5
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Correctly manage softdeleting via posting.phpJoas Schilling2012-11-021-4/+4
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Correctly increase topics post counts when postingJoas Schilling2012-10-281-0/+2
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Fix some more topic/post count handlingJoas Schilling2012-10-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Only disapproving in queue is missing. PHPBB3-9567
* | | | [feature/soft-delete] Fix forum syncing in ACP and deleting postsJoas Schilling2012-10-221-3/+12
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Fix submit_post() topic_replies* usageJoas Schilling2012-10-221-10/+37
| | | | | | | | | | | | | | | | PHPBB3-9567
* | | | [feature/soft-delete] Split unapproved/soft deleted posts from topicsJoas Schilling2012-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a topic is soft deleted through a moderator, the topic_delete_user is set. If it is passively soft deleted (f.e. while the only approved post is deleted) the topic_delete_user is not set. This way, we can distinguish between these two cases. The same also applies to unapproved posts. So we need to set the topic_delete_user when an unapproved topic is posted. Topics that were soft deleted/unapproved by a user (rather then passive) are going to be displayed in the Topics modules, while all others are in the posts modules of the MCP queue. PHPBB3-9567
* | | | [feature/soft-delete] Fix several issues within submit_post()Joas Schilling2012-10-091-200/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - $post_visibility is not boolean, so we need to check for == ITEM_APPROVED - sync() already updates the topic/forum info, so we don't need to do that again - use set_post_visibility() when changing the posts visibility Should be ready for testing. PHPBB3-9567
* | | | [feature/soft-delete] Fix restoring a post via editingJoas Schilling2012-10-081-1/+1
| | | | | | | | | | | | | | | | PHPBB3-9567