$wp360_uninstall_plugin ) { if ( WP_UNINSTALL_PLUGIN !== $wp360_uninstall_basename && '360-orbit-security-digest' === $wp360_uninstall_plugin['TextDomain'] ) { return; } } delete_option( 'wp360_sd_license' ); delete_option( 'wp360_sd_settings' ); delete_option( 'wp360_sd_history' ); delete_option( 'wp360_sd_alerted' ); delete_option( 'wp360_sd_muted_plugins' ); delete_transient( 'wp360_sd_update_check' ); wp_clear_scheduled_hook( 'wp360_sd_send_digest' ); // Datei-Pruefung: Zustand, letztes Ergebnis, geplanter Schritt. delete_option( 'wp360_sd_integrity_run' ); delete_option( 'wp360_sd_integrity_result' ); delete_option( 'wp360_sd_heuristic_result' ); delete_option( 'wp360_sd_heuristic_ignores' ); wp_clear_scheduled_hook( 'wp360_sd_integrity_weekly' ); delete_transient( 'wp360_sd_integrity_lock' ); wp_clear_scheduled_hook( 'wp360_sd_integrity_step' ); delete_option( 'wp360_sd_integrity_history' ); wp_clear_scheduled_hook( 'wp360_sd_integrity_scheduled' ); delete_option( 'wp360_sd_zip_tmp' ); // Schwachstellen-Abgleich: Zwischenspeicher, Stummschaltungen, Alarm-Merkliste, Cron. delete_option( 'wp360_sd_vuln_cache' ); delete_option( 'wp360_sd_vuln_mutes' ); delete_option( 'wp360_sd_vuln_alerted' ); delete_transient( 'wp360_sd_vuln_lock' ); wp_clear_scheduled_hook( 'wp360_sd_vuln_refresh' ); // Aenderungsprotokoll: Tabelle, Schema-Version, Salt fuer die IP-Hashes, Aufraeum-Lauf. global $wpdb; $wpdb->query( "DROP TABLE IF EXISTS `{$wpdb->prefix}wp360_sd_audit`" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- eigene Tabelle. delete_option( 'wp360_sd_db_version' ); delete_option( 'wp360_sd_ip_salt' ); wp_clear_scheduled_hook( 'wp360_sd_audit_cleanup' ); // Drosseln: Zaehlertabelle, Schema-Version, Aufraeum-Lauf. $wpdb->query( "DROP TABLE IF EXISTS `{$wpdb->prefix}wp360_sd_requests`" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- eigene Tabelle. delete_option( 'wp360_sd_requests_db' ); wp_clear_scheduled_hook( 'wp360_sd_requests_cleanup' ); // Laendersperre und Sperrlisten: Stand der Daten, Tageszaehler, Hinweis, Lauf, Bereichsdateien. delete_option( 'wp360_sd_block_data' ); delete_option( 'wp360_sd_block_stats' ); delete_option( 'wp360_sd_block_note' ); wp_clear_scheduled_hook( 'wp360_sd_block_refresh' ); // Anfrage-Filter: Tageszahlen, letzte Treffer, offene Vorschlaege. delete_option( 'wp360_sd_filter_stats' ); delete_option( 'wp360_sd_filter_log' ); delete_option( 'wp360_sd_filter_pending' ); delete_option( 'wp360_sd_remote_rules' ); wp_clear_scheduled_hook( 'wp360_sd_rule_updates' ); $wp360_sd_early = WPMU_PLUGIN_DIR . '/wp360-sd-early-filter.php'; if ( is_file( $wp360_sd_early ) && false !== strpos( (string) file_get_contents( $wp360_sd_early ), 'Wp360_Security_Digest_Request_Filter' ) ) { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- kleine lokale Datei. wp_delete_file( $wp360_sd_early ); } $wp360_uninstall_upload = wp_upload_dir( null, false ); $wp360_uninstall_dir = trailingslashit( $wp360_uninstall_upload['basedir'] ) . 'wp360-sd/'; // Die Regel, die PHP im Upload-Ordner verbietet, kommt wieder heraus; fremde Zeilen der Datei bleiben. $wp360_uninstall_htaccess = trailingslashit( $wp360_uninstall_upload['basedir'] ) . '.htaccess'; if ( is_file( $wp360_uninstall_htaccess ) ) { if ( ! function_exists( 'insert_with_markers' ) ) { require_once ABSPATH . 'wp-admin/includes/misc.php'; } insert_with_markers( $wp360_uninstall_htaccess, '360 Orbit Security Digest', array() ); } foreach ( array( 'country4.bin', 'country6.bin', 'list4.bin', 'list6.bin', 'index.html' ) as $wp360_uninstall_file ) { if ( is_file( $wp360_uninstall_dir . $wp360_uninstall_file ) ) { wp_delete_file( $wp360_uninstall_dir . $wp360_uninstall_file ); } } delete_option( 'wp360_sd_prefix_migrated' ); delete_transient( 'wp360_sd_prefix_retry' );