Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / auth.php

auth.php

View | Annotate | Download (28.6 KB)

# Date Author Comment
8986 View | Annotate 10/09/2008 03:19 PM acydburn

Implemented strict check for cached user permissions and existing ACL options. This fix makes sure cached permissions are valid, even if they got already cached.

8948 View | Annotate 09/26/2008 11:27 PM toonarmy

tiny typo #34345

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.

8503 View | Annotate 04/11/2008 04:21 PM acydburn

merge some changes/fixes
henry: is your viewonline fix/change missing? ;)

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

Go away evil carriage returns\!

8391 View | Annotate 02/23/2008 03:23 PM acydburn

merge revisions #r8384, #r8387, #r8388, #r8389 and #r8390

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

oh boy…
- Migrate code base to PHP 5.1+

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

dumdidum… sorry. ;)

7979 View | Annotate 07/29/2007 01:48 PM kellanved

space, where art thou?

7977 View | Annotate 07/29/2007 01:22 PM kellanved

#13863 (oops)

7873 View | Annotate 07/12/2007 10:55 AM acydburn

do not consider permissions the admin is not able to change, track or see.

7789 View | Annotate 06/24/2007 02:49 PM acydburn

tweak the sql_like_expression feature a little bit to allow correct escaping

7788 View | Annotate 06/23/2007 02:16 PM acydburn

new wrapper for LIKE expressions to streamline the fixes. We actually need to adjust them for different DBMS as well as SQLite2 not supporting escaping characters in LIKE statements (which is a reason why we think about dropping sqlite support completely).

7736 View | Annotate 06/09/2007 01:11 PM acydburn

ok, mess around with the templates + fixing some bugs + adjusting headers for those files already modified to circumvent conflicts for those having their editor set to remove trailing spaces (not recommended!)

7665 View | Annotate 05/23/2007 04:01 AM davidmj

erm… um… NOBODY SAW THIS :P

7663 View | Annotate 05/22/2007 11:32 PM davidmj

#11255
#11259
#11291
#11335
#11457
#11473
#11475
#11511
#11523
#11527

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

some tiny changes

7427 View | Annotate 04/29/2007 10:22 PM davidmj

#10255

7386 View | Annotate 04/22/2007 08:09 PM acydburn

changed the cache files to save some memory (all global ones are hold in memory, doubling it).

7241 View | Annotate 03/30/2007 12:49 PM acydburn

some changes/bugfixes

7182 View | Annotate 03/13/2007 11:00 PM naderman

- improvements to search indexing performance, espacially tidy() by adding a word_count column, the database update from b5 to next version will take quite a while on bigger databases, I also lowered the default common word threshold from 20 to 5 percent, big boards might want to use 3 or 2 percent, 20 was way too high
- added some keys to ACL tables, great improvement of auth query performance
- we will only add new language strings to install.php language file and won’t modify any, if a language file is updated before phpBB is updated, the updater will not overwrite the user’s language with english if install.php was modified

7177 View | Annotate 03/12/2007 07:05 PM naderman

a performance improvement

6808 View | Annotate 12/25/2006 04:19 PM acydburn

show dropdown box for choosing the forum in user management screen -> permissions

6774 View | Annotate 12/16/2006 09:24 PM naderman

- Optimize acl_getf_global a bit
- a little performance improvement of the IP regular expressions
- convert post_text/subject collation to utf8_unicode_ci if a user wants to use mysql_fulltext to allow case insensitivity [Bug #6272]
- mysql_fulltext should alter all necessary columns at once to speed up the process
- validate URLs against RFC3986
- fixed some weirdness in make_clickable
I hope I didn’t break any URLs with this commit, if I did then report it to the bugtracker please!

6681 View | Annotate 11/28/2006 12:31 AM acydburn

- the same procedure as every… oh. this is taken.
- also including the first bugfix within beta4, just noticed at area51 that quicktools are not working in global announcements. :D

6601 View | Annotate 11/18/2006 05:27 PM acydburn

- a handful of mcp fixed, the most important one is the change for check_ids() – it is now supporting ids from more than one forum too, making it possible to use some mcp features as designed initially. We really need to get our moderator team testing the mcp extensively.
- fixed some other tiny glitches
- if a forum category with subforums get changed to a link type forum give options of what to do with the subforums (#5334)
- other bugfixes

6517 View | Annotate 10/22/2006 03:32 PM acydburn

- now username changes should work as desired
- removed some extract() calls

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

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.

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)...

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)

6271 View | Annotate 08/12/2006 03:14 PM acydburn

sql_in_set changes

6228 View | Annotate 08/02/2006 05:53 PM acydburn

- fixing some bugs
- removed file_exists calls for auth plugins since they need to be there once set up

6151 View | Annotate 07/07/2006 02:36 PM naderman

