403Webshell
Server IP : 104.26.3.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/ai-engine/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/wwwindicidolscom/public_html/wp-content/plugins/ai-engine/uninstall.php
<?php

if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
  die;
}

function mwai_remove_crons() {
  $timestamp = wp_next_scheduled( 'mwai_files_cleanup' );
  wp_unschedule_event( $timestamp, 'mwai_files_cleanup' );
  $timestamp = wp_next_scheduled( 'mwai_tasks_internal_run' );
  wp_unschedule_event( $timestamp, 'mwai_tasks_internal_run' );
  $timestamp = wp_next_scheduled( 'mwai_tasks_internal_dev_run' );
  wp_unschedule_event( $timestamp, 'mwai_tasks_internal_dev_run' );
}

function mwai_remove_database() {
  global $wpdb;
  $table_name1 = $wpdb->prefix . 'mwai_chats';
  $table_name2 = $wpdb->prefix . 'mwai_logmeta';
  $table_name3 = $wpdb->prefix . 'mwai_logs';
  $table_name4 = $wpdb->prefix . 'mwai_vectors';
  $table_name5 = $wpdb->prefix . 'mwai_tasks';
  $table_name6 = $wpdb->prefix . 'mwai_tasklogs';
  $table_name7 = $wpdb->prefix . 'mwai_files';
  $table_name8 = $wpdb->prefix . 'mwai_filemeta';
  $sql = "DROP TABLE IF EXISTS $table_name1, $table_name2, $table_name3, $table_name4, $table_name5, $table_name6, $table_name7, $table_name8";
  $wpdb->query( $sql );
}

function mwai_remove_options() {
  global $wpdb;
  $options = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'mwai_%'" );
  foreach ( $options as $option ) {
    delete_option( $option->option_name );
  }
}

function mwai_uninstall() {
  $options = get_option( 'mwai_options', [] );
  $cleanUninstall = $options['clean_uninstall'];
  if ( $cleanUninstall ) {
    mwai_remove_options();
    mwai_remove_database();
  }
}

mwai_uninstall();

Youez - 2016 - github.com/yon3zu
LinuXploit