Exemplo n.º 1
0
 public function __construct($core, $name)
 {
     $serverPath = $_SERVER['SCRIPT_FILENAME'];
     $serverPathParts = explode('/', $serverPath);
     $file = array_pop($serverPathParts);
     $serverPath = implode('/', $serverPathParts);
     parent::__construct($core, $name);
     $this->smarty_compile_dir = $serverPath . $this->smarty_compile_dir;
     $this->smarty_cache_dir = $serverPath . $this->smarty_cache_dir;
     $this->pluginsPath = $serverPath . $this->pluginsPath;
     $this->smarty = $this->getPreparedSmarty($this->theme);
 }
Exemplo n.º 2
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
     $dir = $this->pathFor_tools;
     if (is_dir($dir)) {
         if ($dh = opendir($dir)) {
             while (($file = readdir($dh)) !== false) {
                 if (substr($file, -4) == '.php' && substr($file, 0, 2) !== '._') {
                     require_once $dir . $file;
                     $className = $file;
                     $className = str_replace('.php', '', $className);
                     $className = ucfirst($className);
                     $this->{$className} = new $className();
                     //$this->subLog("Load Tools: ".$className);
                 }
             }
             closedir($dh);
         }
     }
 }
Exemplo n.º 3
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
 }
Exemplo n.º 4
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
     $this->mail = new htmlMimeMail5();
     $this->core->subLog('Load Class: HtmlMimeMail');
 }