exit;
}
- function handler_index(&$page)
- {
- if (logged()) {
- redirect("events");
- }
-
- return PL_OK;
- }
-
function handler_403(&$page)
{
header('HTTP/1.0 403 Forbidden');
$page->changeTpl('403.tpl');
- return PL_OK;
}
function handler_404(&$page)
{
header('HTTP/1.0 404 Not Found');
$page->changeTpl('404.tpl');
- return PL_OK;
}
function handler_purge_cache(&$page)
$page->clear_compiled_tpl();
wiki_clear_all_cache();
- redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']);
+ http_redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']);
}
}