opt(); return new PDO( $opt["pdo_connection_string"], $opt["pdo_username"], $opt["pdo_password"]); } public function opt() { static $opt; if (!isset($opt)) { $opt = getGlobalOptions(); } return $opt; } public function display($template, $cache_id = "", $compile_id = "") { parent::assign('isadmin', isset($_SESSION['admin']) ? $_SESSION['admin'] : false); parent::assign('opt', $this->opt()); parent::display($template, $cache_id, $compile_id); } } ?>