Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversionx/wp-content/plugins/ninjascanner/ |
Upload File : |
<?php
/*
+=====================================================================+
| _ _ _ _ ____ |
| | \ | (_)_ __ (_) __ _/ ___| ___ __ _ _ __ _ __ ___ _ __ |
| | \| | | '_ \ | |/ _` \___ \ / __/ _` | '_ \| '_ \ / _ \ '__| |
| | |\ | | | | || | (_| |___) | (_| (_| | | | | | | | __/ | |
| |_| \_|_|_| |_|/ |\__,_|____/ \___\__,_|_| |_|_| |_|\___|_| |
| |__/ |
| |
| (c) NinTechNet ~ https://nintechnet.com/ |
+=====================================================================+
*/
if (! defined('WP_UNINSTALL_PLUGIN') ) { exit( "Not allowed" ); }
// ===================================================================== //
// NinjaScanner uninstaller (database + files + cron jobs).
$nscan_options = get_option( 'nscan_options' );
if ( empty( $nscan_options['dont_delete_cache'] ) ) {
// Remove database options:
delete_option( 'nscan_options' );
// Find and recursively delete any files and folders
// located inside the cache directory:
nscan_remove_dir_uninstall( WP_CONTENT_DIR .'/ninjascanner' );
}
// Remove any potential cron jobs:
if ( wp_next_scheduled( 'nscan_garbage_collector' ) ) {
wp_clear_scheduled_hook( 'nscan_garbage_collector' );
}
if ( wp_next_scheduled( 'nscan_scheduled_scan' ) ) {
wp_clear_scheduled_hook( 'nscan_scheduled_scan' );
}
return;
// ===================================================================== //
function nscan_remove_dir_uninstall( $dir ) {
if ( is_dir( $dir ) ) {
$files = scandir( $dir );
foreach ( $files as $file ) {
if ( $file == '.' || $file == '..' ) { continue; }
if ( is_dir( "$dir/$file" ) ) {
nscan_remove_dir_uninstall( "$dir/$file" );
} else {
unlink( "$dir/$file" );
}
}
rmdir( $dir );
}
}
// =====================================================================
// EOF