redray
2008-10-25 0ef490b4ce268b51e7b63127fedff7c8a0c39ecc
interface/lib/app.inc.php
@@ -55,7 +55,7 @@
      }
      
      //* Start the session
      if($conf["start_session"] == true) {
      if($this->_conf['start_session'] == true) {
         session_start();
         
         //* Initialize session variables
@@ -63,6 +63,8 @@
         if(empty($_SESSION['s']['theme'])) $_SESSION['s']['theme'] = $conf['theme'];
         if(empty($_SESSION['s']['language'])) $_SESSION['s']['language'] = $conf['language'];
      }
      $this->uses('auth');
   }
   public function uses($classes)
@@ -176,6 +178,9 @@
      if(isset($_SESSION['s']['user']) && $_SESSION['s']['user']['typ'] == 'admin') {
         $this->tpl->setVar('is_admin', 1);
      }
      if(isset($_SESSION['s']['user']) && $this->auth->has_clients($_SESSION['s']['user']['userid'])) {
         $this->tpl->setVar('is_reseller', 1);
      }
    }
    
} // end class