test-php-rest-api-user/engine/class/0000.root.php

20 lines
367 B
PHP
Raw Permalink Normal View History

2024-08-10 00:30:13 +08:00
<?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();