aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/10412] Replace memory_get_usage with memory_get_peak_usageNils Adermann2011-10-141-9/+0
| | | | PHPBB3-10412
* Merge remote-tracking branch 'github-p/feature/template-engine' into developNils Adermann2011-08-131-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * github-p/feature/template-engine: (87 commits) [feature/template-engine] Delete _get_locator function. [feature/template-engine] Clean up template locator usage in bbcode. [feature/template-engine] Need to call set_template on template. [feature/template-engine] Update installer for template engine changes. [feature/template-engine] Dependency inject locator into template. [feature/template-engine] Delete useless code from set_template. [feature/template-engine] Delete no longer used $template_filename property. [feature/template-engine] Delete useless $template globalization. [feature/template-engine] Use template engine class in bbcode class. [feature/template-engine] Corrected an error message in template locator. [feature/template-engine] Remaining documentation. [feature/template-engine] More documentation for template class. [feature/template-engine] Create load_and_render to reduce code duplication. [feature/template-engine] Get rid of orig_tpl_* in template engine. [feature/template-engine] Delete $style_name param from locator's set_custom_template. [feature/template-engine] Add constructor to template locator. [feature/template-engine] Factor template locator out of template class. [feature/template-engine] Delete $files_template property. [feature/template-engine] Rename is_absolute to phpbb_is_absolute. [feature/template-engine] Test template DEFINE statements across files ... Conflicts: .gitignore phpBB/includes/template.php
| * [feature/template-engine] Dependency inject locator into template.Oleg Pudeyev2011-08-091-1/+2
| | | | | | | | PHPBB3-9726
| * [feature/template-engine] Move template.php to includes/templateIgor Wiedler2011-07-101-1/+0
| | | | | | | | | | | | This allows making use of autoloading. PHPBB3-9726
| * [feature/template-engine] Replaced globals with dependency injection.Oleg Pudeyev2011-05-121-1/+2
| | | | | | | | PHPBB3-9726
| * [feature/template-engine] Delete template class, use phpbb_template instead.Oleg Pudeyev2011-05-041-1/+1
| | | | | | | | PHPBB3-9726
* | [ticket/7090] Update documented minimum PHP version to 5.2.0Igor Wiedler2011-07-131-1/+1
| | | | | | | | PHPBB3-7090
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-06-151-106/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10218] Prevent startime from being overwritten by deregister_globals() [ticket/10218] Moving global deregistration, etc. to startup.php Conflicts: phpBB/install/database_update.php
| * | [ticket/10218] Moving global deregistration, etc. to startup.phpYuriy Rusko2011-06-141-106/+1
| | | | | | | | | | | | | | | | | | | | | Because startup.php deletes all variables, the constants in database_update are used to preserve settings at the top. PHPBB3-10218
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-06-031-1/+6
|\ \ \ | |/ / | | | | | | | | | * develop-olympus: [ticket/10149] Skip foreach over GLOBALS cookie values if cookie is scalar
| * | [ticket/10149] Skip foreach over GLOBALS cookie values if cookie is scalarNils Adermann2011-06-031-1/+6
| | | | | | | | | | | | PHPBB3-10149
* | | Merge branch 'develop-olympus' into developOleg Pudeyev2011-05-101-1/+1
|\ \ \ | |/ / | | / | |/ |/| * develop-olympus: [ticket/10126] Use binary "and not" instead of binary "xor" in error_reporting.
| * [ticket/10126] Use binary "and not" instead of binary "xor" in error_reporting.Andreas Fischer2011-05-111-1/+1
| | | | | | | | | | | | Make what we want to achieve clear by using "and not" instead of "xor". PHPBB3-10126
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-03-121-5/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10046] Do not link bots to cron.php. [ticket/10046] No longer change $phpbb_root_path to an absolute path for cron. [ticket/10046] Call flush() in cron.php [ticket/10046] Remove calls to register_shutdown_function() in cron.php Conflicts: phpBB/cron.php phpBB/includes/functions.php
| * [ticket/10046] No longer change $phpbb_root_path to an absolute path for cron.Andreas Fischer2011-03-121-5/+0
| | | | | | | | | | | | | | This is no longer required because we no longer call register_shutdown_function() which made this change necessary. PHPBB3-10046
* | [feature/system-cron] Cache cron's task names.Nils Adermann2011-02-121-1/+1
| | | | | | | | | | | | | | | | Instead of using a path relative to phpbb_root_path the path to the task directory is directly passed to the cron manager. Dummy tasks are now in the tests directory directly. PHPBB3-9596
* | [feature/system-cron] Use a RecursiveDirectoryIterator instead of readdir.Nils Adermann2011-02-121-1/+1
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] add phpbb_ prefix to all class namesIgor Wiedler2011-02-121-1/+1
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] remove more includes, adjust pathIgor Wiedler2011-02-121-1/+0
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Fixes to make cron actually run.Oleg Pudeyev2011-02-121-1/+1
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Updated includes after moving files.Oleg Pudeyev2011-02-121-1/+1
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] WIP on making cron tasks runnable via system cronOleg Pudeyev2011-02-121-0/+6
| | | | | | | | PHPBB3-9596
* | [task/config-class] Do not create multiple cache driver instances.Nils Adermann2011-01-121-2/+2
| | | | | | | | | | | | | | Retrieve the driver from the service instead of creating new ones over and over from the factory. PHPBB3-9988
* | [task/config-class] Always specify the config table to use.Nils Adermann2011-01-121-1/+1
| | | | | | | | PHPBB3-9988
* | [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-091-3/+3
| | | | | | | | PHPBB3-9983
* | [task/acm-refactor] Refactor the ACM classes to have a common interface.Igor Wiedler2011-01-091-6/+6
| | | | | | | | | | | | | | | | | | | | They are now refered to as cache drivers rather than ACM classes. The additional utility functions from the original cache class have been moved to the cache_service. The class loader is now instantiated without a cache instance and passed one as soon as it is constructed to allow autoloading the cache classes. PHPBB3-9983
* | [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 developIgor Wiedler2010-10-171-4/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/7332] Fix post details expand link rendering on Webkit. [ticket/9162] Prevent notice on unset poll title [ticket/7417] Also focus search keywords and username in subsilver2. [ticket/7417] Focus username field when prosilver login page is loaded. [ticket/7417] Focus search keywords field when prosilver search page is loaded. [ticket/9841] Change "Save" to "Save draft", "Load" to "Load draft". [ticket/9664] Resolve conflict with accesskey="t", change addlitsitem to "y". [ticket/7538] Limit user_login_attempts to prevent SQL errors. [ticket/9848] Add avatars, attachments and store files to .gitignore. [ticket/9822] Correct some style related ACP explain statements. [ticket/9698] Add .htaccess to the includes subdirectory. [ticket/9830] Redirect to install directly when config.php does not exist. [ticket/9816] Remove config.php from repository [ticket/9810] Hide "Select All" of code bbcode on print page
| * [ticket/9830] Redirect to install directly when config.php does not exist.Igor Wiedler2010-09-161-4/+2
| | | | | | | | PHPBB3-9830
| * PHP 5.3 compatibility: Disable E_DEPRECATED on startup to keep ↵Nils Adermann2009-12-061-2/+6
| | | | | | | | | | | | set_magic_quotes_runtime(0) quiet. [Bug #54495] git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10299 89ea8834-ac86-4346-8a33-228a782c2dd0
| * Since dl() is deprecated and disabled by default in PHP 5.3, calling it will ↵Andreas Fischer2009-12-041-1/+2
| | | | | | | | | | | | result in a fatal error for an undefined function and because of the error suppression in a blank page. Checking if dl() exists should allow most boards to continue right away. - Bug #54665 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10298 89ea8834-ac86-4346-8a33-228a782c2dd0
| * PHP 5.3 compatibility.Marek A. R2008-08-151-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8760 89ea8834-ac86-4346-8a33-228a782c2dd0
| * #19955Meik Sievertsen2008-01-291-2/+6
| | | | | | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8348 89ea8834-ac86-4346-8a33-228a782c2dd0
* | [feature/request-class] Remove duplicate class loader from common.phpIgor Wiedler2010-10-131-3/+0
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Adjust some trailing newlinesIgor Wiedler2010-09-271-1/+1
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Refactor request classes to use autoloadingIgor Wiedler2010-09-171-7/+8
| | | | | | | | | | | | | | | | | | 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] Request class test now uses a type cast helper mock.Nils Adermann2010-09-171-2/+4
| | | | | | | | | | | | | | | | Removed the dependency of the request class test on having an actual phpbb_type_cast_helper instance, by replacing it with an object mocking the phpbb_type_cast_helper_interface. PHPBB3-9716
* | [feature/request-class] Instantiate a global request class instance.Nils Adermann2010-09-171-1/+8
| | | | | | | | | | | | | | | | | | It should at all cost be avoided to rely on this global variable. Instead either use the request_var method (deprecated) or pass the instance to your function as a parameter or to your object as a contructor argument or through a setter function. PHPBB3-9716
* | [feature/auto-loading] Added autoloader to common and ensured compatabilityNils Adermann2010-07-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 changes from 3.0.x branchMeik Sievertsen2009-12-161-3/+8
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@10342 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Copy 3.0.x branch to trunkMeik Sievertsen2009-10-041-0/+227
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@10211 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Move trunk/phpBB to old_trunk/phpBB Meik Sievertsen2009-10-041-105/+0
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@10210 89ea8834-ac86-4346-8a33-228a782c2dd0
* | i am not sure if people will like the config layout i test here... it ↵Meik Sievertsen2009-01-201-5/+5
| | | | | | | | | | | | requires the framework at least being present git-svn-id: file:///svn/phpbb/trunk@9281 89ea8834-ac86-4346-8a33-228a782c2dd0
* | erm, revert last commit and add relevant comment. ;) This actually allows us ↵Meik Sievertsen2009-01-131-2/+2
| | | | | | | | | | | | to do far more... for example call a config file which was non-existent before. git-svn-id: file:///svn/phpbb/trunk@9261 89ea8834-ac86-4346-8a33-228a782c2dd0
* | in case we do: include(bootstrap) ... include(common)Meik Sievertsen2009-01-131-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9260 89ea8834-ac86-4346-8a33-228a782c2dd0
* | fix some functionsMeik Sievertsen2008-12-301-3/+3
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9245 89ea8834-ac86-4346-8a33-228a782c2dd0
* | implement new phpbb::$acm object, replacing $cache globalMeik Sievertsen2008-12-281-1/+1
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9240 89ea8834-ac86-4346-8a33-228a782c2dd0
* | document plugin-supportMeik Sievertsen2008-12-281-1/+1
| | | | | | | | | | | | | | move language path declaration to object instantiation git-svn-id: file:///svn/phpbb/trunk@9239 89ea8834-ac86-4346-8a33-228a782c2dd0
* | Add core bootstrap. Also change common.php to use it.Meik Sievertsen2008-12-261-153/+36
| | | | | | | | git-svn-id: file:///svn/phpbb/trunk@9231 89ea8834-ac86-4346-8a33-228a782c2dd0