Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / functions_user.php

functions_user.php

View | Annotate | Download (83.6 KB)

# Date Author Comment
8952 View | Annotate 09/27/2008 01:45 PM toonarmy

Merge in r8940, r8941, r8942, r8945, r8946, r8947, r8949, r8950, r8951

8914 View | Annotate 09/23/2008 03:11 PM acydburn

- Automatically add users/groups to the PM recipient list, if entered or selected.
- Reply to PM now includes all previous recipients and not only the original sender.
- Added ‘max_recipients’ setting for private messages. This setting allows admins to define the maximum number of recipients per private message with a board-wide setting and a group-specific setting.
- Added new permission setting for sending private messages to groups. Now there are two permissions to define sending private messages to multiple recipients and private messages to groups.

8786 View | Annotate 08/24/2008 12:04 PM acydburn

Merge of the language-specific custom path change Revision #r8782

8729 View | Annotate 07/29/2008 05:38 PM Kellanved

Igor, hope that makes you happy

8713 View | Annotate 07/29/2008 04:38 PM Kellanved

Merge avatar deletion on change code

8672 View | Annotate 06/23/2008 08:22 PM acydburn

merge? merge.

8635 View | Annotate 06/09/2008 03:06 PM Kellanved

#16124

8627 View | Annotate 06/09/2008 01:36 PM Kellanved

merge

8572 View | Annotate 05/29/2008 02:25 PM acydburn

ok… i hope i haven’t messed too much with the code and everything is still working.
Changes:
- Ascraeus now uses constants for the phpbb root path and the php extension. This ensures more security for external applications and modifications (no more overwriting of root path and extension possible through insecure mods and register globals enabled) as well as no more globalizing needed.
- A second change implemented here is an additional short-hand-notation for append_sid(). It is allowed to omit the root path and extension now (for example calling append_sid(‘memberlist’)) – in this case the root path and extension get added automatically. The hook is called after these are added.

8571 View | Annotate 05/28/2008 03:05 PM Kellanved

Merging mime and referer checks into the Trunk

8564 View | Annotate 05/18/2008 10:02 PM acydburn

#26885

8526 View | Annotate 04/21/2008 05:10 PM acydburn

merge again, revisions 8516 to 8525

8477 View | Annotate 03/29/2008 01:08 AM naderman

Go away evil carriage returns\!

8383 View | Annotate 02/14/2008 01:38 PM Kellanved

Cross ci, converter not updated. (as 3.1 schema won’t fit any more)

8351 View | Annotate 01/30/2008 05:14 PM acydburn

merge with revision #r8350

8315 View | Annotate 01/08/2008 07:44 AM davidmj

- make viewforum work again
- remove the lower case functions, they were stupid anyway
- added some indexes
- added a group_name_clean column

8308 View | Annotate 01/06/2008 02:46 PM davidmj

- add DB2 support
/me takes a nap

8306 View | Annotate 01/05/2008 05:10 PM acydburn

Correctly check empty subjects/messages (Bug #17915)
Do not check usernames against word censor list. Disallowed usernames is already checked and word censor belong to posts. (Bug #17745)
Additionally include non-postable forums for moderators forums shown within the teams list. (Bug #17265)

8295 View | Annotate 01/03/2008 06:00 PM davidmj

oh boy…
- Migrate code base to PHP 5.1+

8280 View | Annotate 12/13/2007 11:23 PM kellanved

What did you expect? Us slacking off because of a few digg/heise trolls? nah. never!
The show must go on :)

8233 View | Annotate 11/10/2007 07:50 PM kellanved

Small things
#15068
#15060

8211 View | Annotate 10/21/2007 01:26 PM acydburn

make sure we always check for a valid directory handle

8204 View | Annotate 10/19/2007 03:10 PM acydburn

fixing some annoying bugs

8203 View | Annotate 10/18/2007 08:25 PM kellanved

#14834 – at least probably

8202 View | Annotate 10/18/2007 07:44 PM acydburn

make the ban check perform a bit better :/

8146 View | Annotate 10/05/2007 04:30 PM acydburn

dumdidum… sorry. ;)

8121 View | Annotate 10/03/2007 05:09 PM kellanved

and one more.

8095 View | Annotate 09/21/2007 05:05 PM acydburn

#i51 – #i63 – #i64

8091 View | Annotate 09/15/2007 03:27 PM kellanved

#14466

8033 View | Annotate 08/15/2007 07:32 PM acydburn

some bugs fixed

8010 View | Annotate 08/06/2007 01:25 PM kellanved

Better this way.

8008 View | Annotate 08/05/2007 06:14 PM kellanved

hrm

8007 View | Annotate 08/05/2007 05:57 PM kellanved

Okay, this add a few queries, but now ranks and avatars should behave as expected.

8005 View | Annotate 08/04/2007 03:53 PM kellanved

#13961 – the fix is not perfect, we now nuke the avatar/rank when leaving a group – no matter what.

7994 View | Annotate 08/01/2007 06:27 PM acydburn

some tiny fixes and two new features. ;)

