aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/9776] Delete poll if no poll options were submitted.Joas Schilling2011-11-181-4/+4
| | | | PHPBB3-9776
* Merge branch 'ticket/rxu/6712' into develop-olympusNils Adermann2011-06-101-0/+102
|\ | | | | | | | | | | | | | | * ticket/rxu/6712: [ticket/6712] Properly explain result of setting the bump interval to 0. [ticket/6712] Add phpbb_ function name prefix, more docs, rename current_time [ticket/6712] Pass $post_data by the value instead of by the reference. [ticket/6712] Bump does not create new topic icon on index.
| * [ticket/6712] Add phpbb_ function name prefix, more docs, rename current_timerxu2011-05-011-10/+21
| | | | | | | | PHPBB3-6712
| * [ticket/6712] Pass $post_data by the value instead of by the reference.rxu2011-04-031-1/+1
| | | | | | | | PHPBB3-6712
| * [ticket/6712] Bump does not create new topic icon on index.rxu2010-10-181-0/+91
| | | | | | | | | | | | Handle the topic bumping process more properly. PHPBB3-6712
* | [ticket/7834] Topic time didn't update when first post was deletedCallum Macrae2011-02-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When the first post of a topic was deleted, the topic time didn't update - it should have changed to the time of the next post. This commit simply applies lefty74's patch posted in the ticket. It gets the post time of the next post from the database, and updates the thread accordingly. This patch is not my work at all and all credits go to lefty74, I just transferred it onto GitHub PHPBB3-7834
* | [ticket/9764] Allow $config['mime_triggers'] to be an empty string.Andreas Fischer2010-10-281-1/+1
|/ | | | | | | | | | | | | | | | explode('|', '') and explode('|', NULL) both return array(0 => '') which can cause filespec::check_content() to reject everything starting with a '<' character in case $config['mime_triggers'] is an empty string or not set. fileupload::set_disallowed_content() now filters out empty strings by calling array_diff() on the passed array, so setting $config['mime_triggers'] to an empty string will turn off mime checking completely. On the other side we want to fail safe if $config['mime_triggers'] is not set at all. To do this, the array fileupload::$disallowed_content now contains some default strings to be filtered out. PHPBB3-9764
* Merge branch 'ticket/bantu/9644' into develop-olympusIgor Wiedler2010-09-161-1/+1
|\ | | | | | | | | * ticket/bantu/9644: [ticket/9644] Check $mode before calling user_notification() from submit_post()
| * [ticket/9644] Check $mode before calling user_notification() from submit_post()Andreas Fischer2010-07-231-1/+1
| | | | | | | | PHPBB3-9644
* | [ticket/9635] Useless parameter $data['post_time'] in function submit_post.Joas Schilling2010-08-191-1/+1
|/ | | | PHPBB3-9635
* [ticket/9147] "Change topic type"-option "Normal" always selected.Joas Schilling2010-05-281-1/+1
| | | | PHPBB3-9147
* [feature/notify_status] Define'd constants for notify_statusMark2010-05-161-8/+8
| | | | | | | define'd constants NOTIFY_YES, NOTIFY_NO to replace magic numbers in forums_watch table and topics_watch table PHPBB3-9179
* [ticket/9529] Topic review is not showing all selected posts.Joas Schilling2010-05-161-1/+1
| | | | PHPBB3-9529
* Bug #54945 again: MySQL 4 does not support aggregation in ORDER BY.Marek A. Ruszczyński2010-03-021-2/+2
| | | | | | Moved the MIN(smiley_order) to the SELECT column list now, so it can be used for sorting on MySQL 4, but also still works on MSSQL, which the bug was originally about.
* Fix Bug #57455 - Fix problems with firebird by no longer using 'count' as a ↵Andreas Fischer2010-02-081-1/+1
| | | | | | column alias. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10484 89ea8834-ac86-4346-8a33-228a782c2dd0
* [Fix] Do not automatically unsubscribe users from topics, when email and ↵Joas Schilling2010-01-241-1/+1
| | | | | | | | jabber is disabled. Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10436 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix for #54945Marek A. R2009-12-241-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10378 89ea8834-ac86-4346-8a33-228a782c2dd0
* Ability to define constant PHPBB_USE_BOARD_URL_PATH to use board url for ↵Meik Sievertsen2009-08-171-1/+3
| | | | | | | | images/avatars/ranks/imageset... This feature does not change anything for those not using the constant and this feature is also quite in-flux. We need to test this with some applications and bridges and there may be other locations able to benefit from it. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10008 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix r9955 for Bug #49435Meik Sievertsen2009-08-121-2/+3
| | | | | | (Since $update_message was true in submit_post() the non-parsed text had been entered into the db [because $update_message was false before]) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9959 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix r9927 - of course isset()Meik Sievertsen2009-08-051-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9929 89ea8834-ac86-4346-8a33-228a782c2dd0
* submit_post() now accepts force_approved_state key passed to $data to ↵Meik Sievertsen2009-08-051-0/+8
| | | | | | indicate new posts being approved (true) or unapproved (false). git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9927 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #15729 - Global announcements marked as read if all new topics in ↵Ruslan Uzdenov2009-08-051-6/+15
| | | | | | | | forum are viewed Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9926 89ea8834-ac86-4346-8a33-228a782c2dd0
* Apply locale-independent basename() to attachment filenames. New function ↵Meik Sievertsen2009-08-011-5/+5
| | | | | | 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
* Addition to r9899 for bug #48695 - trying to create thumbnail for broken ↵Ruslan Uzdenov2009-08-011-0/+1
| | | | | | | | jpeg image Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9904 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #48695 - Do not try to create thumbnails for images we cannot open ↵Andreas Fischer2009-07-311-0/+5
| | | | | | properly. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9899 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #48885, introduced in r9843Joas Schilling2009-07-301-2/+2
| | | | | | Authorised by: kellanved git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9893 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #48265 - Correctly set attachment flag for topics, posts and pms ↵Joas Schilling2009-07-241-0/+15
| | | | | | | | | after deleting attachments - Patch by WorldWar and nickvergessen Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9843 89ea8834-ac86-4346-8a33-228a782c2dd0
* A small correction to #r9763Meik Sievertsen2009-07-171-6/+10
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9764 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Add pagination for icons and smilies in the ACP and smilies in the smiley ↵Marek A. R2009-07-161-6/+30
| | | | | | popup git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9763 89ea8834-ac86-4346-8a33-228a782c2dd0
* Another feature: Detect when a post has been altered by someone else while ↵Andreas Fischer2009-07-081-0/+7
| | | | | | | | editing. Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9731 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #38395 - Loading draft removes recipients when replying to PMJoas Schilling2009-06-261-2/+2
| | | | | | Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9685 89ea8834-ac86-4346-8a33-228a782c2dd0
* - [Feature] New &quot;Newly Registered Users&quot; group for assigning ↵Meik Sievertsen2009-06-201-2/+2
| | | | | | | | | | | | permissions to newly registered users. They will be removed from this group once they reach a defineable amount of posts. - [Feature] Ability to define if the &quot;Newly Registered Users&quot; group will be assigned as the default group to newly registered users. As a coincidence also Bug #46535 got fixed. Additionally the error message displayed with trigger_error() if accessing the private message tab in the ucp is now displayed inline in addition to a slightly different message for newly registered users to let them know that access permissions may be lifted over time. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9636 89ea8834-ac86-4346-8a33-228a782c2dd0
* Do not create thumbnail if thumbnail would've the same size as the original ↵Meik Sievertsen2009-04-171-1/+1
| | | | | | image. (Bug #30725) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9462 89ea8834-ac86-4346-8a33-228a782c2dd0
* remove unused language keyMeik Sievertsen2009-04-171-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9457 89ea8834-ac86-4346-8a33-228a782c2dd0
* Set topic_last_view_time on post/reply/edit to circumvent race conditions in ↵Meik Sievertsen2009-04-081-2/+10
| | | | | | auto prune and false removal of topics for manual forum prune (Bug #18055, #43515) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9426 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix race condition for updating post/topic/etc. counter. (reported by BartVB)Meik Sievertsen2009-03-191-8/+8
| | | | | | 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
* Better thumbnail quality with imagemagick (Bug #42565)Meik Sievertsen2009-03-161-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9372 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed bug #'ers 41295, 41385, 41955, 41705 and 41985Jim Wigginton2009-02-261-4/+30
| | | | | | Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9342 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed bug #40325 – Friend/foe system displays posts made by foes while ↵Jim Wigginton2009-01-271-1/+14
| | | | | | | | composing Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9305 89ea8834-ac86-4346-8a33-228a782c2dd0
* correctly update last topic/forum information if changing guest usernames ↵Meik Sievertsen2008-12-031-3/+19
| | | | | | | | through editing posts - Bug #38095 (Changelog follows) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9166 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix a bug introduced in r8805 where moderators posts would be queued in ↵Chris Smith2008-11-041-1/+1
| | | | | | forums where posts are queued. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9048 89ea8834-ac86-4346-8a33-228a782c2dd0
* Revert broken fix in r9014Chris Smith2008-10-201-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9031 89ea8834-ac86-4346-8a33-228a782c2dd0
* Forum last post information is now correctly updated when a topic/post is ↵Chris Smith2008-10-141-1/+1
| | | | | | disapproved due to editing. #24475 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9014 89ea8834-ac86-4346-8a33-228a782c2dd0
* Separate display of posted attachments in posting screen and switch for ↵Meik Sievertsen2008-10-061-13/+8
| | | | | | template to indicate adding attachments are allowed. Related to Bug #13871 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8976 89ea8834-ac86-4346-8a33-228a782c2dd0
* Preserve alpha transparency for created thumbnails. (Bug #16575)Meik Sievertsen2008-09-171-0/+4
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8864 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix one design failure in phpBB3. Do not count non-approved posts to the ↵Meik Sievertsen2008-09-021-18/+36
| | | | | | | | user_posts. Before, a user was able to circumvent basically any protection based on post counts. At the same time implement the queue_trigger feature. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8805 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix missing user_id entry to properly populate to the email templateMeik Sievertsen2008-08-301-0/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8799 89ea8834-ac86-4346-8a33-228a782c2dd0
* change the way we do chmodd'ing. I know, my implementation really sucked... ↵Meik Sievertsen2008-08-221-1/+1
| | | | | | good we have motivated community members who point this out. ;) Thanks to faw for providing a way better function and for discussing and also abiding to our needs. :) LEW21 should maybe credited too... he gave the inspiration without knowing it. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8780 89ea8834-ac86-4346-8a33-228a782c2dd0
* as per evil3, some more anti-CSRFHenry Sudhof2008-08-211-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8775 89ea8834-ac86-4346-8a33-228a782c2dd0
* the chmod change i already had within the changelog (by mistake). This ↵Meik Sievertsen2008-08-161-1/+1
| | | | | | | | should further secure writable directories and created files. Installation need to be tested on different hosts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8763 89ea8834-ac86-4346-8a33-228a782c2dd0