aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'ticket/p/7782' into develop-olympusNils Adermann2010-05-161-0/+5
|\
| * [ticket/7782] Send 404 HTTP code when a nonexistent user/forum/topic is reque...Oleg Pudeyev2010-05-161-0/+5
* | Merge branch 'ticket/aptx/9525' into develop-olympusNils Adermann2010-05-161-1/+1
|\ \
| * | [ticket/9524] IPv6 regex does not match all valid IPv6 addresses starting wit...Marek A. RuszczyƄski2010-05-161-1/+1
* | | Merge branch 'ticket/bantu/9174' into develop-olympusNils Adermann2010-05-141-4/+1
|\ \ \
| * | | [ticket/9173] No longer limit scope of numbers we store in the config table onAndreas Fischer2010-05-141-4/+1
| | |/ | |/|
* | | [ticket/9598] checkdnsrr() is now available on Windows with PHP 5.3 or later....Andreas Fischer2010-05-141-11/+7
|/ /
* | [bug/58465] The redirect hidden field is now XHTML conformU-H-PC\H2010-03-281-1/+1
* | Merge branch 'bug/jellydoughnut/56965' into develop-olympusNils Adermann2010-03-261-42/+48
|\ \
| * | [bug/56965] Redirect fails with directory traversalJosh Woody2010-03-221-42/+48
| |/
* | [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
* General errors can't be logged if there isn't a database connection, introduc...Chris Smith2010-02-221-1/+1
* Fix Bug #57755 - Make user_email_hash() function independent from system's ar...Andreas Fischer2010-02-181-2/+2
* Bug #57345 - No longer return the character O in generated random strings and...Andreas Fischer2010-02-071-1/+1
* Trigger error right away if user has exceeded login attempts instead of askin...Andreas Fischer2010-01-201-0/+5
* [Feature] Ability to use HTTP authentication in ATOM feeds by passing the GET...Andreas Fischer2010-01-191-0/+97
* Integrate active topics feed. Some language adjustments and rearrangements.Andreas Fischer2009-12-271-1/+2
* Add ability to disable overall (aka board-wide) feed.Andreas Fischer2009-12-221-0/+1
* whitespacesHenry Sudhof2009-12-131-1/+1
* #54145 - move redirect parameter back to POST to avoid mod_security triggersHenry Sudhof2009-12-131-1/+2
* Restore user language choice to compiled stylesheets. Broken by r10008 #54035Chris Smith2009-12-111-1/+1
* [Fix] Force full date for board online record date.Joas Schilling2009-11-141-6/+2
* remove unnecessary query parts... thanks to asinshesq for pointing it out.Meik Sievertsen2009-09-201-6/+3
* move up the feed code because MODs often use this location which results in m...Meik Sievertsen2009-09-161-10/+10
* Fix login for passworded forums - Bug #51265Meik Sievertsen2009-09-151-0/+1
* Fix bug #51075 introduced in r10121.Andreas Fischer2009-09-101-2/+2
* Further adjust unread tracking query, should work now for user last mark time...Meik Sievertsen2009-09-081-6/+14
* Rename get_unread_topics_list() to get_unread_topics().Andreas Fischer2009-09-081-14/+16
* Fix retrieval of unread topics list. The old queries were too heavy, using te...Meik Sievertsen2009-09-071-79/+25
* Adjustments to r10005: Use request_var() to get cookie data.Andreas Fischer2009-09-071-13/+10
* #50675 ; also don't reset the captcha on loginHenry Sudhof2009-09-031-2/+2
* Fixed bugs #43145, #44375, #44415 and #43045Jim Wigginton2009-09-021-1/+1
* Save some calls here, since page_footer(true) gets called quite often.Andreas Fischer2009-09-011-7/+8
* Only embed cron.php if there is no cron lock present to reduce overhead. (Bug...Meik Sievertsen2009-09-011-0/+19
* Addition to r10060: Add function documentation.Andreas Fischer2009-08-311-1/+5
* Simplified login_box() and redirection after login. S_LOGIN_ACTION can now be...Meik Sievertsen2009-08-301-16/+7
* Send service unavailable response code for E_USER_ERRORMeik Sievertsen2009-08-281-0/+3
* Fix Bug #49195 - Queries on un-indexed column user_emailJoas Schilling2009-08-281-0/+8
* Change of r10055, which itself was:Meik Sievertsen2009-08-271-2/+0
* One more unread posts search adjustment.Ruslan Uzdenov2009-08-251-7/+13
* Adjustement for r10050, related to Bug #50185Meik Sievertsen2009-08-251-0/+2
* More unread posts search adjustment.Ruslan Uzdenov2009-08-231-50/+58
* Better tracking of global announcementsRuslan Uzdenov2009-08-181-6/+6
* i know, i know, no need to hrm me. :P - r10009Meik Sievertsen2009-08-171-1/+1
* no need to call generate_board_url() twice - r10008Meik Sievertsen2009-08-171-2/+2
* Ability to define constant PHPBB_USE_BOARD_URL_PATH to use board url for imag...Meik Sievertsen2009-08-171-13/+31
* Add unread posts search support for cookie-based trackingRuslan Uzdenov2009-08-171-4/+55
* i am very very sorry for this hackish approach...Meik Sievertsen2009-08-171-0/+8
_array) { foreach ($filename_array as $handle => $filename) { if (empty($filename)) { trigger_error("template locator: set_filenames: Empty filename specified for $handle", E_USER_ERROR); } $this->filename[$handle] = $filename; $this->files[$handle] = $this->root . '/' . $filename; if ($this->inherit_root) { $this->files_inherit[$handle] = $this->inherit_root . '/' . $filename; } } } /** * Determines the filename for a template handle. * * The filename comes from array used in a set_filenames call, * which should have been performed prior to invoking this function. * Return value is a file basename (without path). * * @param $handle string Template handle * @return string Filename corresponding to the template handle */ public function get_filename_for_handle($handle) { if (!isset($this->filename[$handle])) { trigger_error("template->_tpl_load(): No file specified for handle $handle", E_USER_ERROR); } return $this->filename[$handle]; } /** * Determines the source file path for a template handle without * regard for template inheritance. * * This function returns the path in "primary" template directory * corresponding to the given template handle. That path may or * may not actually exist on the filesystem. Because this function * does not perform stat calls to determine whether the path it * returns actually exists, it is faster than get_source_file_for_handle. * * Use get_source_file_for_handle to obtain the actual path that is * guaranteed to exist (which might come from the parent/fallback * template directory if template inheritance is used). * * This function will trigger an error if the handle was never * associated with a template file via set_filenames. * * @param $handle string Template handle * @return string Path to source file path in primary template directory */ public function get_virtual_source_file_for_handle($handle) { // If we don't have a file assigned to this handle, die. if (!isset($this->files[$handle])) { trigger_error("template locator: No file specified for handle $handle", E_USER_ERROR); } $source_file = $this->files[$handle]; return $source_file; } /** * Determines the source file path for a template handle, accounting * for template inheritance and verifying that the path exists. * * This function returns the actual path that may be compiled for * the specified template handle. It will trigger an error if * the template handle was never associated with a template path * via set_filenames or if the template file does not exist on the * filesystem. * * Use get_virtual_source_file_for_handle to just resolve a template * handle to a path without any filesystem or inheritance checks. * * @param string $handle Template handle (i.e. "friendly" template name) * @return string Source file path */ public function get_source_file_for_handle($handle) { // If we don't have a file assigned to this handle, die. if (!isset($this->files[$handle])) { trigger_error("template locator: No file specified for handle $handle", E_USER_ERROR); } $source_file = $this->files[$handle]; // Try and open template for reading if (!file_exists($source_file)) { if (isset($this->files_inherit[$handle]) && $this->files_inherit[$handle]) { $parent_source_file = $this->files_inherit[$handle]; if (!file_exists($parent_source_file)) { trigger_error("template locator: Neither $source_file nor $parent_source_file exist", E_USER_ERROR); } $source_file = $parent_source_file; } else { trigger_error("template locator: File $source_file does not exist", E_USER_ERROR); } } return $source_file; } }