/** * Post constructor initaliser. Take care of admin specific stuff * * @param bool $admin Set to true if we need to setup admin templates * @author Geoffrey Dunn <*****@*****.**> * @since 1.2 **/ function init($admin = true) { if (@file_exists('../install/index.php') && !@file_exists('../tools')) { exit('<h1>' . $this->lang->admin_cp_warning . '</h1>'); } parent::init($admin); if (!$this->perms->auth('is_admin') || $this->is_banned()) { exit('<h1>' . $this->lang->admin_cp_denied . '</h1>'); } }