. */ abstract class modCore { public $db; public $message; public $mode; public $tpl; public $tpl_id; function __construct() { global $db, $tpl; $this->db = ($db) ? $db : new smDatabase(); $this->tpl = ($tpl) ? $tpl : new smTemplate(); } public function createHTML() { $html = $this->tpl->getTemplate($this->tpl_id); return $html; } } ?>