pedro_morgan
2007-08-19 facccbd66a258549554de3fa87386223c3bf8852
interface/lib/app.inc.php
@@ -59,17 +59,19 @@
         session_start();
         
         //* Initialize session variables
         if(!isset($_SESSION['s']['id']) ) $_SESSION["s"]['id'] = session_id();
         if(empty($_SESSION["s"]["theme"])) $_SESSION["s"]['theme'] = $conf['theme'];
         if(empty($_SESSION["s"]["language"])) $_SESSION["s"]['language'] = $conf['language'];
         if(!isset($_SESSION['s']['id']) ) $_SESSION['s']['id'] = session_id();
         if(empty($_SESSION['s']['theme'])) $_SESSION['s']['theme'] = $conf['theme'];
         if(empty($_SESSION['s']['language'])) $_SESSION['s']['language'] = $conf['language'];
      }
   }
   public function uses($classes)
    {   
      $cl = explode(', ',$classes);
        $cl = explode(',',$classes);
      if(is_array($cl)) {
         foreach($cl as $classname){
            $classname = trim($classname);
                //* Class is not loaded so load it
            if(!array_key_exists($classname, $this->_loaded_classes)){
               require_once($this->_conf['classpath'] . '/'.$classname.'.inc.php');
               $this->$classname = new $classname();
@@ -84,6 +86,7 @@
      $fl = explode(',', $files);
      if(is_array($fl)) {
         foreach($fl as $file){
            $file = trim($file);
            include_once($this->_conf['classpath'] . '/'.$file.'.inc.php');
         }
      }