public static function UseTemplate($template = TEMPLATE_DEFAULT) { if ($template === TEMPLATE_DEFAULT && self::GetCurrentModule() && self::GetInstance(self::GetCurrentModule()) instanceof iAdminModule) { $template = TEMPLATE_ADMIN; } switch ($template) { case TEMPLATE_BLANK: break; case TEMPLATE_ADMIN: break; case TEMPLATE_DEFAULT: break; default: if (!file_exists(PATH_ABS_ROOT . $template . '/template.php')) { return false; } } self::$usedTemplate = $template; return true; }