db=new WPDO\WPDO(['useradmin' => $table]); $this->tpl=new Templates(['theme/admin/templates', 'modules/admin/templates']); } public function check_login() { if(isset($_SESSION['admin_login'])) { return true; } else { return false; } } }