20 lines
367 B
PHP
20 lines
367 B
PHP
<?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();
|