ManiaLib 1.0b1 API Reference

 Class 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 ()
 static void setCallback ( $callback)
Variables
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()