get_option('manage_capability', 'manage_options')))) { $wps_admin = true; } if( $wps_admin === false ) { $wps_admin = 0; } $selected_tab = ""; if( array_key_exists( 'tab', $_GET ) ) { $selected_tab = $_GET['tab']; } switch( $selected_tab ) { case 'notifications': if( $wps_admin ) { $current_tab = 1; } else { $current_tab = 0; } break; case 'overview': if( $wps_admin ) { $current_tab = 2; } else { $current_tab = 0; } break; case 'access': if( $wps_admin ) { $current_tab = 3; } else { $current_tab = 0; } break; case 'exclusions': if( $wps_admin ) { $current_tab = 4; } else { $current_tab = 0; } break; case 'externals': if( $wps_admin ) { $current_tab = 5; } else { $current_tab = 0; } break; case 'maintenance': if( $wps_admin ) { $current_tab = 6; } else { $current_tab = 0; } break; case 'removal': if( $wps_admin ) { $current_tab = 7; } else { $current_tab = 0; } break; case 'about': if( $wps_admin ) { $current_tab = 8; } else { $current_tab = 1; } break; default: $current_tab = 0; } ?>
save_options(); } $WP_Statistics->save_user_options(); }