Skip to content

Commit

Permalink
remove all code for phpsecinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
asadowski10 committed May 20, 2019
1 parent 06cc360 commit fe7adce
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions phpwpinfo.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
Version 1.4.1
Version 1.4.2
Copyright 2012-2019 - Amaury Balmer ([email protected])
This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -77,7 +77,6 @@ public function __construct() {

$this->_check_request_mysql();
$this->_check_request_adminer();
$this->_check_request_phpsecinfo();
$this->_check_request_wordpress();
}

Expand Down Expand Up @@ -1056,57 +1055,6 @@ private function _check_request_adminer() {
}
}

private function _check_request_phpsecinfo() {
// Check GET for Install phpsecinfo
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'install' ) {
$code = $this->file_get_contents_url( 'http://www.herewithme.fr/static/funkatron-phpsecinfo-b5a6155.zip' );
if ( ! empty( $code ) ) {
$result = file_put_contents( dirname( __FILE__ ) . '/phpsecinfo.zip', $code );
if ( $result != false ) {
$zip = new ZipArchive;
if ( $zip->open( dirname( __FILE__ ) . '/phpsecinfo.zip' ) === true ) {
$zip->extractTo( dirname( __FILE__ ) . '/phpsecinfo/' );
$zip->close();

unlink( dirname( __FILE__ ) . '/phpsecinfo.zip' );
} else {
unlink( dirname( __FILE__ ) . '/phpsecinfo.zip' );
die( 'Impossible to uncompress phpsecinfo with this script.' );
}

header( "Location: http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'], true );
exit();
} else {
die( 'Impossible to write phpsecinfo archive with this script.' );
}
} else {
die( 'Impossible to download phpsecinfo with this script.' );
}
}

// Check GET for Uninstall phpsecinfo
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'uninstall' ) {
if ( is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
$this->rrmdir( dirname( __FILE__ ) . '/phpsecinfo/' );
if ( ! is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
header( "Location: http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'], true );
exit();
}
}

die( 'Impossible remove file and uninstall phpsecinfo with this script.' );
}

// Check GET for load
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'load' ) {
if ( is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
require( dirname( __FILE__ ) . '/phpsecinfo/funkatron-phpsecinfo-b5a6155/PhpSecInfo/PhpSecInfo.php' );
phpsecinfo();
exit();
}
}
}

function _check_request_wordpress() {
// Check GET for Install wordpress
if ( isset( $_GET ) && isset( $_GET['wordpress'] ) && $_GET['wordpress'] == 'install' ) {
Expand Down

0 comments on commit fe7adce

Please sign in to comment.