aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | [ticket/9780] Add length check back to gen_rand_string().Joas Schilling2010-08-201-1/+1
| | | | | | | | | | | | | | | | PHPBB3-9780
| * | | Merge branch 'ticket/bantu/9599' into develop-olympusJosh Woody2010-08-191-17/+152
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/bantu/9599: [ticket/9599] Reimplement phpbb_checkdnsrr() function. [ticket/9599] Adding tests for phpbb_checkdnsrr(). [ticket/9599] Adding network function tests.
| | * | | [ticket/9599] Reimplement phpbb_checkdnsrr() function.Andreas Fischer2010-08-031-17/+152
| | | |/ | | |/| | | | | | | | | | | | | | | | | Use gethostbyname(), checkdnsrr(), dns_get_record() or nslookup via exec(). PHPBB3-9599
| * | | Merge branch 'ticket/bantu/9612' into develop-olympusJosh Woody2010-08-191-0/+17
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * ticket/bantu/9612: [ticket/9612] Introduce new function gen_rand_string_friendly().
| | * | | [ticket/9612] Introduce new function gen_rand_string_friendly().Andreas Fischer2010-05-171-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce new function gen_rand_string_friendly() for user friendly random strings like passwords and captcha codes. Strings generated by gen_rand_string_friendly() will not contain the characters 0 and O. By adding a new function we can increase the entropy of strings generated by gen_rand_string() by putting 0 and O back in. PHPBB3-9612
| * | | | [ticket/9771] Remove query string parameters that have no name.Chris Smith2010-08-081-0/+5
| | |/ / | |/| | | | | | | | | | PHPBB3-9771
| * | | [ticket/9715] Better email regexCullen Walsh2010-07-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Using email regex created by James Watts and Francisco Jose Martin Moreno. This passes many more tests for RFC valid emails. PHPBB3-9715
* | | | Merge branch 'develop-olympus' into developAndreas Fischer2010-07-111-1/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9637] Do not cache SQL server version in all cases [ticket/9629] Allow style.php to retrieve its session ID from cookies [ticket/9678] Flash attachments are not displayed in subsilver2. [ticket/9677] Subsilver2 is missing the bbcode-helpline for inline-attachments. [ticket/9650] Do not allow banning the anonymous user by username Conflicts: phpBB/styles/subsilver2/template/attachment.html phpBB/styles/subsilver2/template/posting_buttons.html
| * | [ticket/9629] Allow style.php to retrieve its session ID from cookiesJosh Woody2010-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | style.php takes a session ID to ensure it gets the right language for a user, but that session ID is always passed in GET. This allows change allows the SID to be read from the cookie, and theoretically makes it friendlier for caching engines like Varnish. PHPBB3-9629
* | | [feature/auto-loading] Added autoloader to common and ensured compatabilityNils Adermann2010-07-051-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The autoloader is registered in install without caching, since caching is set up during installation. This provides the same functionality, performance is not a concern during installation anyway. In common.php the autoloader is instantiated after the cache is initialised and is started with the standard cache backend used for other cached values. A few places in the code using class_exists had to be updated to explicitly avoid autoloading, since they are used to check whether a file needs to be included which does not (yet) follow the naming scheme the autoloader follows. PHPBB3-9682
* | Merge branch 'ticket/rxu/9606' into develop-olympusAndreas Fischer2010-06-171-3/+4
|\ \ | | | | | | | | | | | | * ticket/rxu/9606: [ticket/9606] Optimize unread search option.
| * | [ticket/9606] Optimize unread search option.rxu2010-05-171-3/+4
| |/ | | | | | | | | | | Get rid of redundant SQL query in search.php that should increase performance slightly. PHPBB3-9606
* | [ticket/7782] Return 404 HTTP status code for nonexistent attachments.Oleg Pudeyev2010-05-171-1/+1
| | | | | | | | PHPBB3-7782
* | [ticket/7782] Added spaces.Oleg Pudeyev2010-05-171-1/+1
| | | | | | | | PHPBB3-7782
* | [ticket/7782] Added phpdoc comment for send_status_line function.Oleg Pudeyev2010-05-161-0/+20
| | | | | | | | PHPBB3-7782
* | [ticket/7782] Send status line using refactored download/file.php logic.Oleg Pudeyev2010-05-161-1/+22
|/ | | | PHPBB3-7782
* Merge branch 'ticket/p/7782' into develop-olympusNils Adermann2010-05-161-0/+5
|\ | | | | | | | | * ticket/p/7782: [ticket/7782] Send 404 HTTP code when a nonexistent user/forum/topic is requested.
| * [ticket/7782] Send 404 HTTP code when a nonexistent user/forum/topic is ↵Oleg Pudeyev2010-05-161-0/+5
| | | | | | | | | | | | requested. PHPBB3-7782
* | Merge branch 'ticket/aptx/9525' into develop-olympusNils Adermann2010-05-161-1/+1
|\ \ | | | | | | | | | | | | * ticket/aptx/9525: [ticket/9524] IPv6 regex does not match all valid IPv6 addresses starting with ::
| * | [ticket/9524] IPv6 regex does not match all valid IPv6 addresses starting ↵Marek A. Ruszczyński2010-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | with :: :: can replace 1 or more groups (not 2 or more) PHPBB3-9524
* | | Merge branch 'ticket/bantu/9174' into develop-olympusNils Adermann2010-05-141-4/+1
|\ \ \ | | | | | | | | | | | | | | | | * ticket/bantu/9174: [ticket/9173] No longer limit scope of numbers we store in the config table on
| * | | [ticket/9173] No longer limit scope of numbers we store in the config table onAndreas Fischer2010-05-141-4/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | PostgreSQL and Firebird when using set_config_count(). Since we're using a VARCHAR(255) column to store the numbers we have to CAST the varchar string to a type we can do maths on. Using int4 or integer as the type however limits the scope to 4-byte-integer = 32-bit. Using DECIMAL(255, 0) allows the 'full' scope of decimals in varchar(255). PHPBB3-9173
* | | [ticket/9598] checkdnsrr() is now available on Windows with PHP 5.3 or ↵Andreas Fischer2010-05-141-11/+7
|/ / | | | | | | | | | | later. Change if block order to always call checkdnsrr() if the function is available. PHPBB3-9598
* | [bug/58465] The redirect hidden field is now XHTML conformU-H-PC\H2010-03-281-1/+1
| | | | | | | | The result of build_url was falsely un-entitized.
* | Merge branch 'bug/jellydoughnut/56965' into develop-olympusNils Adermann2010-03-261-42/+48
|\ \ | | | | | | | | | | | | * bug/jellydoughnut/56965: [bug/56965] Redirect fails with directory traversal
| * | [bug/56965] Redirect fails with directory traversalJosh Woody2010-03-221-42/+48
| |/ | | | | | | Correct invalid r10536 with a boolean flag. Note that this fix for the bug will not actually correct the redirects, it will only prevent phpBB from redirecting outside $phpbb_root_path when redirect()'s third argument is not provided.
* | [bug/58685] Correct spelling errors in append_sid() comments.Chris Smith2010-03-181-2/+2
| |
* | [bug/51555] proposed fix for bug #51555Igor Wiedler2010-03-061-1/+1
|/
* Bug #56965 - Allow redirect() to redirect across directories.Josh Woody2010-02-251-0/+13
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10536 89ea8834-ac86-4346-8a33-228a782c2dd0
* General errors can't be logged if there isn't a database connection, ↵Chris Smith2010-02-221-1/+1
| | | | | | introduced in r9924 #57975 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10518 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix Bug #57755 - Make user_email_hash() function independent from system's ↵Andreas Fischer2010-02-181-2/+2
| | | | | | architecture. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10499 89ea8834-ac86-4346-8a33-228a782c2dd0
* Bug #57345 - No longer return the character O in generated random strings ↵Andreas Fischer2010-02-071-1/+1
| | | | | | and passwords. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10480 89ea8834-ac86-4346-8a33-228a782c2dd0
* Trigger error right away if user has exceeded login attempts instead of ↵Andreas Fischer2010-01-201-0/+5
| | | | | | asking for the authentication data over and over again without accepting it even if it is correct. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10432 89ea8834-ac86-4346-8a33-228a782c2dd0
* [Feature] Ability to use HTTP authentication in ATOM feeds by passing the ↵Andreas Fischer2010-01-191-0/+97
| | | | | | GET parameter auth=http git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10430 89ea8834-ac86-4346-8a33-228a782c2dd0
* Integrate active topics feed. Some language adjustments and rearrangements.Andreas Fischer2009-12-271-1/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10382 89ea8834-ac86-4346-8a33-228a782c2dd0
* Add ability to disable overall (aka board-wide) feed.Andreas Fischer2009-12-221-0/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10363 89ea8834-ac86-4346-8a33-228a782c2dd0
* whitespacesHenry Sudhof2009-12-131-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10335 89ea8834-ac86-4346-8a33-228a782c2dd0
* #54145 - move redirect parameter back to POST to avoid mod_security triggersHenry Sudhof2009-12-131-1/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10332 89ea8834-ac86-4346-8a33-228a782c2dd0
* Restore user language choice to compiled stylesheets. Broken by r10008 #54035Chris Smith2009-12-111-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10319 89ea8834-ac86-4346-8a33-228a782c2dd0
* [Fix] Force full date for board online record date.Joas Schilling2009-11-141-6/+2
| | | | | | Authorised by: bantu git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10266 89ea8834-ac86-4346-8a33-228a782c2dd0
* remove unnecessary query parts... thanks to asinshesq for pointing it out.Meik Sievertsen2009-09-201-6/+3
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10172 89ea8834-ac86-4346-8a33-228a782c2dd0
* move up the feed code because MODs often use this location which results in ↵Meik Sievertsen2009-09-161-10/+10
| | | | | | more unneccessary conflicts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10149 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix login for passworded forums - Bug #51265Meik Sievertsen2009-09-151-0/+1
| | | | | | Was a regression from r10067 for Bug #50285 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10147 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #51075 introduced in r10121.Andreas Fischer2009-09-101-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10129 89ea8834-ac86-4346-8a33-228a782c2dd0
* Further adjust unread tracking query, should work now for user last mark ↵Meik Sievertsen2009-09-081-6/+14
| | | | | | times less than forum/topic mark times. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10121 89ea8834-ac86-4346-8a33-228a782c2dd0
* Rename get_unread_topics_list() to get_unread_topics().Andreas Fischer2009-09-081-14/+16
| | | | | | | Cleanup: Remove some stuff we no longer need. Related to report #46765 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10120 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix retrieval of unread topics list. The old queries were too heavy, using ↵Meik Sievertsen2009-09-071-79/+25
| | | | | | temporary and filesort and actually only based on topics being retrieved before. Instead now use one query which is also a lot faster and yields the same results. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10118 89ea8834-ac86-4346-8a33-228a782c2dd0
* Adjustments to r10005: Use request_var() to get cookie data.Andreas Fischer2009-09-071-13/+10
| | | | | | | Some more adjustments to get_unread_topics_list() Related to report: #46765 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10113 89ea8834-ac86-4346-8a33-228a782c2dd0
* #50675 ; also don't reset the captcha on loginHenry Sudhof2009-09-031-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10094 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed bugs #43145, #44375, #44415 and #43045Jim Wigginton2009-09-021-1/+1
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10088 89ea8834-ac86-4346-8a33-228a782c2dd0