- display age in user profile and make it available on viewtopic
- various tiny bugfixes including [Bug #2351] [Bug #2549] [Bug #2681] [Bug #3015]
- strip first, then change newlines [Bug #2403]
- added support for creating user profiles to the login function (makes use of user_add), triggered by LOGIN_SUCCESS_CREATE_PROFILE constant
- moved newest user updating from ucp_register to user_add function
- renamed the admin_ auth module function to acp_
- added initialisation code to auth_apache which checks whether it will work
- added user_add support to both auth_ldap and auth_apache
- some auth_ldap tweaks, should work with users deeper in the organisation structure too now
- adjusted global topics in mcp_report to work like mcp_queue

6115 View | Annotate 06/22/2006 06:49 PM acydburn

change ACL_NO to ACL_NEVER and ACL_UNSET to ACL_NO to let our users get what is meant on the first look.

the downside is that the information is no more accurate (permissions are still unset, defaulting to no) – someone might to overlook all explanations. :)

6081 View | Annotate 06/17/2006 01:28 PM acydburn

fix bugs #2271 and #2273

6073 View | Annotate 06/16/2006 06:54 PM acydburn

- removed db cache (might re-appear, but for now we do not see the need for it)
- all changes to styles/subsilver/template are purely cosmetic (no functional changes)
- cosmetics
- bugfixes
- add index to modules table
- use modules ordering code for forums too

6058 View | Annotate 06/13/2006 11:06 PM acydburn

make sure custom profile fields are created correctly on registration (#2225)

6015 View | Annotate 06/06/2006 10:53 PM acydburn

ok, this one is rather large… the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different

apart from this, code cleanage, bug fixing, etc.

5987 View | Annotate 05/30/2006 06:40 PM acydburn

hopefully fixing bug #2022 with this

5920 View | Annotate 05/17/2006 06:26 PM acydburn

fixing bug #1860

5908 View | Annotate 05/13/2006 12:59 PM acydburn

- david: copy&paste error? ;)

5885 View | Annotate 05/06/2006 12:06 AM davidmj

I hope nothing broke!

- Added a query builder, it is currently only used for complex queries that involve a FROM clause with two tables and a left join
- Changed some function calls in the DBAL
- Made the viewtopic queries nicer

5824 View | Annotate 04/22/2006 06:18 PM acydburn

- removed group settings from roles
- added forum icon in front of forums in permissions acp
- added trace permissions in permission masks (thanks naderman for writing the first code and for the idea… :))
- some bugfixes
- PHP6 fix

5790 View | Annotate 04/17/2006 03:09 PM acydburn

- clean up marklist calls (global function)
- added new feature: test out others permissions (admin permissions will not be copied)
- changed attachment processing by directly using the template engine
- fixed some attachment related bugs
- additional tiny fixes

5697 View | Annotate 03/22/2006 02:36 PM acydburn

ok, this will fix various permission discrepances. :) What happened is that the static permission cache and the static acl forum ids were used… globally (of course). But this led to users inheriting permissions from previously called user permission setups resulting in users seeing private forums in profiles as well as other areas i could imagine being “wrong”. Thanks to Yawner for letting me login with his username. :D

5622 View | Annotate 03/13/2006 12:19 AM acydburn

- streamlined reports to consist of the feature set we decided upon (Nils, your turn now)
- use getenv instead of $_ENV (with $_ENV the case could be wrong)
- permission fixes (there was a bug arising with getting permission flags – re-added them and handled roles deletion differently)
- implemented max login attempts
- changed the expected return parameters for logins/sessions
- added acp page for editing report/denial reasons
- other fixes here and there

5574 View | Annotate 02/22/2006 10:42 PM acydburn

implementing permission roles

- copy permissions (adding groups)
- copy permissions (adding forums)
- checking proper groupadd/del settings
- added intro page to permissions (to give an overview and quick links)
- able to select forums + subforums, single forum, all groups, all users (permission screens)
- able to reset permissions (only reset input field)
- fix forum deletion bug

5553 View | Annotate 02/12/2006 08:21 PM acydburn

my turn to break things… harharhar
- checking in permission settings and permission masks
- permission presets and documentation not finished yet
- added backtrace function to determine file/line for sql errors
- fixed marlist for orphan attachments/groups/logs/users
- able to change anonymous user settings/permissions now
- re-arranged admin permissions a bit (added some and removed some)
- setting forum permissions after creating/editing forum now selects every default group (copy permisson/dropdown to be added for adding forums)
- finished user permissions in users acp

note: the layout for permissions might change
devs: please empty the user_permissions in phpbb_users. Also, first change your auth_options table, remove all cache files and then re-set admin permissions. After having set the admin permissions you can update your modules table (else you will not see the permission tabs) – or empty the auth setting within the modules table to be able to see the permission modules (they rely on newly added permission options)

5545 View | Annotate 02/12/2006 03:11 PM acydburn

- new acl method -> acl_getf_global()
usage example: acl_getf_global(‘m_approve’); returns true if user has m_approve permission in one or more forums, else false

5517 View | Annotate 02/03/2006 09:59 PM acydburn

- ability to change anonymous user settings more easily
- fix serious bugs in permissions (always allowing if permissions explicitly set and getting wrong permission options from bitfield)
- added option for returning an array to make_forum_select
- again fixing bugs in module system (one for a very query consuming part and one for correctly filling the cache)

5494 View | Annotate 01/25/2006 10:01 PM acydburn

- moved add_log out of functions_admin (this file should only be included in admin/admin-related pages)
- fixed cookie based topic tracking
- added missing config variables
- other minor things

5486 View | Annotate 01/22/2006 02:06 PM acydburn

- size select fix
- introduced function for building group options (acp)
- fixed acl_getf if negated option needs to be retrieved
- only using one function for updating post informations
- fixing module display if module is disabled
- if user is having a non-existent style do not print out error message, instead fix the users value and load the default style

5469 View | Annotate 01/17/2006 07:09 PM acydburn

move around – better not call create_function in a loop

5468 View | Annotate 01/17/2006 07:03 PM acydburn

just preparing…

5423 View | Annotate 01/04/2006 08:51 AM acydburn

- sperate permissions from sessions
- added some comments to the auth class for better understanding
- revised some permission functions
- added option to negate permission check by prefixing option with a ! (for example checking for !f_read returns true if user is not able to read forum)
- used the new option for testing in ucp front