7989 View | Annotate 07/31/2007 06:31 PM kellanved

#13906 Invalid files will be silently ignored

7961 View | Annotate 07/27/2007 07:33 PM acydburn

err, forgot to commit

7943 View | Annotate 07/25/2007 03:01 PM kellanved

small fixes.
#13794 : Raised the used error level by one
#13763 : Removed an old Beta2 compatibility fix
#13527 : cleaned up the code
#13525 : Changed templates as proposed by damnian
#11515 : added explanation about CPF checkboxes

7927 View | Annotate 07/23/2007 01:03 PM kellanved

Bugs #13701, #13697
Still not a perfect fix, but it should be better. To illustrate the problem:
Whenever the default group is changed, we have to apply group avatars and ranks. The group value is then copied to the user table, where it is not easily decideable whatever or not it is a group value or a special value.
If we change the default group of an user, we want that user to lose the group rank/avatar; however, we also have to dispose special ranks etc. in the process.
Bottom line: use groups to assign ranks :|

7925 View | Annotate 07/23/2007 06:14 AM davidmj

- a better way of checking PCRE property support
- fixed the naming of a variable or two

7919 View | Annotate 07/22/2007 04:04 PM kellanved

Cleaning up (#13689)
Also removed the useless login box from the ACP.

7909 View | Annotate 07/19/2007 10:38 PM acydburn

again, a lot of bug fixes

7899 View | Annotate 07/17/2007 05:41 PM kellanved

Well, seems that many hosts are in a business in which they shouldn’t be in. Lessen the impact for their customers by allowing to do without getimagesize for remote avatatars.
#13531

7885 View | Annotate 07/14/2007 05:48 PM davidmj

#13225

7883 View | Annotate 07/14/2007 02:31 PM davidmj

#13391

7881 View | Annotate 07/13/2007 05:47 PM acydburn

changes

7756 View | Annotate 06/14/2007 05:24 PM kellanved

grumble

7748 View | Annotate 06/11/2007 01:05 AM acydburn

fix for #12255 – do not allow empty cleaned usernames

7740 View | Annotate 06/09/2007 04:17 PM kellanved

#12275, #12267

7726 View | Annotate 06/08/2007 10:28 AM acydburn

other fixes

7723 View | Annotate 06/08/2007 09:27 AM kellanved

#12231

7677 View | Annotate 05/25/2007 06:03 PM kellanved

Introduced checks to stop negative postcounts (Bug #11561, #11421)
Allow IP v4/v6 urls for remote avatars (Bug #11633)
Delete avatar files automatically (Bug #11631)
Automatically add selected columsn to group by statements in the converter (Bug #11465)

7660 View | Annotate 05/21/2007 07:50 PM kellanved

Better this way :D

7658 View | Annotate 05/21/2007 02:15 PM kellanved

99 bugs on the wall …

#11339
#11283

... 97 bugs on the wall …

7646 View | Annotate 05/19/2007 06:40 PM acydburn

we included a check for getimagesize() existance… now we again can suppress notices while running this function.

7616 View | Annotate 05/17/2007 03:23 PM acydburn

#11074 – only process and check (as well as display) images if the category also matches. ;)

7602 View | Annotate 05/16/2007 12:00 PM kellanved

Cleaning up.

7591 View | Annotate 05/15/2007 07:03 PM kellanved

Triggering Error messages in the ban function is not pretty. We’ll continue to do it for now, though.
#10966

7580 View | Annotate 05/15/2007 09:27 AM kellanved

Not really a bug, as Admins indeed have to take care of such things. However, let’s assume they knew what they were doing.

#10933

7575 View | Annotate 05/14/2007 09:36 PM davidmj

#10917

7551 View | Annotate 05/12/2007 06:15 PM kellanved

Maybe we should globalize objects which we want to use.

7527 View | Annotate 05/11/2007 02:25 PM acydburn

We do not support nesting code tags – #10763
#10741
Confirm box on pruning forums – #10619
Not stripping empty lines on parsing messages – #10579
Remove reports alongside with users – #10501

7503 View | Annotate 05/07/2007 11:21 PM acydburn

#10617

7496 View | Annotate 05/07/2007 01:44 PM kellanved

Just removing a few extra lines.

7495 View | Annotate 05/07/2007 01:37 PM kellanved

Fixing a bug nobody reported so far: the avatar gallery displayed a faulty message about avatars being disabled.

Also fixes #10531 (let’s pretend that it isn’t a new feature. It’s neat, though)

7455 View | Annotate 05/03/2007 04:29 PM acydburn

some language-specific adjustements
fix prune users (adding the list of users to the confirmation page)
tried to fix the show/hide trigger in ACP by not using width: auto; (which gets somehow inherited to each other element)

7453 View | Annotate 05/03/2007 11:27 AM kellanved

Still finetuning avatar uploading and delivery.

Remember that the recent changes broke compatibility with old uploaded avatars and that there were changes to the database entries.

7452 View | Annotate 05/02/2007 11:08 PM acydburn

some tiny changes

7450 View | Annotate 05/02/2007 05:14 PM kellanved

cleaning up a little.

7449 View | Annotate 05/02/2007 04:09 PM kellanved

#10377

Translators, take note. This inroduces a new language variable in acp/groups.php

7445 View | Annotate 05/01/2007 05:19 PM kellanved

#10371

7429 View | Annotate 04/30/2007 12:46 PM kellanved

Prepare to be yelled at and brace for the tide of bug reports: I had hoped we would not have to do this, but it seems that we have to.

Route all avatar downloads through download.php – adrien
-Change the way inline attachments are delivered
-Fixes a few (unreported) bugs, notably avatar upload during group generation
#10079

7426 View | Annotate 04/29/2007 02:30 PM acydburn

more bugfixing. Important change: admins able to give ban reason for user quick tool ban – logging also syndicated, now always logged to ACP and MCP logs.

7416 View | Annotate 04/28/2007 10:50 AM acydburn
  • empty log message *
7413 View | Annotate 04/28/2007 02:46 AM davidmj

#10185

7384 View | Annotate 04/22/2007 05:27 PM acydburn

#10005, #10003, #10001, #9999, #9945, #9965, #9909, #9906, #9877, #9861, #9831, #9830, #9815, #9665, #9624

prosilver adjustments for important announcements in ucp – #9995
MCP fixes for user notes/warnings – #9981
Preserving imageset values on save/edit
find a member link for Mass PM’s – #9925
syndicate window.onload events where necessary – #9878
Duplicate topics in forums with announcements – #9840
Email template for forced re-activation – #9808
Topic pagination adjustment – #9763
Changed compose message layout in UCP – #9706, #9702
Fixed inline attachment font size (hopefully)

7376 View | Annotate 04/20/2007 12:58 AM davidmj

#9931

7374 View | Annotate 04/19/2007 10:59 PM davidmj

#9902

7249 View | Annotate 03/31/2007 05:16 PM davidmj

allow password complexity to work using mbstring if PCRE does not support unicode properties

7175 View | Annotate 03/12/2007 05:12 PM acydburn

ok, this was a nasty one. :D Do not overwrite user ranks if the group rank is set to “user default”. :o

7150 View | Annotate 03/08/2007 04:49 PM acydburn

again… some more fixes.

7143 View | Annotate 03/07/2007 05:55 PM acydburn

- fix some group specific bugs
- correctly determining terrafrost’s birthday mod

7115 View | Annotate 03/03/2007 06:42 PM acydburn

erm… yes…

7114 View | Annotate 03/03/2007 06:41 PM acydburn

Fixing the following bugs:
#8444 (language dependent buttons no longer include the dimensions to allow bigger/smaller translated images)
#8414
#8396
#8388
#8216

thanks to bartvb and kellanved for providing possible fixes…

7109 View | Annotate 03/02/2007 08:48 PM davidmj

- update_foes() now can be given a user or a group. This should make some operations much faster

7007 View | Annotate 02/18/2007 02:42 PM acydburn

fixing some bugs
more mcp links for easier moderating different aspects (all, forum, topic)
i may have introduced new bugs with this commit due to me having fixed some things weeks ago and some code changed in between – please report if you see something not working as expected.

7005 View | Annotate 02/18/2007 12:09 AM davidmj

#8160

6973 View | Annotate 02/07/2007 05:32 PM acydburn

adjust text for getting image dimensions as well as not suppressing warnings for getimagesize()

6956 View | Annotate 02/02/2007 04:36 PM acydburn

only very tiny fixes.

6930 View | Annotate 01/26/2007 05:09 PM acydburn

- fix some oddities (doubled spaces for example)
- changed the way make_forum_select() is returning the forum list – now including skipped forums but being disabled. This should make identifying the correct forum much more easier.
- Changed some permission namings based on suggestions by the community
- Tried to comply to the permission field ordering within the language files while displaying permission sets. Hopefully it’s worth the additional processing time.
- Disable submit buttons after clicking for installation and conversions.

6927 View | Annotate 01/24/2007 06:19 PM acydburn

- fix severe bug with email hash calculation
- fix bug in convertor not correctly converting config values

6925 View | Annotate 01/24/2007 12:29 PM acydburn

- added confirm box to ucp zebra (adding fried/foe)
- permission fixes for conversions
- use more appropiate error message within convertor if source tables could not be found
- other tiny fixes

6905 View | Annotate 01/18/2007 03:41 PM acydburn

fixing some bugs

6894 View | Annotate 01/17/2007 07:41 PM acydburn

ok, handled some bugs… the most important being validate_username (the variable passed to validate_data([...]array(‘username’, [...])) and updating group listings while doing relevant group actions. Oh, and PM icons are working now. :o

6880 View | Annotate 01/11/2007 06:44 AM davidmj

#6772
- some other random things

6826 View | Annotate 12/31/2006 05:56 PM acydburn

- telling the admin for what the board contact and board email addresses are used for and also making sure this explanation is correct ;)
- fixes for bugs #6694, #6664 and #6662

6818 View | Annotate 12/28/2006 05:21 PM acydburn

- made sure ranks are displayed correctly (used RANK instead of RANK_TITLE)
- #6630
- hide a few links from bots (forum/topic marking, memberlist, post/reply/quote/edit/etc. buttons) [#6354]
- #5698

6816 View | Annotate 12/27/2006 06:43 PM acydburn

Unused Code inside function update_forum_data [Bug #6606]
Copy permissions protection for groups [Bug #6594]
HTML issues in ACP [Bug #6580, #6578]
Always send the correct encoding [related to bug #6576]
Mass email fixes for first loop iteration [Bug #6570]
Extension groups to be allowed in PM’s and/or Posts [Bug #6558]
Extension allowance checking clarified (no longer using forum id 0 for private messaging)
Using request_var() array method for some variables [Bug #6556]
Added confirmation for deletion of ranks/smilies/icons/word censores [Bug #6548, #6530, #6512, #6466]
Only show postable forums in dropdown list for moving posts on forum deletion as well as correct re-indexing [Bug #6510, #6476, #6384]
Jabber password being password field in jabber settings screen [Bug #6478]
user activity language variable if viewing not own profile [Bug #6432]
Show moderator group/user-name colour [Bug #6402]
Log rank creation/updating/removing [Bug #6398]
Update check permission changed from a_ to a_board [Bug #6392]

6814 View | Annotate 12/27/2006 01:06 AM naderman

- display search type as page title for premade searches [Bug #6508]
- flash enabled on user side by default, so that admins can actually change anything by activating it (still disabled by default)
- properly implemented password complexity check [Bug #6584]
- do not ldap_escape paramaters for the bind function [Bug #6208]
- deleted words in edited post subjects weren’t getting there search cache refreshed [Bug #6288]
- made common word threshold configurable [Bug #6168]
- recreated word match table entries after installation, side effect of bug #6060
- option to only allow ASCII usernames
- adjusted search page pagination [Bug #6424]
- correctly calculate unformatted search result extract length

6813 View | Annotate 12/26/2006 09:49 PM davidmj

#6598
- should have fixed all uses of curly braces

6806 View | Annotate 12/24/2006 04:35 PM davidmj

#6372

6803 View | Annotate 12/24/2006 02:11 PM acydburn

some fixes today
- most important change is the consolidation of the display attachment functions; merging them together to have one function we need to call.

6787 View | Annotate 12/21/2006 11:37 AM acydburn

- some fixes
- important bugfix for the mcp and determining allowed ids in general (if global announcements are included)

6782 View | Annotate 12/19/2006 03:37 AM davidmj

don’t mind me…

6780 View | Annotate 12/18/2006 12:21 AM davidmj

#6328

6748 View | Annotate 12/11/2006 09:13 PM davidmj

#6158

6743 View | Annotate 12/10/2006 07:23 PM davidmj

blah

6742 View | Annotate 12/10/2006 07:14 PM davidmj

#5242

6698 View | Annotate 12/02/2006 02:19 PM acydburn

- a bunch of fixes
- added todos to the updater to make sure i do not forget. :)

6663 View | Annotate 11/26/2006 06:22 PM acydburn

- fixed bug within the user_add function
- fixed some updater bugs

6660 View | Annotate 11/26/2006 03:55 PM acydburn

- bug fixes for #5618, #5588 and #5584
- remove messenger->reset() calls (they are already performed on sending)

6655 View | Annotate 11/25/2006 09:00 PM naderman

message

6650 View | Annotate 11/24/2006 03:59 PM acydburn

rather large update, most important things done:
- implemented provided patch/diff file for bug #5350 (Highway of Life) with some tiny changes and alterations
- more username/colour changes/fixes
- added a note about PM rule-dependant message removals so the user is not wondering too much if he can’t remember his rules. :)
- some column changes to fix unicode issues
- bugfixes

6628 View | Annotate 11/21/2006 07:15 PM acydburn

- fixing a bunch of bugs
- moved the install trigger error to sessions and also disabled it for those having DEBUG_EXTRA enabled.
i hope not having introduced too many new bugs.

6614 View | Annotate 11/19/2006 10:00 PM acydburn

some tiny fixes.

6597 View | Annotate 11/17/2006 10:51 PM davidmj

#5376
- removed some unneeded globals

6572 View | Annotate 11/12/2006 04:35 PM acydburn

consistant obtain_* functions

6571 View | Annotate 11/12/2006 04:17 PM davidmj

banned usernames are now cached and normalized

6548 View | Annotate 11/03/2006 10:05 PM acydburn

ok, i am an idiot…

6546 View | Annotate 11/03/2006 06:50 PM acydburn

- make sure the sql layer for mysql always states mysql4 and get to mysql if using mysql < 4
- assign some default vars to email templates (we always need some basic ones)

6545 View | Annotate 11/03/2006 12:26 PM acydburn

- implemented the suggested html_entity_decode function made by david
- fixed string length checking by also decoding entities for the sake of checking
- used the new html_entity_decode function

6544 View | Annotate 11/02/2006 04:23 PM acydburn

some updates; and hopefully not completely breaking redirects (again). :D You know, i like breaking things.

6524 View | Annotate 10/24/2006 12:32 AM davidmj

This was caused by the removal of DEFAULT on some TEXT columns (MySQL really does not allow this). Only those using MySQL felt this issue :P

6514 View | Annotate 10/21/2006 05:11 PM grahamje

#4876

6513 View | Annotate 10/20/2006 03:48 PM acydburn

- adjust unread query a bit to cope with large topics (thanks bart!)
- fixing some bugs
- more username_clean work

6511 View | Annotate 10/19/2006 03:55 PM acydburn

Revised attachment categories a bit
Fixes for the following bugs:
#4830
#4818
#4816
#4810
#4808
#4798
#4796
#4772
#4662
#4646
#4546
#4524
#4270

I hope not having introduced additional severe errors :)

6497 View | Annotate 10/14/2006 04:56 PM acydburn

- store sql_layer directly within the layer itself
- new method sql_multi_insert to circumvent db-specific hacks
(hopefully not introduced any parsing errors)

6494 View | Annotate 10/14/2006 12:10 AM naderman

- introducing clean usernames, needs to be tested more, I’m not sure I didn’t miss anything
- homograph list should probably be extended

6459 View | Annotate 10/07/2006 07:40 PM acydburn

he braces style is deprecated as of PHP 6

6452 View | Annotate 10/07/2006 02:36 PM acydburn

tried to begin adjusting all string functions where applicable – still a lot to do.
i hope i catched all relevant sections and did not mess something up.

6447 View | Annotate 10/06/2006 08:43 PM acydburn

- support re-caching of theme data if stylesheet.css changed and load_tplcompile enabled
- mcp fixes
- fixed some usability issues

6437 View | Annotate 10/03/2006 10:28 PM acydburn

ha, the first one…

6436 View | Annotate 10/03/2006 08:35 PM acydburn

- extend config checking to include check for writeable path
- removed not utilized user_allow_email column from schema
- removed inactive groups (they had no use at all, since inactive users are not able to login)
The only benefit those brought are distinguish users – but this is no longer needed too due to the inactive code present. This also allows us to retain group memberships as well as default settings for users being set inactive due to profile changes.
- rewrote user_active_flip to support multiple users and a mode, as well as coping with the aforementioned changes
- implemented updated jabber class to support SRV server records and for better jabberd2 support.
- jabber errors now logged to the error log with a full transaction
- fixed user_delete calls to include usernames where possible and also update last post information correctly
- implemented additioal checks to user management to cope with common mistakes
- On installation, guess the required mysql schema as best as possible. Users now only need to decide if they want to use the mysqli extension or not (mysqli selected by default) and no longer need to know their mysql version.
- founders do not need to re-activate their account on profile changes
- remove older session if re-authentication was successful (re-authentication always assigns a new session id)
- set the cookie directly instead of using php’s function
- added inactive_remind to see which users got deactivated because of reminders (or re-activation) sent out

hopefully not introduced too many bugs – those testing with CVS releases, please concentrate on user registration, activation, profile changes (email/password)...

6414 View | Annotate 09/28/2006 05:04 PM acydburn

- added confirmation to removing bbcodes
- added optional MX and DNSBL checks
- added backtrace (triggering sql error) on error within sql_in_set as well as making sure it is handling an array
- let users having f_list access to a forum actually see the forum without a topic list and not displaying an error message – this allows for giving people access to subforums but not the parent forum without the need to add the (sub-)forum to the index.
- some additional bugfixes

6394 View | Annotate 09/23/2006 02:27 PM grahamje

A reworking of how we handle inactive users

6383 View | Annotate 09/23/2006 12:14 AM acydburn

some tiny fixes here and there

6366 View | Annotate 09/14/2006 04:57 PM acydburn

- Fix some bugs
- fixed retrieving of permissions if the LIKE statement is used as well as proper supporting (needs testing on mssql)

6364 View | Annotate 09/13/2006 06:08 PM acydburn

- fixed some bugs
- changed attachment handling a bit
- tried to remove target tags out of the code
- do not add session ids to urls for bots as well as not creating a new session on each page view for them

I bet i introduced some bugs too. ;)

6354 View | Annotate 09/05/2006 05:17 PM acydburn

check file type

6352 View | Annotate 09/04/2006 10:35 PM