aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'github-nickvergessen/feature/sqlite3' into ↵Nils Adermann2014-05-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-ascraeus * github-nickvergessen/feature/sqlite3: [feature/sqlite3] Add sqlite3 database to .gitignore [feature/sqlite3] Use SQLite3 by default [feature/sqlite3] Remove invalid comment [feature/sqlite3] Remove unneeded ORDER BY type from sqlite_master queries [feature/sqlite3] Correctly recreate indexes when recreating a table [feature/sqlite3] Fix sql_index_drop() for sqlite3 [feature/sqlite3] Remove trailing comma from column list [feature/sqlite3] Update docblocks and function visibility [feature/sqlite3] Add support for SQLite 3
| * [feature/sqlite3] Add support for SQLite 3Patrick Webster2014-05-021-1/+1
| | | | | | | | | | | | | | Minimum version requirement is 3.6.15 as that's what ships with PHP 5.3.0 when support for SQLite 3 was added. PHPBB3-9728
* | Merge remote-tracking branch 'github-prototech/ticket/11508' into ↵Nils Adermann2014-05-021-57/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-ascraeus * github-prototech/ticket/11508: [ticket/11508] Fix build_url test. [ticket/11508] Add functional test for jumpbox. [ticket/11508] Use $phpbb_path_helper. [ticket/11508] Allow equal sign in parameter value. [ticket/11508] Remove unnecessary implode. [ticket/11508] Remove unnecessary isset check. [ticket/11508] Fix build_url test. [ticket/11508] Curly brace should be on its own line... [ticket/11508] The question mark is expected even if there are no parameters. [ticket/11508] Add tests. [ticket/11508] Do not add the '?' unless there are parameters. [ticket/11508] Change separator parameter to a simple true|false $is_amp. [ticket/11508] Move helper functions to path_helper class. [ticket/11508] Move the stripping param code to separate function as well. [ticket/11508] Build the jumpbox hidden fields using the _form action_ [ticket/11508] Split parts of build_url() into reusable functions.
| * [ticket/11508] Use $phpbb_path_helper.Cesar G2014-04-221-5/+4
| | | | | | | | PHPBB3-11508
| * [ticket/11508] The question mark is expected even if there are no parameters.Cesar G2014-04-221-1/+1
| | | | | | | | PHPBB3-11508
| * [ticket/11508] Change separator parameter to a simple true|false $is_amp.Cesar G2014-04-221-1/+1
| | | | | | | | PHPBB3-11508
| * [ticket/11508] Move helper functions to path_helper class.Cesar G2014-04-221-116/+7
| | | | | | | | PHPBB3-11508
| * [ticket/11508] Move the stripping param code to separate function as well.Cesar G2014-04-221-19/+37
| | | | | | | | PHPBB3-11508
| * [ticket/11508] Build the jumpbox hidden fields using the _form action_Cesar G2014-04-221-3/+2
| | | | | | | | PHPBB3-11508
| * [ticket/11508] Split parts of build_url() into reusable functions.Cesar G2014-04-221-28/+72
| | | | | | | | PHPBB3-11508
* | Merge remote-tracking branch 'github-nickvergessen/ticket/12273' into ↵Nils Adermann2014-05-021-4/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-ascraeus * github-nickvergessen/ticket/12273: (55 commits) [ticket/12273] Move $extension to constructor so the path is always set [ticket/12273] Find events.md relative from the path not the phpbb root [ticket/12273] Do not look in extensions docs/ and tests/ directory [ticket/12273] Also check file for adm "Location:" events [ticket/12273] Do not allow template events in non-html files [ticket/12273] Fix return description [ticket/12273] Update exporter to allow specifying an extension [ticket/12273] Allow to filter events for extensions [ticket/12273] Remove old parameter from function call [ticket/12273] Fix table header for adm events [ticket/12273] Add root path to recursive_event_filter_iterator [ticket/12273] Fix missing classes in export_events_for_wiki.php [ticket/12273] Use RecursiveDirectoryIterator with filter in php_exporter [ticket/12273] Use RecursiveDirectoryIterator in md_exporter [ticket/12273] Fix doc blocks [ticket/12273] Do not allow 3.1-A1 for template events [ticket/12273] Sort arguments alphabetically before exporting [ticket/12273] Do not allow 3.1-A1 version [ticket/12273] Update since version to 3.1.0-a* style [ticket/12273] Update existing events ...
| * | [ticket/12273] Update since version to 3.1.0-a* styleJoas Schilling2014-04-251-4/+4
| | | | | | | | | | | | PHPBB3-12273
* | | [ticket/12458] Apply Squiz.WhiteSpace.SuperfluousWhitespace.* to legacy code.Andreas Fischer2014-04-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | * There MUST NOT be trailing whitespace at the end of lines. * There MUST NOT be whitespace before the first content of a file. * There MUST NOT be whitespace after the last content of a file. * Functions MUST NOT contain multiple empty lines in a row. PHPBB3-12458
* | | [ticket/12199] Move deprecated functions to functions_compatibility.phpNicofuma2014-04-261-18/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently 13 functions are marked as deprecated: functions.php: function set_var() function request_var() function set_config() function set_config_count() function tz_select() function add_log() functions_admin: function cache_moderators() function update_foes() functions_compatibility: function get_user_avatar() function phpbb_hash() function phpbb_check_hash() function phpbb_clean_path() functions_install: function get_tables() 8 of them are still used in the core: add_log Used in many places (~198 calls) get_tables Used in install\install_convert::get_convert_settings and functions_install.php\connect_check_db get_user_avatar Used in phpbb\user_loader:get_avatar phpbb_hash Used in phpbb\db\migration\data\v30x\release_3_0_5_rc1 request_var Used quite everywhere (~997 calls) set_config Used in many places (~129 calls) set_config_count Used in a few places (~37 calls) set_var Used by phpbb_http_login and phpbb\auth\provider\apache::autologin PHPBB3-12199
* | Merge pull request #2248 from Elsensee/ticket/12193Joas Schilling2014-04-221-0/+10
|\ \ | |/ |/| | | | | | | | | [ticket/12193] Fix broken HTML if SQL error occurs during migration * Elsensee/ticket/12193: [ticket/12193] Fix broken HTML if SQL error occurs during migration
| * [ticket/12193] Fix broken HTML if SQL error occurs during migrationOliver Schramm2014-04-191-0/+10
| | | | | | | | PHPBB3-12193
* | [ticket/12358] Correctly check and change the redirect url for ajax requestsJoas Schilling2014-04-071-3/+3
|/ | | | PHPBB3-12358
* Merge remote-tracking branch 'paybas/ticket/12339' into develop-ascraeusJoas Schilling2014-04-041-0/+16
|\ | | | | | | | | | | | | * paybas/ticket/12339: [ticket/12339] removed return var [ticket/12339] more complete params and updated _since version [ticket/12339] Add Event core.page_header_after
| * [ticket/12339] removed return varPayBas2014-04-041-3/+2
| | | | | | | | | | | | need to learn more about events... evidently PHPBB3-12339
| * [ticket/12339] more complete params and updated _since versionPayBas2014-04-041-3/+9
| | | | | | | | PHPBB3-12339
| * [ticket/12339] Add Event core.page_header_afterPayBas2014-04-011-0/+11
| | | | | | | | PHPBB3-12339
* | Merge remote-tracking branch 'crizz0/ticket/9758' into develop-ascraeusJoas Schilling2014-03-311-1/+90
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * crizz0/ticket/9758: [ticket/9758] Clickable avatar in header and renamed class for avatar-img [ticket/9758] Remove unnessary if-question for include functions_display [ticket/9758] Slims the line 4775 in includes/functions.php [ticket/9758] Adds id and changes filter to fix travis CI test [ticket/9758] Removed the needless space after first ENDIF [ticket/9758] Adding impr. for overall_header display of avatar and username [ticket/9758] Fixed bug in mcp_warn.php [ticket/9758] Optimises the html code of avatar image in header [ticket/9758] Error because of missing functions_display.php fixed [ticket/9758] Removed useless if-conditions to include functions.php [ticket/9758] Changes class name of new "span" in overall_header.html [ticket/9758] Adds global template variable CURRENT_USER_AVATAR
| * | [ticket/9758] Clickable avatar in header and renamed class for avatar-imgCrizzo2014-03-301-0/+1
| | | | | | | | | | | | PHPBB3-9758
| * | [ticket/9758] Slims the line 4775 in includes/functions.phpCrizzo2014-03-281-1/+1
| | | | | | | | | | | | PHPBB3-9758
| * | [ticket/9758] Adding impr. for overall_header display of avatar and usernameCrizzo2014-03-281-1/+2
| | | | | | | | | | | | PHPBB3-9758
| * | [ticket/9758] Adds global template variable CURRENT_USER_AVATARCrizzo2014-03-281-0/+87
| | | | | | | | | | | | PHPBB3-9758
* | | [ticket/11336] Changes "leaders"-mode to "team"-mode and so in test-fileCrizzo2014-03-281-1/+1
|/ / | | | | | | PHPBB3-11336
* | [ticket/11360] Change second parameter in page_header functiongeetakshi2014-03-191-5/+5
|/ | | | PHPBB3-11360
* Merge branch 'develop-olympus' into developJoas Schilling2014-03-141-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/12202] Use an array in the data provider instead of exploding manually [ticket/12202] Can't call htmlspecialchars before checking for quotes [ticket/12202] Fix tests [ticket/12202] Test for parse_cfg_file [ticket/12202] Use copyright symbol in style.cfg files [ticket/12202] Apply htmlspecialchars to style.cfg data Conflicts: phpBB/styles/prosilver/style.cfg phpBB/styles/subsilver2/style.cfg
| * [ticket/12202] Can't call htmlspecialchars before checking for quotesNathaniel Guse2014-03-091-1/+5
| | | | | | | | PHPBB3-12202
| * [ticket/12202] Apply htmlspecialchars to style.cfg dataNathan Guse2014-03-091-3/+3
| | | | | | | | PHPBB3-12202
* | Merge pull request #2104 from nickvergessen/ticket/12261Nathan Guse2014-03-121-2/+8
|\ \ | | | | | | [ticket/12261] Remove web root path from login redirect url
| * | [ticket/12261] Add a functional test for redirect after using login_box()Joas Schilling2014-03-101-3/+1
| | | | | | | | | | | | PHPBB3-12261
| * | [ticket/12261] Remove web root path from login redirect urlJoas Schilling2014-03-101-2/+10
| | | | | | | | | | | | | | | | | | | | | The redirect url must be relative to the ucp.php and not relative to the current page. PHPBB3-12261
* | | [ticket/12250] Remove deprecated phpbb_clean_path functionVarun Agrawal2014-03-061-40/+0
| | | | | | | | | | | | | | | | | | | | | The function phpbb_clean_path() in functions.php is deprecated as is not used used 3.0/3.1 core PHPBB3-12250
* | | [ticket/12239] Move deprecated passwords functions to compatibility fileMarc Alexander2014-03-061-35/+0
|/ / | | | | | | | | | | | | | | The deprecated passwords functions are no longer used in the core and have been replaced with the passwords manager. Therefore, the functions are moved to the functions_compatibility file. PHPBB3-12239
* | Merge pull request #1716 from marc1706/feature/passwordsNils Adermann2014-02-021-181/+17
|\ \ | | | | | | [feature/passwords] Add password hashing manager with support for newer hashing algorithms
| * | [feature/passwords] Correct docblock of phpbb_hash() functionMarc Alexander2013-12-291-1/+1
| | | | | | | | | | | | PHPBB3-11610
| * | Merge branch 'develop' of https://github.com/phpbb/phpbb into feature/passwordsMarc Alexander2013-12-291-258/+18
| |\ \ | | | | | | | | | | | | | | | | Conflicts: phpBB/config/services.yml
| * | | [feature/passwords] Use passwords.manager service in login_forum_box()Marc Alexander2013-10-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally, unused variables have been removed from the globals and the request class is now used instead of the request_var() function. PHPBB3-11610
| * | | [feature/passwords] Remove obsolete hashing functions from functions.phpMarc Alexander2013-10-111-110/+0
| | | | | | | | | | | | | | | | | | | | | | | | These hashing functions have been worked into the salted md5 driver. PHPBB3-11610
| * | | [feature/passwords] Mark old hashing functions as deprecatedMarc Alexander2013-10-111-24/+6
| | | | | | | | | | | | | | | | PHPBB3-11610
| * | | Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/passwordsMarc Alexander2013-10-031-13/+14
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: phpBB/includes/functions.php
| * | | | [feature/passwords] Use passwords manager in phpBB hash functionsMarc Alexander2013-10-021-37/+6
| | | | | | | | | | | | | | | | | | | | PHPBB3-11610
* | | | | Merge remote-tracking branch 'Marc/ticket/11997' into developJoas Schilling2014-01-081-63/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Marc/ticket/11997: (23 commits) [ticket/11997] Use functional test cases that should always work [ticket/11997] Fix redirect tests for mod rewrite [ticket/11997] Add user's page dir to redirect path and fix unit tests for it [ticket/11997] Remove obsolete function get_controller_redirect_url() [ticket/11997] Use path_helper in in foo/bar extension for redirect URLs [ticket/11997] Add remove_web_root_path() in order to prevent incorrect URLs [ticket/11997] Do not check if file or dir we redirect to exist [ticket/11997] Modifiy tests after adding path_helper clean_url method [ticket/11997] Add clean_url() method to path_helper [ticket/11997] Allow redirects to parent folders like previously [ticket/11997] Move expected redirect returns to controller and output to HTML [ticket/11997] Fix tests for path_helper's get_controller_redirect_url() [ticket/11997] Use get_controller_redirect_url() in redirect() function [ticket/11997] Add method for controller redirect URLs to path helper [ticket/11997] Undo changes to phpbb_own_realpath() [ticket/11997] Remove obsolete failover_flag in function redirect() [ticket/11997] Add functional test for redirects in controller [ticket/11997] Fix missing global [ticket/11997] Fix redirects from inside controllers [ticket/11997] Use $phpbb_filesystem->clean_path() for proper redirect paths ...
| * | | | | [ticket/11997] Add user's page dir to redirect path and fix unit tests for itMarc Alexander2013-12-281-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The user's page directory needs to be added to the redirect URL for proper redirects outside of the forum root. Fix the unit tests accordingly. PHPBB3-11997
| * | | | | [ticket/11997] Add remove_web_root_path() in order to prevent incorrect URLsMarc Alexander2013-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a call to this method to the redirect function will make sure that we do not end up with incorrect URLs after using append_sid(). PHPBB3-11997
| * | | | | [ticket/11997] Do not check if file or dir we redirect to existMarc Alexander2013-12-271-75/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The redirect function will now properly redirect to where we want it to. It will no longer try to check if the file or directory we redirect to exist. This will ensure compatibility with the new routes. PHPBB3-11997
| * | | | | [ticket/11997] Add clean_url() method to path_helperMarc Alexander2013-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method will get rid of unnecessary . and .. in URLs. PHPBB3-11997
| * | | | | [ticket/11997] Allow redirects to parent folders like previouslyMarc Alexander2013-12-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redirects to parent folders were possible with the previous redirect function. This change will allow these redirects again. PHPBB3-11997