Add my template project
This commit is contained in:
19
engine/class/0000.root.php
Normal file
19
engine/class/0000.root.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class Root {
|
||||
private static $installed = false;
|
||||
|
||||
public static function init() {
|
||||
self::$installed = floatval(file_get_contents(__RD__.'installed'));
|
||||
}
|
||||
|
||||
public static function url($url, $force = true) {
|
||||
header('Location: '.$url);
|
||||
if($force) exit();
|
||||
}
|
||||
|
||||
public static function installed() {
|
||||
return self::$installed;
|
||||
}
|
||||
}
|
||||
|
||||
Root::init();
|
Reference in New Issue
Block a user