This commit is contained in:
Ty Clifford
2026-07-03 07:31:09 -04:00
commit cebb0d3af1
800 changed files with 89782 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php defined('BLUDIT') or die('Bludit CMS.');
class Redirect {
public static function url($url, $httpCode=301)
{
if (!headers_sent()) {
header("Location: ".$url, TRUE, $httpCode);
exit(0);
}
exit('<meta http-equiv="refresh" content="0; url='.$url.'"/>');
}
public static function page($page)
{
self::url(HTML_PATH_ADMIN_ROOT.$page);
}
public static function home()
{
self::url(HTML_PATH_ROOT);
}
public static function admin()
{
self::url(HTML_PATH_ADMIN_ROOT);
}
}