public function init() { $tmp_id = null; $tmp_auth_key = null; $session_id = Session::get('__' . $this->alias()); $session_auth_key = Session::get('__' . $this->alias() . '_auth_key'); if ($session_id !== null && $session_auth_key !== null) { $tmp_id = $session_id; $tmp_auth_key = $session_auth_key; } else { if (array_key_exists('autoLogin', $this->params)) { if ($this->params['autoLogin'] === true) { $cookie_id = Gbox::getRequest()->getCookies('__' . $this->alias()); $cookie_auth_key = Gbox::getRequest()->getCookies('__' . $this->alias() . '_auth_key'); if ($cookie_id !== null && $cookie_auth_key !== null) { $tmp_id = $cookie_id; $tmp_auth_key = $cookie_auth_key; } } } } if ($tmp_id !== null && $tmp_auth_key !== null) { $tmp_identity = static::findIdentity($tmp_id); if ($tmp_identity->validateAuthKey($tmp_auth_key)) { $this->login($tmp_id); } } }
$this->title = 'Gbox Framework'; } if (!$this->description) { $this->description = 'Descripción de Gbox Framework'; } SiteAssets::register($this); ?> <!DOCTYPE html> <html> <head> <?php echo $this->renderHead(); ?> </head> <body> <?php echo AppMenu::Show(); ?> <div class="container"> <?php if ($response = Session::get('response')) { echo Bootstrap::Alert($response['msg'], array_key_exists('type', $response) ? $response['type'] : 'danger', true); Session::destroy('response'); } ?> <?php echo $content; ?> </div> </body> </html>
<ul class="dropdown-menu"> <?php $i = 0; ?> <?php foreach (\Gbox\base\Session::get('files-debug', []) as $file) { ?> <?php if ($i < 10) { $i++; } else { break; } ?> <li class="<?php echo $file == \Gbox\base\Session::get('files-debug-current') ? 'active' : ''; ?> "><a href="<?php echo Url::to('@web-module', ['id' => $file]); ?> "><?php echo $file; ?> </a></li> <?php } ?> </ul> </li> </ul> </div><!-- /.navbar-collapse -->
"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion-debug-summary-parse" href="#collapse-summary-parse-<?php echo $i; ?> " aria-expanded="true" aria-controls="collapse-summary-parse-<?php echo $i; ?> "> Parse summary </a> </h4> </div> <div id="collapse-summary-parse-<?php echo $i; ?> " class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-summary-parse-<?php echo $i; ?> "> <div class="panel-body"> <pre><?php print_r(\Gbox::$components->debug->getData(Session::get('files-debug-current'))); ?> </pre> </div> </div> </div> </div> </div> </div>