tbrehm
2008-01-06 b5a23a1be34827ba18ca537740edb121e616cd7a
interface/lib/app.inc.php
@@ -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