bludit/kernel/helpers/redirect.class.php
2015-03-27 01:00:01 +00:00

21 lines
349 B
PHP

<?php defined('BLUDIT') or die('Bludit CMS.');
class Redirect {
public static function url($url)
{
if(!headers_sent())
{
header("Location:".$url, TRUE, 302);
exit;
}
exit('<meta http-equiv="refresh" content="0; url='.$url.'"/>');
}
public static function page($base, $page)
{
self::url(HTML_PATH_ROOT.$base.'/'.$page);
}
}