/** * Displays the admin screen * * @return void **/ function admin_screen() { if (!current_user_can('edit_plugins') && !current_user_can('audit_trail')) { return; } // Decide what to do $sub = $this->submenu(); AT_Audit::expire(get_option('audit_expiry') === false ? 30 : get_option('audit_expiry')); if ($sub == '') { $this->screen_trail(); } else { if ($sub == 'options') { $this->screen_options(); } else { if ($sub == 'support') { $this->render_admin('support'); } } } }