Development Wiki

Function.meta refresh

From phpBB Development Wiki

Revision as of 05:51, 15 March 2010 by Chiron (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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