Skip to content

Commit

Permalink
Show Last request Frame only when signe in
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed May 5, 2017
1 parent 4a2d658 commit b6fdada
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/classes/ui/WebPage.php
Expand Up @@ -54,9 +54,12 @@ public function __construct($pageTitle = null, &$userObject = null)
$this->head->addItem('<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico">');
$this->head->addItem('<link rel="apple-touch-icon-precomposed" type="image/png" href="images/flexplorer-logo.png">');
$this->head->addItem('<link rel="stylesheet" href="/javascript/font-awesome/css/font-awesome.min.css">');
$this->addItem(new FlexiURL(isset($_SESSION['lasturl']) ? $_SESSION['lasturl'] : null,
['id' => 'lasturl', 'class' => 'innershadow']));

$userID = $userObject->getUserID();
if ($userID) { //Authenticated user
$this->addItem(new FlexiURL(isset($_SESSION['lasturl']) ? $_SESSION['lasturl'] : null,
['id' => 'lasturl', 'class' => 'innershadow']));
}
$this->container = $this->addItem(new \Ease\TWB\Container());

$this->includeJavaScript('js/jquery.keepAlive.js');
Expand Down

0 comments on commit b6fdada

Please sign in to comment.