aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [feature/system-cron] Refactored cron task naming, loading and running.Oleg Pudeyev2011-02-121-3/+4
| | | | | | | | | | | | PHPBB3-9596
* | | [feature/system-cron] WIP on making cron tasks runnable via system cronOleg Pudeyev2011-02-121-32/+4
| | | | | | | | | | | | PHPBB3-9596
* | | Merge branch 'develop-olympus' into developIgor Wiedler2011-02-121-1/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10029] Use $_SERVER['SERVER_PROTOCOL'] for determining HTTP version. [ticket/9805] Setup security repository for developers. [ticket/9805] Move check lower down. [ticket/9805] Better support for already existing repositories. [ticket/9805] Add dry-run option. [ticket/9805] Use getopt(), add a few options, extend show_usage(). [ticket/9805] Script for easily cloning a whole github network.
| * | [ticket/10029] Use $_SERVER['SERVER_PROTOCOL'] for determining HTTP version.Oleg Pudeyev2011-02-091-1/+7
| |/ | | | | | | PHPBB3-10029
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-231-2/+3
|\ \ | |/ | | | | | | * develop-olympus: [ticket/8779] Slow search for 'View unread posts'
| * [ticket/8779] Slow search for 'View unread posts'rxu2011-01-241-2/+3
| | | | | | | | | | | | Adjust SQL query to speedup search for unread posts (thanks naderman). PHPBB3-8779
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-161-1/+1
|\ \ | |/ | | | | | | | | | | | | | | * develop-olympus: [ticket/9859] Remove the years from the copyright statements in docs files. [ticket/9859] Remove the year from the copyright meta tag in docs/*.html [ticket/9859] Remove the meta copyright tag as well. [ticket/9859] Remove the credit line comment from all html files. [ticket/9859] Remove years in credit line from some more files.
| * Merge branch 'ticket/bantu/9859' into develop-olympusNils Adermann2011-01-161-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * ticket/bantu/9859: [ticket/9859] Remove the years from the copyright statements in docs files. [ticket/9859] Remove the year from the copyright meta tag in docs/*.html [ticket/9859] Remove the meta copyright tag as well. [ticket/9859] Remove the credit line comment from all html files. [ticket/9859] Remove years in credit line from some more files.
| | * [ticket/9859] Remove years in credit line from some more files.Andreas Fischer2011-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Standard HTML output now includes: Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; phpBB Group Print output now includes: Powered by phpBB &copy; phpBB Group<br />http://www.phpbb.com/ This also fixes an inconsistency where "phpBB Group" was linked instead of "phpBB". PHPBB3-9859
* | | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-161-19/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9933] Remove empty word check. [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression(). [ticket/9933] Adjust word censor regex for non-unicode mode. Conflicts: phpBB/includes/functions.php Also remove static $unicode_support.
| * | [ticket/9933] Remove empty word check.rxu2011-01-161-5/+0
| | | | | | | | | | | | PHPBB3-9933
| * | [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression().Andreas Fischer2011-01-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Rename $unicode to $unicode_support, pass in $use_unicode defaulting to true. In unit tests we can now pass in $use_unicode as false and also test the code path that is taken when PCRE does not support unicode. PHPBB3-9933
| * | [ticket/9933] Adjust word censor regex for non-unicode mode.rxu2011-01-161-4/+8
| |/ | | | | | | PHPBB3-9933
* | [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-101-40/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a phpbb_config class which simply holds an array and does not persist any data. It implements ArrayAccess, Countable and IteratorAggregate to allow regular use of configuration as if it was still an array. The phpbb_config_db class depends on an instance of the dbal and a cache driver. It obtains the configuration data from cache and database as necessary and persists data to the database. The functions set_config and set_config_count remain for backward compatability but they only call methods on the new config class now instead of directly manipulating the database and cache. PHPBB3-9988
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-01-071-0/+42
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9933] Create unit test for word censor regular expression. [ticket/9933] Move word censor regex into separate function in functions.php [ticket/9933] Wrong handling consecutive multiple asterisks in word censor Conflicts: phpBB/includes/cache.php
| * [ticket/9933] Move word censor regex into separate function in functions.phprxu2011-01-071-0/+42
| | | | | | | | PHPBB3-9933
* | [ticket/9746] Update documentation of phpbb_inet_pton().Andreas Fischer2011-01-031-1/+2
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Ease up phpbb_ip_normalise() function.Andreas Fischer2011-01-031-20/+1
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Added PHP implementation of inet_pton and inet_ntop.Marek A. Ruszczyński2011-01-031-2/+118
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Adding wrapper functions for inet_ntop() and inet_pton().Andreas Fischer2011-01-031-1/+32
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Adding new function phpbb_ip_normalise().Andreas Fischer2011-01-031-0/+53
| | | | | | | | | | | | | | | | | | | | This adds a function that normalises internet protocol addresses. While there should be no problem at all when handling IPv4 addresses, the many different representations of the exact same IPv6 address and webservers mapping IPv4-addresses into the IPv6 space made it necessary to add such a function. PHPBB3-9746
* | [ticket/9574] Add pcre_utf8_support() functionIgor Wiedler2010-12-281-0/+16
| | | | | | | | | | | | | | Refactor the check for PCRE UTF-8 support into a new pcre_utf8_support() function. PHPBB3-9574
* | [ticket/9574] Remove conditional PHP<5.2 codeIgor Wiedler2010-12-281-17/+5
| | | | | | | | | | | | | | There is a large amount of conditional code for PHP < 5.2 that can be removed with phpBB 3.1. PHPBB3-9574
* | [ticket/9574] Drop fallback implementationsIgor Wiedler2010-12-281-101/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | phpBB 3.0 includes fallback implementations for following PHP5+ functions: array_combine str_split stripos htmlspecialchars_decode Since phpBB 3.1 requires PHP 5.2+ these can be dropped. PHPBB3-9574
* | Merge branch 'feature/igorw/request-class' into developAndreas Fischer2010-12-161-9/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | * feature/igorw/request-class: [feature/request-class] Convert some remaining cookies [feature/request-class] Adjust misleading comment [feature/request-class] Remove direct access to _REQUEST in acp_search [feature/request-class] Special case of direct access to _REQUEST
| * | [feature/request-class] Convert some remaining cookiesIgor Wiedler2010-10-171-9/+10
| | | | | | | | | | | | | | | | | | | | | Convert some remaining accesses to cookie to use the request class instead. Thanks to bantu for the note. PHPBB3-9716
* | | Merge branch 'develop-olympus' into developNils Adermann2010-12-131-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9851] "Search new posts" should require login. [task/phpdoc] Added a phpdoc task to the build process [task/phpdoc] Added a configuration file for phpDocumentor. [feature/acm-wincache] Adding caching module for WinCache's User Cache. [ticket/9939] Fix JavaScript error in admin recaptcha template [ticket/9575] Also change 'administrate' to 'administer' in templates [ticket/8736] guest can have 255 chars long username [ticket/9928] Do not link "login to your board" to the "send statistics" page. [ticket/9575] Change 'administrate' to 'administer' [ticket/9921] Adding sample configuration file for the lighttpd webserver. [ticket/9932] Add the Bing bot when converting [ticket/9930] Redirect failes with open_basedir enabled. [ticket/9910] Make sure S_BBCODE_ALLOWED exists when viewing PMs
| * | [ticket/9930] Redirect failes with open_basedir enabled.Joas Schilling2010-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | Open_basedir does not allow file_exists() for "." and directories without a trayling-slash. Therefor we must append it on the check. PHPBB3-9930
* | | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
* | | Merge branch 'develop-olympus' into developAndreas Fischer2010-11-071-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9880] Change "antibot" to "anti-spambot". [ticket/9696] Surpress is_dir() notice when using SQLite with open_basedir. [ticket/9880] Changing the term 'CAPTCHA' to something more obvious. [task/phing-build] Automatically trigger build_diff [task/phing-build] Added a build.xml configuration for phing.
| * | [ticket/9696] Surpress is_dir() notice when using SQLite with open_basedir.Paul Sohier2010-11-071-1/+1
| | | | | | | | | | | | PHPBB3-9696
* | | Merge branch 'develop-olympus' into developIgor Wiedler2010-10-191-1/+1
|\ \ \ | |/ / | | / | |/ |/| | | | | | | | | | | | | | | * develop-olympus: [ticket/9509] Remove section 8 from index [ticket/9509] Close anchor tag in coding guidelines [ticket/9854] Revise docs/auth_api.html to add more methods [ticket/9509] The VCS is now git [ticket/9840] Display view unread posts link for guests. Conflicts: phpBB/docs/coding-guidelines.html
| * [ticket/9840] Display view unread posts link for guests.rxu2010-10-161-1/+1
| | | | | | | | | | | | Display view unread posts link for guests if applicable. PHPBB3-9840
* | [feature/request-class] Fix remember and session hide on loginIgor Wiedler2010-10-051-2/+2
| | | | | | | | | | | | Thanks to SA007. PHPBB3-9716
* | [feature/request-class] Convert any direct access to $_* to use $requestIgor Wiedler2010-09-251-3/+5
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Removal of direct access to some superglobalsIgor Wiedler2010-09-171-10/+2
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Refactor request classes to use autoloadingIgor Wiedler2010-09-171-2/+2
| | | | | | | | | | | | | | | | | | All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
* | [feature/request-class] Refactored request class and wrapper functions.Nils Adermann2010-09-171-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The request class - now makes use of the new type cast helper (dependency injection) - has no static methods anymore. - now has a constructor argument to leave super globals turned on Brought back the set_var function in functions.php. It is now a wrapper around the type cast helper. It creates an instance on the fly. The request_var wrapper function now has an optional last argument to inject the request class instance, rather than abusing the $var_name. PHPBB3-9716
* | [feature/request-class] request_var should return after setting the request ↵Nils Adermann2010-09-171-0/+1
| | | | | | | | | | | | | | | | | | object. If the "dependency injection" mechanism is used there should not be any regular computation of a result value. request_var has to return immediately. PHPBB3-9716
* | [feature/request-class] Adding a request class based on ascraeus-experiment.Nils Adermann2010-09-171-100/+32
| | | | | | | | | | | | | | | | | | | | | | | | The well known request_var function is now a wrapper that calls a method on a phpbb_request object. The class provides additional functionality. It can replace all super globals with special objects that throw errors when being accessed. They still allow isset operations to keep backward compatibility with isset($_POST['var']) checks. The phpbb_request class implements the phpbb_request_interface which is available for easy mocking of input in tests. PHPBB3-9716
* | Merge branch 'develop-olympus' into developIgor Wiedler2010-09-161-3/+6
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9609] Change header() calls setting HTTP status to send_status_line(). [ticket/9613] Slightly update language strings. [ticket/9613] Fix missing database part for unread posts search load switch. [ticket/9613] Implement a load switch for unread posts search feature. [ticket/9785] Allow users to request new passwords when board is disabled. [ticket/9644] Check $mode before calling user_notification() from submit_post()
| * Merge branch 'ticket/bantu/9613' into develop-olympusIgor Wiedler2010-09-161-0/+2
| |\ | | | | | | | | | | | | | | | | | | * ticket/bantu/9613: [ticket/9613] Slightly update language strings. [ticket/9613] Fix missing database part for unread posts search load switch. [ticket/9613] Implement a load switch for unread posts search feature.
| | * [ticket/9613] Implement a load switch for unread posts search feature.rxu2010-08-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Since unread posts search can produce a high server load in certain circumstances, we implement a switch for ACP "Load settings" to have an option to disable this type of search. PHPBB3-9613
| * | [ticket/9609] Change header() calls setting HTTP status to send_status_line().Andreas Fischer2010-09-111-3/+4
| |/ | | | | | | PHPBB3-9609
* | Merge branch 'develop-olympus' into developAndreas Fischer2010-08-281-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9117] Wrong redirection after login. [ticket/9772] Unify permissions for sending email when board_email_form is off [ticket/7369] CPF date should always render the users selection. [ticket/7296] Exporting styles to tar creates corrupted archives. [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
| * Merge branch 'ticket/nickvergessen/9519' into develop-olympusAndreas Fischer2010-08-281-3/+3
| |\ | | | | | | | | | | | | | | | | | | | | | * ticket/nickvergessen/9519: [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable(). [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
| | * [ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().Joas Schilling2010-08-131-3/+3
| | | | | | | | | | | | PHPBB3-9519
* | | Merge branch 'ticket/p/6855' into developAndreas Fischer2010-08-221-6/+6
|\ \ \ | | | | | | | | | | | | | | | | * ticket/p/6855: [ticket/6855] Changed 'seperator' to 'separator'. [Igor Wiedler]
| * | | [ticket/6855] Changed 'seperator' to 'separator'. [Igor Wiedler]Oleg Pudeyev2010-07-061-6/+6
| | | | | | | | | | | | | | | | PHPBB3-6855
* | | | Merge branch 'develop-olympus' into developNils Adermann2010-08-211-18/+177
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: (57 commits) Revert "[ticket/7716] Data too long for column 'message_subject'" [ticket/7716] Data too long for column 'message_subject' [ticket/9780] Adding unit tests for gen_rand_string(). [ticket/9780] Add length check back to gen_rand_string(). [ticket/7972] Copying topics in the MCP now indexes the new topic. [ticket/9782] Board disable radio set on when server load high [ticket/9635] Useless parameter $data['post_time'] in function submit_post. [ticket/9104] Safari does not display box headers correctly in the ACP. [ticket/9777] Print error message in pre-commit hook when php is not installed. [ticket/7716] Data too long for column 'message_subject' [task/git-tools] Ignore git commit message comments [task/git-tools] Adjust the hook to enforce that a ticket is always mentioned [task/git-tools] Vastly expanded commit-msg hook. [task/git-tools] Beginnings of a syntax checking hook. [task/git-tools] Append ticket identifier to commit message prior to editing. [ticket/7332] Redirect users back to post details when performing actions. [ticket/7332] Collapse post details content down to a maximum of 300px heigh [ticket/9771] Remove query string parameters that have no name. [ticket/9760] Remove unrestricted wildcards from search terms. [ticket/9599] Reimplement phpbb_checkdnsrr() function. ... Conflicts: tests/template/template.php