params ['useLogin'] && ( in_array ( Yii::$app->request->userIP, Yii::$app->params ['authorizedIPs'] ) || in_array("all", Yii::$app->params['authorizedIPs'] ))) {
if (! \Yii::$app->user->isGuest) {
// Get the predefined user settings from the database and pass them to javascript
$settings=Yii::$app->user->identity->getUserSettings ();
$page = $settings['default_hits_per_page'];
$order = $settings['default_sort'];
$asc = $settings['order'];
$this->registerJs ( "var ops = " . json_encode ( $page ) . "; var or = " . json_encode ( $order ) . "; var asc = " . json_encode ( $asc ) . ";", View::POS_HEAD, 'my-options' );
Yii::$app->session ['search'] = Yii::$app->request->url;
?>
'.Html::a('Log in',['site/login']).' to access the sample request system
';
$this->registerJs ( "var ops = 25; var or = 0 ; var asc = 'asc';", View::POS_HEAD, 'my-options' );
}
}
else
$this->registerJs ( "var ops = 25; var or = 0; var asc = 'asc';", View::POS_HEAD, 'my-options' );
echo "";
// END // used only if Login frame is activated in params.php
?>