Beispiel #1
0
function tpl_redirect($page)
{
    global $absolute_server_URI;
    write_cookie_settings();
    http_write_no_cache();
    if (!preg_match('/^https?:/i', $page)) {
        header("Location: " . $absolute_server_URI . $page);
    } else {
        header("Location: " . $page);
    }
    exit;
}
Beispiel #2
0
function tpl_redirect_absolute($absolute_server_URI)
{
    //page has to be the filename with domain i.e. 'http://abc.de/viecache.php?cacheid=1'
    write_cookie_settings();
    http_write_no_cache();
    header("Location: " . $absolute_server_URI);
    exit;
}