license_auth()) { resource::set_static_variables(); new Viewer\loginPanel(); } } private function license_auth() { return TRUE; } public function do_admin_panel() { if ($this->license_auth()) { resource::set_static_variables(); new Viewer\adminPanel(); } } public function do_admin_dashboard() { $html = ''; if ($this->license_auth()) { resource::set_static_variables(); $dashboard = new Viewer\adminDashboard(); $pagenum = (int)filter_input(INPUT_GET, 'pagenum'); if ((isset($pagenum) && $pagenum) > 0) { $html = $dashboard->do_admin_icons(); } else { $html = $dashboard->do_dashboard(); } } echo $html; } }