Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / functions.php

functions.php

View | Annotate | Download (105.4 KB)

# Date Author Comment
8988 View | Annotate 10/09/2008 04:22 PM acydburn

- Do not show link to user/group profiles if user has no permission to view the linked page and gets a denied message anyway. (Bug #15088)
- Do not display last post link and sort display options for search engines. (Bug #15088)

8968 View | Annotate 10/02/2008 02:05 PM acydburn

[Change] Remove NUL-Bytes directly in request_var() for strings and within the custom DBAL sql_escape() functions (MSSQL, Firebird, Oracle) (reported by AdhostMikeSw)

8961 View | Annotate 09/30/2008 05:18 PM acydburn

merge r8956, r8957 and r8960

8889 View | Annotate 09/19/2008 03:17 PM Kellanved

Okay, that is pretty raw, but better to have it in place than trying to play catch-up. Introducing an early stage of CAPTCHA modules.

8875 View | Annotate 09/18/2008 04:17 PM acydburn

Set secure cookie for style switcher if required. (Bug #19625)

8839 View | Annotate 09/08/2008 03:39 PM toonarmy

merge r8829, r8830, r8831, r8832, r8833, r8834, r8835, r8836, r8837, r8838

8822 View | Annotate 09/04/2008 04:10 PM acydburn

cleanage

8812 View | Annotate 09/04/2008 01:39 PM toonarmy

Remove caching of templates from the database completely, themes is cut down ready for a complete chop, and fix the installer :)

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

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

8781 View | Annotate 08/22/2008 03:32 PM acydburn

Merge chmod changes into trunk

8779 View | Annotate 08/22/2008 01:02 PM Kellanved

comments

8776 View | Annotate 08/21/2008 05:50 PM Kellanved

merge

8738 View | Annotate 08/01/2008 04:30 PM acydburn

merge cookie secure detection

8696 View | Annotate 07/28/2008 03:37 PM acydburn

marge

8684 View | Annotate 07/27/2008 03:42 PM acydburn

merge

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

merge? merge.

8650 View | Annotate 06/12/2008 09:27 AM davidmj

/me slaps himself for being old school

8649 View | Annotate 06/12/2008 09:24 AM davidmj

The beginnings of the destruction of phpBB’s greatest bottleneck, dynamic css…
As of phpBB 3.0.x, we take our “generic” CSS for a theme and later on combine it with the imagesets and languages as needed… What we did for 3.0.x involved dynamically resolving the variables in the CSS and then sending it off, caching it at several layers (except the one that mattered). The biggest issue with style.php is that it is one giant str_replace on every page load, no matter what; cache be damned. Instead, the trick is to cache the full compilation earlier on…
Further work to do: kill all the old crap and fully integrate the new solution

8644 View | Annotate 06/10/2008 02:55 PM acydburn

added two comments to describe the functions use-case

8642 View | Annotate 06/10/2008 12:32 AM naderman

Regular expression for email matching in posts will no longer die on long words

8637 View | Annotate 06/09/2008 07:10 PM acydburn

#27395

8624 View | Annotate 06/08/2008 11:44 PM acydburn

merge…

8612 View | Annotate 06/06/2008 01:28 PM Kellanved

Some xenophobia

8610 View | Annotate 06/05/2008 04:11 PM acydburn

merge…

8590 View | Annotate 06/04/2008 01:23 PM acydburn

fix adm redirect

8587 View | Annotate 06/03/2008 06:33 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.

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

merge again, revisions 8516 to 8525

8504 View | Annotate 04/11/2008 04:22 PM acydburn

merged #r8490

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

Go away evil carriage returns\!

8468 View | Annotate 03/24/2008 02:21 AM naderman

new isset_post function and some better comments

8466 View | Annotate 03/24/2008 01:59 AM naderman

- add error_reporting to style.php (merge from r8464)
- let the error handler deal with E_STRICT (same as E_WARNING/E_NOTICE) and E_RECOVERABLE_ERROR (same as E_USER_ERROR)

8452 View | Annotate 03/18/2008 03:47 PM acydburn

merging… again

8413 View | Annotate 02/27/2008 04:29 PM Kellanved
8411 View | Annotate 02/27/2008 04:21 PM Kellanved

cross-ci

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

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

8356 View | Annotate 01/30/2008 10:48 PM acydburn

Merging revisions #r8352, #r8353, #r8354 and #r8355

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

merge with revision #r8350

8349 View | Annotate 01/29/2008 04:57 PM acydburn

Merging revisions #r8346, #r8347 and #r8348

8311 View | Annotate 01/07/2008 10:30 AM vic_delfant

Fixed a problem caused by “x” variations of a translation, such as fr-x-strict and de-x-sie. We’re now sending the main language code to the output so it will at least be a valid language code

8301 View | Annotate 01/04/2008 07:35 PM davidmj

Ch-ch-ch-changes
- Made us more DB independent by making many queries capability based instead of DB specific
- Finished PHP5ifying of the acm_file class, now with some (hopefully) enhancements to its performance
- Sped up viewforum considerably (also goes towards mcp_forum)

I really hope I didn’t explode CVS…

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

oh boy…
- Migrate code base to PHP 5.1+

8273 View | Annotate 12/10/2007 07:35 PM kellanved

Late fix for #16174

8269 View | Annotate 12/05/2007 05:34 PM acydburn

wonderful, another change… now come slap me to death… conquering mars.

8246 View | Annotate 11/18/2007 04:37 PM naderman

- Constant PHPBB_DB_NEW_LINK introduced which can be used to force phpBB to create a new database connection instead of reusing an existing one if the dbms supports it [Bug #14927]
- Automatic URL parsing no longer allows dots in the schema but can parse URLs starting after a dot [Bug #15110]
- Dynamic width for birthday select boxes [Bug #15149]

8241 View | Annotate 11/17/2007 09:04 PM acydburn

some further fixes
- re-introduce grabbing random number from /dev/urandom

8223 View | Annotate 11/03/2007 12:10 PM acydburn

some changes

8201 View | Annotate 10/17/2007 05:47 PM acydburn

fixing one severe bug showing since 5.2.4

8199 View | Annotate 10/17/2007 12:11 AM kellanved

Lesson learned.

8160 View | Annotate 10/09/2007 11:04 PM kellanved

#14679

8156 View | Annotate 10/09/2007 01:21 PM kellanved

new clicky thingies.

8148 View | Annotate 10/05/2007 04:45 PM acydburn

example.com

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

dumdidum… sorry. ;)

8143 View | Annotate 10/05/2007 03:14 PM kellanved

#i43

8139 View | Annotate 10/04/2007 08:50 PM acydburn

#i42
new password hashing mechanism for storing passwords

8135 View | Annotate 10/04/2007 05:08 PM acydburn

#14621
#14596
info file changes

8131 View | Annotate 10/04/2007 02:03 PM acydburn

- fixed database updater
- fixed hook function call in database updater
- fixed bot agent detection (we used a wildcard within the w3c-agent, therefore we should really support this. ;))

8129 View | Annotate 10/04/2007 01:14 PM acydburn

remove one problematic instance from the realpath replacement

8126 View | Annotate 10/03/2007 07:47 PM acydburn

#i41
(basically do not allow autocompletion for admin re-authentication)

8120 View | Annotate 10/03/2007 05:05 PM kellanved

Ok, here comes a big one. Poor updater. Also requires testing.

#i91
#i92
#i93
#i94
#i95
#i96

8119 View | Annotate 10/02/2007 08:29 PM acydburn

#i8

8118 View | Annotate 10/01/2007 09:24 PM acydburn
  • empty log message *
8116 View | Annotate 10/01/2007 07:43 PM acydburn

#i112

8114 View | Annotate 09/26/2007 07:00 PM acydburn

#i66

8100 View | Annotate 09/22/2007 09:18 PM acydburn

new hook system (do not get it confused with events or plugins please)
- introducing two new hookable functions too

8099 View | Annotate 09/22/2007 08:31 PM acydburn

#i62 – #i65
gone through every javascript invocation and making sure we adhere to our coding guidelines.

8098 View | Annotate 09/22/2007 08:21 PM acydburn

#i61

8094 View | Annotate 09/21/2007 05:00 PM acydburn

put expressions for ip validation into our get_preg_ function.

8092 View | Annotate 09/18/2007 04:49 PM acydburn

some fixes. :P
- language authors may review their email template files…

8084 View | Annotate 09/09/2007 03:35 PM naderman

- http://www.boardlocation.tld/phpBB/ links will not get an extra trailing slash with magic url anymore [Bug #14362]

8072 View | Annotate 08/30/2007 11:21 PM acydburn

necessary changes…

8061 View | Annotate 08/21/2007 05:09 PM acydburn

- make sure the copyright/disclaimer is consistent
- two fixes…

8057 View | Annotate 08/20/2007 05:07 PM acydburn

fix for bug #14165… hopefully

8053 View | Annotate 08/19/2007 04:51 PM acydburn

away with debug code…

8050 View | Annotate 08/19/2007 03:40 PM naderman

- BBCode parsing order should ALWAYS be censor_text(), bbcode_secon_pass(), bbcode_nl2br(), smiley_text(), parse_attachments()
- using \r on custom bbcodes to allow line breaks [Bug #10758]

8045 View | Annotate 08/18/2007 01:53 AM naderman

- strip_bbcode should not treat smilies which look like BBCode and are placed in front of a closing tag as BBCode
- highlight in post subjects and topic titles
- language entry SMILIE_ONE_ADDED should have been SMILIES_ONE_ADDED

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

some bugs fixed

8025 View | Annotate 08/13/2007 02:14 PM acydburn

Some changes… non-invasive…

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

some tiny fixes and two new features. ;)

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

err, forgot to commit

7914 View | Annotate 07/21/2007 06:02 AM davidmj

clean up

7901 View | Annotate 07/17/2007 07:02 PM acydburn

remove T_THEME_DATA completely… now the css data is able to be fetched for banned users too. Gives us a good chunk of memory back.

7890 View | Annotate 07/15/2007 10:53 PM naderman

- search result extract shouldn’t end in the middle of a multibyte character [Bug #11863]
- missing localisation for an imageset shouldn’t create lots of “imageset refreshed” log messages [Bug #12027]
- explain that themes which need parsing cannot be stored on the filesystem [Bug #11134]
- normalize usernames (we really need to make sure we normalize everything)
- improved utf8_clean_string, more complete list of homographs and NFKC normalization, also the resulting string is now trimmed
- corrected searching subforums explanation [Bug #12209]

7889 View | Annotate 07/15/2007 03:47 PM acydburn

even more fixes. :o

7884 View | Annotate 07/14/2007 05:44 PM acydburn

a bunch of fixes

7880 View | Annotate 07/13/2007 02:15 PM kellanved

#13315

7874 View | Annotate 07/12/2007 03:02 PM acydburn

allow what is stated within the changelog…

7866 View | Annotate 07/11/2007 05:03 PM acydburn

some fixes

7851 View | Annotate 07/09/2007 07:14 PM kellanved

#13121
#13093

7830 View | Annotate 07/03/2007 05:36 PM acydburn

let’s see if i can break something. :o

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

7787 View | Annotate 06/22/2007 06:47 PM kellanved

Fixing a few things for postgres. Thanks to wagnerch for researching the issue and providing a patch.
#12587

7784 View | Annotate 06/19/2007 08:24 PM acydburn

try to support—in smileys by not using comments within post text display…

7755 View | Annotate 06/14/2007 05:03 PM kellanved

Changing the behaviour of the hideonline permission.

Test the current setting before altering the memory limit during install(Bug #12195)

And another language var.

7749 View | Annotate 06/11/2007 02:12 AM acydburn

my round of bug fixes

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

7695 View | Annotate 05/28/2007 08:46 PM acydburn

do not put mailto: in front of the text if parsing email address

7685 View | Annotate 05/26/2007 04:23 PM naderman

- Send stylesheet in style.php even without a valid session id [Bug #11531]
- request_var should strictly return the requested number of dimensions
- corrected a character mapping in the search indexing character list, people might want to reindex after this change if they use fulltext_native

7681 View | Annotate 05/25/2007 08:00 PM acydburn

fix an improper fix.
- generally, sorry, but direct url parsing after ] will no longer work…
- try to eliminate the most common “bug” for placing urls within the [url=][/url] part (the text). This will trigger make_clickable and render the url invalid (doubled url), moreso if other text is involved too. This is still te case if the url is not written directly after the [url=] part. This is nearly the best we can get within 3.0.x – and every report about [url=], [url] and make_clickable and it’s non-parsing or parsing will be closed with “will not fix”, except it is a critical bug resulting in the non-functioning of the board. We may adjust this later to our own liking while we try to find different ways to face these problems.

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.

7633 View | Annotate 05/18/2007 05:51 PM acydburn

those little things. ;)

7624 View | Annotate 05/17/2007 11:12 PM shs

The Grand Copyright Year Unification… breakdown of years, of re-copyrighting due to major changes:

2000 – phpBB1.0.0 released
2002 – phpBB2.0.0 released & phpBB2.2.x commenced
2005 – phpBB2.2.x is canned with phpBB3.0.0 to succeed it, prosilver also starts development proper
2007 – phpBB3.0.x…

Anyone that so much as whimpers “OMG copyright year is wrong!!!1~”... read: http://en.wikipedia.org/wiki/Copyright

Considering copyright (from the year started) last for at least 50 years, and up to 70 years after the author’s death, even phpBB1.x.x will remain copyrighted well into the 22nd century.

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

7590 View | Annotate 05/15/2007 06:02 PM kellanved

Making logout somewhat more secure.

Language variables, take them while they’re hot. (just one, so be quick)

7588 View | Annotate 05/15/2007 05:46 PM acydburn

#10956

7587 View | Annotate 05/15/2007 05:44 PM acydburn

#10948

7564 View | Annotate 05/14/2007 07:21 AM davidmj

#10883

7561 View | Annotate 05/13/2007 10:09 PM naderman

- use /48 and /64 subnets for IPv6 matching [Bug #9538]

7559 View | Annotate 05/13/2007 06:15 PM naderman

- correctly transfer the search query across search result pages
- changed highlighting so foo* will match foo again [Bug #10031]
- restructured magic urls (functionality still mostly the same), added a check for entities in urls and punctuation at the end of magic urls [Bugs #10639, #10293]
- undid the workaround for urls in quotes, as it’s fixed by the new magic url handling
- allow magic urls enclosed in BBCode [Bug #10319]
- added handling for IPv6 addresses to the IP checking without adding extra options [Bug #9538]
- correctly handle search in search results of search queries with brackets [Bug #10581]
- added information about requirements for auth_apache [Bug #10107]

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

#10617

7497 View | Annotate 05/07/2007 03:19 PM acydburn

fixing some bugs
changed the way we are handling bookmarks. No order_id required, really! Order by last post time as suggested by BartVB.

7485 View | Annotate 05/06/2007 05:31 PM acydburn

#9828, #10545, #10541, #10533, #10529, #10527, #10521, #10503, #10481
- more label fixes
- simpler approach to get input cursor text

7483 View | Annotate 05/06/2007 07:40 AM shs

Stragglers that got missed during ACP prosilver-isationageing.

7456 View | Annotate 05/04/2007 02:30 PM acydburn

added class for disabled options in ACP
E_USER_ERROR now using language keys if available [related to #10445]
UCP/MCP title tags [#10441]
Check $start parameter in viewforum [#10435]
Check for postable forum for moving user posts within users ACP [#10433]
Show error if admin tries to put forums beneath linked forums [related to #10433]
Correctly catch attachments while moving posts [#10431]
language change in install.html [#10425]
Updated AUTHORS file

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)

7439 View | Annotate 04/30/2007 05:35 PM acydburn

#10283 – no style if banning anonymous/ip and using style requiring stylesheet parsing. Also fixes a bug for non-parsed THEME_DATA…

7437 View | Annotate 04/30/2007 04:16 PM acydburn

email preg

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

7428 View | Annotate 04/29/2007 10:56 PM naderman

- * wildcard in a search query should cause \w+ in highlighting, not \w* [Bug #10031]
- display a warning that the search index is not converted from phpBB2 to phpBB3 [Bug #9761]
- forgot to add : to reg_name when deleting userinfo from the url regex constructor [Bug #9868]
- magic urls should work after ”>”
- fixed sorting in mcp_reports/mcp_queue [Bug #9882]
- display a “Report has already been closed” message, if a post is accessed in mcp_reports which has a closed report (might occur if two moderators want to process it at the same time)
- convertor: old forum path should have the trailing slash removed
- subsilver2 will come bundled with phpBB3, but it will not be installed by default (if admins want to use it they can, but it’s not a default option for users)
- prosilver was missing the topic-only mode in mcp_reports/mcp_queue

7424 View | Annotate 04/28/2007 11:16 PM naderman

- magic urls should have class=”postlink”, added class=”postlink-local” for relative magic urls [Bug #9867]
run develop/adjust_magic_urls.php to modify your post/sig/pm contents to use class=”postlink”
- corrected a few bugs in fulltext_mysql stats [Bug #10165]

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

7373 View | Annotate 04/19/2007 01:46 AM davidmj

make it work like viewtopic

7360 View | Annotate 04/15/2007 10:46 PM davidmj
  • empty log message *
7359 View | Annotate 04/15/2007 09:00 PM davidmj

#9836

7355 View | Annotate 04/15/2007 12:59 PM naderman

- m_warn is no longer a local moderation permission
- magic urls should properly use html entities
- speed up posting on big boards, MAX query can be simplified a lot in certain cases
- user IP list should be labelled with “Other users” [Bug #9707]

7354 View | Annotate 04/13/2007 05:33 PM shs

Revert and undoing bug #9736

Won’t fix, at least for 3.0.x. Re-review come 3.2.x and perhaps may be able to get localised prefixes, so something like:

Sv: Re: Antwort:

... doesn’t happen. :P

7345 View | Annotate 04/13/2007 07:03 AM shs

#9736

Quidquid latine dictum sit, altum sonatur… redux! :P

7341 View | Annotate 04/13/2007 06:13 AM shs

#9736

Quidquid latine dictum sit, altum sonatur. :P

7289 View | Annotate 04/06/2007 09:24 PM acydburn

revert this change. It is actually not a bug. We use append_sid on view to let relative links correctly work.

7285 View | Annotate 04/06/2007 03:14 PM acydburn

ticket #9599 – Nils, please review!

7273 View | Annotate 04/03/2007 03:25 PM davidmj

#9578

7245 View | Annotate 03/31/2007 01:58 PM acydburn

#5386 – make new/unread private message variables available (holding the number of said private messages)

7242 View | Annotate 03/30/2007 04:24 PM acydburn

other fixes…

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

some changes/bugfixes

7234 View | Annotate 03/26/2007 06:28 PM acydburn

not doubling notices…

7218 View | Annotate 03/23/2007 01:18 PM acydburn

again, some changes here and there…

7216 View | Annotate 03/22/2007 04:15 PM acydburn

some fixes… hopefully not breaking something. :o

7209 View | Annotate 03/19/2007 04:46 PM acydburn

small redirect fix. ;)

7197 View | Annotate 03/15/2007 12:56 AM dhn2

#24601 ;_;

7164 View | Annotate 03/10/2007 04:05 PM acydburn

#8632

7163 View | Annotate 03/10/2007 03:31 PM acydburn

#8618 + padding store check

7151 View | Annotate 03/08/2007 05:42 PM acydburn

apply correct check for hiding session

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

again… some more fixes.