/** * Init with required vars */ private function init() { # root path $root = str_replace('index.php', '', $_SERVER['PHP_SELF']); # config $config = json_decode(file_get_contents('app/config.json'), true); # admin password $password = file_get_contents('app/password.txt'); # edition $edit = file_get_contents('app/edit.txt') == 'true' ? true : false; F::clear(); F::set('root', $root); F::set('config', $config); F::set('password', $password); F::set('edit', $edit); }