Development Wiki

Difference between revisions of "Function.meta refresh"

From phpBB Development Wiki

m (moved Meta refresh to Function.meta refresh: wiki guidelines)
Line 31: Line 31:

Latest revision as of 05:51, 15 March 2010

meta_refresh –– Adds META template variable with meta http tag.


string meta_refresh ( int $time, string $url [, bool $disable_cd_check = false ] )

The meta_refresh function is automatically redirects the user to a new URL after a set amount of time.


Parameter Usage
time (int) Time in seconds for meta refresh tag
url (string) URL to redirect to. The url will go through redirect() first before the template variable is assigned
disable_cd_check (bool) If true, meta_refresh() will redirect to an external domain. If false, the redirect point to the boards url if it does not match the current domain. Default is false.

Return Values

Returns the URL to which the user will be redirected.


See Also