src/apis/RemoteController.php
public function actionIndex($token)
    {
        if (empty(Yii::$app->remoteToken) || sha1(Yii::$app->remoteToken) !== $token) {
            throw new Exception('The provided remote token is wrong.');
        }
        
        UserOnline::clearList($this->module->userIdleTimeout);

        return [
            'yii_version' => Yii::getVersion(),
            'luya_version' => Boot::VERSION,
            'app_title' => Yii::$app->siteTitle,
            'app_debug' => (int) YII_DEBUG,
            'app_env' => YII_ENV,
            'app_transfer_exceptions' => (int) Yii::$app->errorHandler->transferException,
            'admin_online_count' => UserOnline::find()->count(),
            'app_elapsed_time' => Yii::getLogger()->getElapsedTime(),
            'packages' => Yii::$app->getPackageInstaller()->getConfigs(),
            'packages_update_timestamp' => Yii::$app->getPackageInstaller()->getTimestamp(),
        ];
    }
public function actionIndex($token)
    {
        if (empty(Yii::$app->remoteToken) || sha1(Yii::$app->remoteToken) !== $token) {
            throw new Exception('The provided remote token is wrong.');
        }
        
        UserOnline::clearList($this->module->userIdleTimeout);

        return [
            'yii_version' => Yii::getVersion(),
            'luya_version' => Boot::VERSION,
            'app_title' => Yii::$app->siteTitle,
            'app_debug' => (int) YII_DEBUG,
            'app_env' => YII_ENV,
            'app_transfer_exceptions' => (int) Yii::$app->errorHandler->transferException,
            'admin_online_count' => UserOnline::find()->count(),
            'app_elapsed_time' => Yii::getLogger()->getElapsedTime(),
            'packages' => Yii::$app->getPackageInstaller()->getConfigs(),
            'packages_update_timestamp' => Yii::$app->getPackageInstaller()->getTimestamp(),
        ];
    }
public function actionIndex ( $ token ) { if ( empty ( Yii :: $ app -> remoteToken ) || sha1 ( Yii :: $ app -> remoteToken ) !== $ token ) { throw new Exception ( 'The provided remote token is wrong.' ) ; } UserOnline :: clearList ( $ this -> module -> userIdleTimeout ) ; return [ 'yii_version' => Yii :: getVersion ( ) , 'luya_version' => Boot :: VERSION , 'app_title' => Yii :: $ app -> siteTitle , 'app_debug' => ( int ) YII_DEBUG , 'app_env' => YII_ENV , 'app_transfer_exceptions' => ( int ) Yii :: $ app -> errorHandler -> transferException , 'admin_online_count' => UserOnline :: find ( ) -> count ( ) , 'app_elapsed_time' => Yii :: getLogger ( ) -> getElapsedTime ( ) , 'packages' => Yii :: $ app -> getPackageInstaller ( ) -> getConfigs ( ) , 'packages_update_timestamp' => Yii :: $ app -> getPackageInstaller ( ) -> getTimestamp ( ) , ] ; }
Retrieve administration informations if the token is valid.

@param string $token The sha1 encrypted access token.
@return array If invalid token.
@throws Exception
Retrieve administration informations if the token is valid .