Exemple #1
0
 /**
  * @param NyaaStore Configuration
  */
 function __construct($Conf)
 {
     $this->info = array();
     $this->appdir = $Conf->get('app.dir');
     $this->tpldir = $Conf->get('template.dir');
     $this->pkgdir = $Conf->get('package.dir');
     $this->rootdir = $Conf->get('root.dir');
     foreach ($Conf->get('app.dir', 'template.dir') as $dir) {
         if (!is_dir($dir)) {
             mkdir($dir);
             chmod($dir, 0777);
         }
     }
     parent::__construct();
 }
Exemple #2
0
 /**
  * @param NyaaStore Configuration
  */
 function __construct($Conf)
 {
     $this->Conf = $Conf;
     parent::__construct();
 }