Beispiel #1
0
 /**
  * Template constructor
  * @param string $title Title of the web page
  * @param bool $noTemplate If set to true then no menus or sidebars will be used. It will be a single page.
  * @param bool $maintenance If set it wont redirect when the site is in maintenance mode
  */
 function __construct($title, $noTemplate = false, $maintenance = false)
 {
     //Set flags
     $this->noTemplate = $noTemplate;
     $this->maintenance = $maintenance;
     $this->title = $title;
     SessionUtil::start_session();
     //Check for a user and save the data
     if (SessionUtil::session('user')) {
         $this->user = unserialize(SessionUtil::session('user'));
     }
 }