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); }
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); } } }
public function __construct($core, $name) { parent::__construct($core, $name); }
public function __construct($core, $name) { parent::__construct($core, $name); $this->mail = new htmlMimeMail5(); $this->core->subLog('Load Class: HtmlMimeMail'); }