public static function redirect($url, $time = 0)
{
strpos($url, 'http') === false && ($url = self::url($url, 0));
if (!headers_sent()) {
$time === 0 && header("Location: {$url}");
header("refresh:{$time};url={$url}");
exit;
} else {
exit("<meta http-equiv='Refresh' content='{$time};URL={$url}'>");
}
}