PHP Classes

File: uninstall.php

Recommend this page to a friend!
  Classes of Te Taipo   Pareto Security   uninstall.php   Download  
File: uninstall.php
Role: Auxiliary script
Content type: text/plain
Description: Use with Wordpress
Class: Pareto Security
Filter requests to discard malicious values
Author: By
Last change: Latest code
Date: 3 years ago
Size: 814 bytes
 

Contents

Class file image Download
<?php
/**
 * uninstall version 2.8.4
 */
require_once( 'pareto_functions.php' );
$ParetoSecurity = new pareto_functions();
if ( !
defined( 'WP_UNINSTALL_PLUGIN' ) || !WP_UNINSTALL_PLUGIN || dirname( WP_UNINSTALL_PLUGIN ) != dirname( plugin_basename( __FILE__ ) ) ) {
   
$ParetoSecurity->send444();
}
if ( !
is_user_logged_in() ) {
   
wp_die( 'You must be logged in to run this script.' );
   
$ParetoSecurity->send403();
}
if ( !
current_user_can( 'install_plugins' ) ) {
   
wp_die( 'You do not have permission to run this script.' );
   
$ParetoSecurity->send403();
}

if (
false !== $ParetoSecurity->is_wp( true ) ) {
    if (
false !== $ParetoSecurity->get_file_perms( $ParetoSecurity->htapath(), true, true ) )
       
$ParetoSecurity->htaccess_unbanip();
} else
   
$ParetoSecurity->send403();