phpBB

Development Wiki

Difference between revisions of "Function.meta refresh"

From phpBB Development Wiki

m (moved Meta refresh to Function.meta refresh: wiki guidelines)
m
 
Line 31: Line 31:
 
[[Category:Functions]]
 
[[Category:Functions]]
  
[[ja:meta_refresh]]
+
[[ja:Function.meta_refresh]]

Latest revision as of 05:51, 15 March 2010

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