Пример #1
0
        if (!isset($instance->update_hash) || $instance->update_hash != $hash) {
            self::buildPrefs();
            $instance->update_hash = $hash;
        }
    }
    /**
     * Tell if session is expired
     *
     * @return bool
     */
    static function isTokenSessionExpired()
    {
        if (!CAppUI::$token_expiration) {
            return false;
        }
        return CMbDT::dateTime() >= CAppUI::$token_expiration;
    }
    /**
     * Get authentification method
     *
     * @return string
     */
    static function getAuthMethod()
    {
        return self::$instance->auth_method;
    }
}
// choose to alert for missing translation or not
$locale_alert = CAppUI::conf("locale_alert");
CAppUI::$locale_mask = CAppUI::conf("locale_warn") ? "{$locale_alert}%s{$locale_alert}" : null;