UserAgentCheckFilter
Description
User agent checker
Forces GameBox user agent, redirects to trackmania.com otherwise
Located in /mvc/filters/UserAgentCheckFilter.class.php (line 15)
AdvancedFilter | --UserAgentCheckFilter
Method Summary
static void
defaultHTMLView
()
Variables
Inherited Variables
Inherited from AdvancedFilter
AdvancedFilter::$request
AdvancedFilter::$response
AdvancedFilter::$session
Methods
static defaultHTMLView (line 35)
This is the default HTML view when someone tries to access the Manialink from outside the game.
You can override this default behaviour by changing the callback with UserAgentCheckFilter::setCallback()
void
defaultHTMLView
()
static setCallback (line 26)
Sets the callback when someone tries to access the Manialink from outside the game.
The callback prints some HTML and returns void.
void
setCallback
( $callback)
- $callback
Inherited Methods
Inherited From AdvancedFilter
AdvancedFilter::__construct()
AdvancedFilter::postFilter()
AdvancedFilter::preFilter()