aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/10128] Pass E_USER_WARNING to trigger_error() calls from user_ban().Andreas Fischer2011-04-111-6/+6
| | | | | | | | | | The user_ban() function is shared by the MCP and the ACP. Mark trigger_error() calls as errors by passing E_USER_WARNING to make the error message appear on red background (instead of green background) in the ACP. PHPBB3-10128
* [ticket/9751] Add shortcut logic for pass_complex == PASS_TYPE_ANY.Andreas Fischer2011-04-011-4/+2
| | | | | | | Add shortcut logic for pass_complex because this is the default value phpBB ships with and there is nothing to do in that function in that case. PHPBB3-9751
* [ticket/9751] Compare $password with empty string instead of casting it to boolAndreas Fischer2011-04-011-1/+1
| | | | PHPBB3-9751
* [ticket/9751] Use a switch/case block without break for password complexity.Andreas Fischer2011-04-011-11/+13
| | | | PHPBB3-9751
* [ticket/9751] Password requirement "Must contain letters and numbers" failsrxu2011-04-011-4/+2
| | | | PHPBB3-9751
* [ticket/9970] Rename validate_language() to validate_language_iso_name().Andreas Fischer2011-03-071-6/+6
| | | | PHPBB3-9970
* [ticket/9970] Check whether language pack is installed.Andreas Fischer2011-03-071-19/+14
| | | | PHPBB3-9970
* [ticket/9970] User language input is checked for existanceJosh Woody2011-03-071-0/+30
| | | | | | | Users could select a language which did not exist in the database by altering form fields because there was no back-end verification. PHPBB3-9970
* [ticket/9872] Removed some useless code that broke delete_postsCallum Macrae2011-02-241-38/+0
| | | | | | | | | | | | | | | | | | When in the ACP, there is the option to delete a user and all their posts. This would then call the user_delete function and define $mode as 'remove'. On lines 485-521 was some code that would delete their topics, then after that there would be a call to delete_posts - which would also delete their topics. It would not update the board statistics, and the thread count would remain the same, even though several had been deleted. It stopped delete_topics functioning correctly, so delete_topics would not update the board statistics either. My solution to this is to delete lines 485-521 and allow delete_posts to call delete_topics, thus updating the thread count in the statistics. PHPBB3-9872
* [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/nickvergessen/9519' into develop-olympusAndreas Fischer2010-08-281-1/+1
|\ | | | | | | | | | | | | | | * ticket/nickvergessen/9519: [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
| * [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().Joas Schilling2010-08-101-1/+1
| | | | | | | | | | | | | | acm_memory.php is untested. install/install_convert.php and includes/functions_convert.php are going to be tested and committed afterwards. PHPBB3-9519
* | Merge branch 'ticket/bantu/9702' into develop-olympusJosh Woody2010-08-191-1/+2
|\ \ | | | | | | | | | | | | * ticket/bantu/9702: [ticket/9702] Take user's timezone settings into account when banning Until ->
| * | [ticket/9702] Take user's timezone settings into account when banning Until ->Andreas Fischer2010-07-231-1/+2
| | | | | | | | | | | | PHPBB3-9702
* | | Merge branch 'ticket/bantu/9534' into develop-olympusJosh Woody2010-08-191-9/+26
|\ \ \ | |/ / |/| | | | | | | | | | | * ticket/bantu/9534: [ticket/9534] Update function documentation for user_ipwhois(). [ticket/9534] Adding support for IPv6 addresses in user_ipwhois().
| * | [ticket/9534] Update function documentation for user_ipwhois().Andreas Fischer2010-07-111-2/+6
| | | | | | | | | | | | PHPBB3-9534
| * | [ticket/9534] Adding support for IPv6 addresses in user_ipwhois().Andreas Fischer2010-07-111-7/+20
| |/ | | | | | | | | | | | | | | | | whois.arin.net does currently not refer to other servers (using ReferralServer) when queried for an IPv6 address. whois.sixxs.net however works in this case. This also adds '.' to the hostname to make sure we're querying the dns root. PHPBB3-9534
* | Merge branch 'ticket/kellanved/9504' into develop-olympusAndreas Fischer2010-07-151-1/+1
|\ \ | |/ |/| | | | | * ticket/kellanved/9504: [ticket/9504] Allow whitespaces in gallery avatars
| * [ticket/9504] Allow whitespaces in gallery avatarsHenry Sudhof2010-07-151-1/+1
| | | | | | | | | | | | | | | | Gallery avatars are discovered on the server filesystem; to allow linking to the images, the filenames are urlencoded before being written to the database. However, getimagesize needs the decoded filename as input. PHPBB3-9504
* | Merge branch 'ticket/jellydoughnut/9650' into develop-olympusAndreas Fischer2010-07-101-3/+4
|\ \ | | | | | | | | | | | | * ticket/jellydoughnut/9650: [ticket/9650] Do not allow banning the anonymous user by username
| * | [ticket/9650] Do not allow banning the anonymous user by usernameJosh Woody2010-07-081-3/+4
| |/ | | | | | | | | | | Banning anonymous can result in bad things, like not being able to log in. However, it was possible until now. PHPBB3-9650
* | Merge branch 'ticket/bantu/9451' into develop-olympusAndreas Fischer2010-07-081-2/+5
|\ \ | | | | | | | | | | | | * ticket/bantu/9451: [ticket/9451] Add optional $can_upload parameter to avatar_process_user().
| * | [ticket/9451] Add optional $can_upload parameter to avatar_process_user().Thatbitextra2010-07-071-2/+5
| |/ | | | | | | | | | | | | Avoid unnecessary overhead in avatar_process_user() by optionally passing in the value of $can_upload. PHPBB3-9451
* | [ticket/9703] Correct database leak where deleting user did not rm some PM dataJosh Woody2010-07-031-1/+1
|/ | | | | | Users' PM rules and PM folders were being left intact when deleting them. PHPBB3-9703
* [ticket/9633] Newly Registered Group Colour not used in "Our Newest Member"Josh Woody2010-06-011-0/+1
| | | | | | Due to an oversight, the default group was not properly checked in the user_add function. This fix corrects the check. No other changes are needed because they go direct to the database, this one used an array in memory. PHPBB3-9633
* Bug #52525Meik Sievertsen2009-10-051-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10214 89ea8834-ac86-4346-8a33-228a782c2dd0
* Also update newest user data if someone is creating a founder with user_add().Andreas Fischer2009-09-041-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10099 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix Bug #49195 - Queries on un-indexed column user_emailJoas Schilling2009-08-281-2/+2
| | | | | | | | Added function to generate email-hash. Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10060 89ea8834-ac86-4346-8a33-228a782c2dd0
* Make sure only logs for existing users are displayed and user-specific logs ↵Meik Sievertsen2009-08-251-0/+11
| | | | | | removed on user deletion. (Bug #49855) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10053 89ea8834-ac86-4346-8a33-228a782c2dd0
* i am very very sorry for this hackish approach...Meik Sievertsen2009-08-171-2/+7
| | | | | | (ability to skip add_log calls) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10003 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix Bug #37585 - Correctly log action when users request to join a groupJoas Schilling2009-08-011-1/+1
| | | | | | | | Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9903 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #48345 - Adding users to group - default rank does not changing ↵Ruslan Uzdenov2009-07-281-1/+1
| | | | | | | | correctly Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9879 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #47825 - Banning an already banned user states to be successful, but ↵Joas Schilling2009-07-241-1/+11
| | | | | | | | | has no effect - Patch by Pyramide Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9840 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix Bug #45675 - Do not allow setting group as default group for pending userJoas Schilling2009-07-141-1/+25
| | | | | | | Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9759 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed Bug #45115 - Signature parsing flags are not stored in DBRuslan Uzdenov2009-06-271-1/+1
| | | | | | Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9696 89ea8834-ac86-4346-8a33-228a782c2dd0
* add quicktool to remove users from the newly registered special group.Henry Sudhof2009-06-211-0/+73
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9646 89ea8834-ac86-4346-8a33-228a782c2dd0
* - [Feature] New &quot;Newly Registered Users&quot; group for assigning ↵Meik Sievertsen2009-06-201-3/+33
| | | | | | | | | | | | 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
* - Display coloured usernames in ACP groups management screensMeik Sievertsen2009-06-191-33/+43
| | | | | | | | - Changed behaviour of group_create() function to support specifying additional group columns - New groups option to excempt group leaders from group permissions git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9625 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix r9602Joas Schilling2009-06-171-1/+4
| | | | | | | Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9611 89ea8834-ac86-4346-8a33-228a782c2dd0
* Change bug #21825 - Banning/unbanning users now generates an entry in their ↵Joas Schilling2009-06-171-3/+19
| | | | | | | | user notes Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9602 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #40245 - Attachments table is not being updated when deleting user ↵Ruslan Uzdenov2009-06-161-0/+5
| | | | | | | | and retaining his posts Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9599 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #45585 - Show error if hostname lookup doesn't return a valid IP ↵Andreas Fischer2009-06-151-1/+2
| | | | | | | | address when banning. Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9594 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #45345 - Also remove data from friend/foe table when deleting user ↵Andreas Fischer2009-06-111-0/+6
| | | | | | | | (patch by nickvergessen). Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9569 89ea8834-ac86-4346-8a33-228a782c2dd0
* some corrections, only very minor things.Meik Sievertsen2009-06-071-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9554 89ea8834-ac86-4346-8a33-228a782c2dd0
* #44955Henry Sudhof2009-06-031-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9529 89ea8834-ac86-4346-8a33-228a782c2dd0
* speed up group deletion and correctly display user parameter if group ↵Meik Sievertsen2009-03-271-2/+3
| | | | | | membership changed in acp -> users -> groups git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9409 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix race condition for updating post/topic/etc. counter. (reported by BartVB)Meik Sievertsen2009-03-191-4/+4
| | | | | | 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
* do not use coppa group as failover if disabled (remove user from group)Meik Sievertsen2009-03-191-2/+9
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9397 89ea8834-ac86-4346-8a33-228a782c2dd0
* Bug #41175 - wrong call to mb_ereg_search_init() (second commit)Meik Sievertsen2009-03-171-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9386 89ea8834-ac86-4346-8a33-228a782c2dd0
* Bug #41175 - wrong call to mb_ereg_search_init()Meik Sievertsen2009-03-171-2/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9385 89ea8834-ac86-4346-8a33-228a782c2dd0