public static isHostedScalr ( ) : boolean | ||
return | boolean | Returns true if current install is a hosted Scalr |
public static function isHostedScalr()
{
$hosted = self::config('scalr.hosted.enabled');
return !empty($hosted);
}
public function aboutAction() { $key = "short"; if (!Scalr::isHostedScalr() || $this->user->isScalrAdmin() || $this->request->getHeaderVar('Interface-Beta')) { $key = $this->user->isScalrAdmin() || $this->request->getHeaderVar('Interface-Beta') ? "beta" : "full"; } $this->response->page('ui/core/about.js', Scalr::getContainer()->version($key)); }