function phpboost_version() { global $CONFIG; import('io/filesystem/file'); $file = new File(PATH_TO_ROOT . '/kernel/.build'); $build = $file->get_contents(); $file->close(); return $CONFIG['version'] . '.' . trim($build); }