aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-05-141-54/+4
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [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
| | * | | Merge branch 'ticket/10605' into develop-olympusAndreas Fischer2012-05-141-54/+4
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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] 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-54/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also moved the hole code into a new function. PHPBB3-10605
| * | | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-04-081-0/+21
| |\ \ \ \ \ | | |/ / / / | | | | | / | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10561] Removed extra tabs, changes made to $db->sql_query() [ticket/10561] Changed $temp_style_id to $style_id [ticket/10561] Added function desc for phpbb_style_is_active() [ticket/10561] Casted $config['default_style'] to int [ticket/10561] Reverted to phpbb_style_is_active() [ticket/10561] Added to database_update:database_update_info() [ticket/10561] Added section in database_update.php [ticket/10561] Moved and renamed the funtion validate_style(). [ticket/10561] Fixed syntax error and renamed return variables. [ticket/10561] Changes made to $db->sql_fetchrow(). [ticket/10561] Changes made to function phpbb_style_is_active(). [ticket/10561] All users can choose deactivated styles (fixed). Conflicts: phpBB/install/database_update.php
| | * | | [ticket/10561] Added function desc for phpbb_style_is_active()Hari Sankar R2012-04-091-0/+2
| | | | | | | | | | | | | | | | | | | | PHPBB3-10561
| | * | | [ticket/10561] Reverted to phpbb_style_is_active()Hari Sankar R2012-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes made to function name, reverted to old. PHPBB3-10561
| | * | | [ticket/10561] Moved and renamed the funtion validate_style().Hari Sankar R2012-04-051-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed minor changes as suggested by @bantu. PHPBB3-10561
| * | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-03-221-0/+33
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10684] Adjust function and parameter name, minor changes. [ticket/10684] Rename function phpbb_get_banned_users_ids() parameter [ticket/10684] Remove intval mapping for array keys [ticket/10684] Adjust pm_notifications() to handle stale bans [ticket/10684] Cast user_id to integer [ticket/10684] Refactor $sql_ignore_users array update [ticket/10684] Remove isset() for $sql_ignore_users update [ticket/10684] Fix 2 typos in comment lines. [ticket/10684] Send notifications for users with stale bans Conflicts: phpBB/includes/functions_user.php
| | * | [ticket/10684] Adjust function and parameter name, minor changes.rxu2012-03-221-5/+5
| | | | | | | | | | | | | | | | PHPBB3-10684
| | * | [ticket/10684] Rename function phpbb_get_banned_users_ids() parameterrxu2012-03-121-4/+4
| | | | | | | | | | | | | | | | PHPBB3-10684
| | * | [ticket/10684] Adjust pm_notifications() to handle stale bansrxu2012-03-121-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add parameter (array) to the function phpbb_get_banned_users_ids() - Fix function pm_notification() to handle users with stale bans PHPBB3-10684
| | * | [ticket/10684] Fix 2 typos in comment lines.rxu2012-03-091-1/+1
| | | | | | | | | | | | | | | | PHPBB3-10684
| | * | [ticket/10684] Send notifications for users with stale bansrxu2012-03-081-0/+29
| | |/ | | | | | | | | | PHPBB3-10684
| * | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-311-2/+1
| | | | | | | | | | | | PHPBB3-9916
| * | [ticket/10345] Add documentation and phpbb_ prefix to the new avatar functionsJoas Schilling2011-11-301-6/+18
| | | | | | | | | | | | PHPBB3-10345
| * | [ticket/10345] Use the plural function in some more places.Joas Schilling2011-11-251-4/+27
| | | | | | | | | | | | | | | | | | | | | I added two function avatar_explanation_string() and avatar_error_wrong_size() for easier handling of the "pixels"-languages, as they are used quite often. PHPBB3-10345
| * | [ticket/10329] Add phpbb_ prefix to new pcre_utf8_support() function.Andreas Fischer2011-08-211-2/+2
| | | | | | | | | | | | | | | | | | Introduced by 6b4d0a254218e8d40151ca1bdff8c439f89502e9. PHPBB3-10329
* | | [feature/prune-users] Use empty for checking array size.Oleg Pudeyev2012-04-191-1/+1
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Use a map instead of performing array scans.Oleg Pudeyev2012-04-191-2/+4
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Fix incorrect condition when deleting log entries.Oleg Pudeyev2012-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The original commit incorrectly replaced reportee_id with user_id. Change it back to reportee_id. The comment was correct. PHPBB3-9622
* | | [feature/prune-users] Non-cosmetic changes per bantu's review.Oleg Pudeyev2012-04-191-6/+5
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Cosmetic changes per bantu's review.Oleg Pudeyev2012-03-251-5/+4
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune_users] Moved set_config_count out of user loop.Oleg Pudeyev2011-05-081-1/+8
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Fixed user id check in undelivered users loop.Oleg Pudeyev2011-05-081-1/+1
| | | | | | | | | | | | | | | | | | There is now $user_ids instead of one $user_id. PHPBB3-9622
* | | [feature/prune-users] Call sql_is_set once for author ids in user_delete.Oleg Pudeyev2011-05-081-4/+6
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Replaced missed occurrences of $user_id with $user_ids.Oleg Pudeyev2011-05-081-2/+2
| | | | | | | | | | | | PHPBB3-9622
* | | [feature/prune-users] Call sql_is_set for user ids once in user_delete.Oleg Pudeyev2011-05-081-7/+9
| | | | | | | | | | | | PHPBB3-9622
* | | Merge branch 'develop' into feature/prune-usersOleg Pudeyev2011-05-081-20/+114
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop: (170 commits) [ticket/10145] Always recompile all templates when DEBUG_EXTRA is defined. [feature/attachment-management-no-reassignment] Handle privacy and some more. [ticket/10148] Turn TEMPLATE_BITFIELD into an instance variable. [ticket/10147] Corrected a typo in includes/functions_template.php. [ticket/10141] Save a hash lookup when value is not in cache. [ticket/10143] Added tests for storing a previously deleted value in db cache. [ticket/10105] Update AIM express link. [ticket/10105] Update AIM application download link. [ticket/10137] Remove unintended space at end of PHP_URL_FOPEN_SUPPORT_EXPLAIN. [ticket/10141] Split double-assignment into conditional and unconditional part. [ticket/10141] Use a cache in $auth->_fill_acl() for better performance. [ticket/9961] Create log entries when users are activated. [ticket/10139] Make signatures of set_atomic() consistent by using $new_value. [ticket/10139] Rename $cache to $use_cache to avoid confusion with cache object [ticket/10006] Remove unneeded if statements [ticket/10006] Remove return values [ticket/10006] More testing [ticket/10006] Tweak the tests a bit [ticket/10006] Add phpbb_config::delete [ticket/7941] Added @return to generate_board_url docstring. ...
| * | Merge branch 'develop-olympus' into developOleg Pudeyev2011-04-101-6/+6
| |\ \ | | |/ | | | | | | | | | | | | * develop-olympus: [ticket/10128] Pass E_USER_WARNING to trigger_error() calls from user_ban(). [ticket/10123] Change "smilie" to "smiley" as per our coding guidelines.
| | * [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
| * | Merge branch 'develop-olympus' into developAndreas Fischer2011-04-011-14/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9751] Add shortcut logic for pass_complex == PASS_TYPE_ANY. [ticket/9751] Compare $password with empty string instead of casting it to bool [ticket/9751] Use a switch/case block without break for password complexity. [ticket/9751] Password requirement "Must contain letters and numbers" fails
| | * [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
| * | Merge branch 'develop-olympus' into developOleg Pudeyev2011-03-111-0/+25
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9970] Rename validate_language() to validate_language_iso_name(). [ticket/9970] Do not allow switching to languages not installed on reg. page. [ticket/9970] Check whether language pack is installed. [ticket/9970] User language input is checked for existance
| | * [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
| * | Merge branch 'ticket/9549' into developOleg Pudeyev2011-03-011-0/+71
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/9549: [ticket/9549] Display users in their primary group instead of their first group [ticket/9549] Change default value of "sort legend by group name" to false. [ticket/9549] Fix displaying empty groups [ticket/9549] Fix language strings. [ticket/9549] Only add group to legend/teampage when the checkbox is checked. [ticket/9549] New method move() to move a group more than 1 up/down. [ticket/9549] Fix some minor issues with descriptions and coding-guidelines. [ticket/9549] Throw an error when the given field-name is invalid. [ticket/9549] Make the class non static and extend delete_group function. [ticket/9549] Add template changes for subsilver2. [ticket/9549] Enhance teampage and legend functionality [ticket/9549] Add the module and files for the ACP. [ticket/9549] Update database with the new config values and columns [ticket/9549] Enhance teampage functionality with a new class, group_positions. Conflicts: phpBB/install/database_update.php
| | * | [ticket/9549] Only add group to legend/teampage when the checkbox is checked.Joas Schilling2011-02-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The checkbox for the teampage was also missing from the template file. PHPBB3-9549
| | * | [ticket/9549] Make the class non static and extend delete_group function.Joas Schilling2011-02-161-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | delete_group() can now be used, so it does not update the actual group. This can save a query, when you update the group anyway. PHPBB3-9549
| | * | [ticket/9549] Add the module and files for the ACP.Joas Schilling2011-02-161-0/+67
| | | | | | | | | | | | | | | | PHPBB3-9549
| * | | Merge branch 'develop-olympus' into developOleg Pudeyev2011-02-241-38/+0
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | | | | * develop-olympus: [ticket/9874] view_log() performs unneeded count query over all log entries. [ticket/7834] Topic time didn't update when first post was deleted [ticket/9997] Fixed an inconsistency in the Moderator Control Panel [ticket/9872] Removed some useless code that broke delete_posts
| | * [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
* | | [feature/prune-users] Apply e6ed55a9c1ceb07ab2e87d4a53f9e688fda319c5.Oleg Pudeyev2011-05-081-40/+1
| | | | | | | | | | | | | | | | | | This was done in PHPBB3-9872. PHPBB3-9622
* | | [feature/prune-users] Rework user_delete() functions_user.phpJosh Woody2011-05-081-118/+147
|/ / | | | | | | | | | | | | | | | | user_delete now uses fewer queries to delete a set of users of size > 1 by accepting an array of users rather than a single user at a time. This required changing the third parameter, however the function retains its former behavior with the old-style parameters. PHPBB3-9622
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-101-1/+1
|\ \ | |/
| * [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