phpBB

Development Wiki

Function.meta refresh

From phpBB Development Wiki

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

Description

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.

Parameters

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.

Examples

See Also