} else { $page_num = 1; } if (isset($_GET['s'])) { $usersearch = $_GET['s']; } else { $usersearch = ''; } if (isset($_GET['instructor_id']) && is_numeric($_GET['instructor_id'])) { $instructor = new Instructor($_GET['instructor_id']); } if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['instructor_id']) && is_numeric($_GET['instructor_id'])) { if (!isset($_GET['cp_nonce']) || !wp_verify_nonce($_GET['cp_nonce'], 'delete_instructor_' . $_GET['instructor_id'])) { die(__('Cheating huh?', 'cp')); } $instructor->delete_instructor(); $message = __('Selected instructor has been removed successfully.', 'cp'); } if (isset($_GET['action']) && ($_GET['action'] == 'edit' || $_GET['action'] == 'view') && isset($_GET['instructor_id']) && is_numeric($_GET['instructor_id'])) { include 'instructors-profile.php'; } else { // Query the users $wp_user_search = new Instructor_Search($usersearch, $page_num); ?> <div class="wrap nosubsub instructors cp-wrap"> <div class="icon32 " id="icon-users"><br></div> <h2><?php _e('Instructors', 'cp'); if (current_user_can('manage_options')) {