Horde::redirect PHP Méthode

redirect() public static méthode

Utility function to send redirect headers to browser, handling any browser quirks.
public static redirect ( string $url )
$url string The URL to redirect to.
    public static function redirect($url)
    {
        if ($GLOBALS['browser']->isBrowser('msie') && $GLOBALS['conf']['use_ssl'] == self::SSL_ONLY_LOGIN && strlen($url) < 160) {
            header('Refresh: 0; URL=' . $url);
        } else {
            header('Location: ' . $url);
        }
        exit;
    }