Skip to content

Commit fe7adce

Browse files
committed
remove all code for phpsecinfo
1 parent 06cc360 commit fe7adce

File tree

1 file changed

+1
-53
lines changed

1 file changed

+1
-53
lines changed

phpwpinfo.php

+1-53
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
Version 1.4.1
3+
Version 1.4.2
44
Copyright 2012-2019 - Amaury Balmer ([email protected])
55
66
This program is free software; you can redistribute it and/or modify
@@ -77,7 +77,6 @@ public function __construct() {
7777

7878
$this->_check_request_mysql();
7979
$this->_check_request_adminer();
80-
$this->_check_request_phpsecinfo();
8180
$this->_check_request_wordpress();
8281
}
8382

@@ -1056,57 +1055,6 @@ private function _check_request_adminer() {
10561055
}
10571056
}
10581057

1059-
private function _check_request_phpsecinfo() {
1060-
// Check GET for Install phpsecinfo
1061-
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'install' ) {
1062-
$code = $this->file_get_contents_url( 'http://www.herewithme.fr/static/funkatron-phpsecinfo-b5a6155.zip' );
1063-
if ( ! empty( $code ) ) {
1064-
$result = file_put_contents( dirname( __FILE__ ) . '/phpsecinfo.zip', $code );
1065-
if ( $result != false ) {
1066-
$zip = new ZipArchive;
1067-
if ( $zip->open( dirname( __FILE__ ) . '/phpsecinfo.zip' ) === true ) {
1068-
$zip->extractTo( dirname( __FILE__ ) . '/phpsecinfo/' );
1069-
$zip->close();
1070-
1071-
unlink( dirname( __FILE__ ) . '/phpsecinfo.zip' );
1072-
} else {
1073-
unlink( dirname( __FILE__ ) . '/phpsecinfo.zip' );
1074-
die( 'Impossible to uncompress phpsecinfo with this script.' );
1075-
}
1076-
1077-
header( "Location: http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'], true );
1078-
exit();
1079-
} else {
1080-
die( 'Impossible to write phpsecinfo archive with this script.' );
1081-
}
1082-
} else {
1083-
die( 'Impossible to download phpsecinfo with this script.' );
1084-
}
1085-
}
1086-
1087-
// Check GET for Uninstall phpsecinfo
1088-
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'uninstall' ) {
1089-
if ( is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
1090-
$this->rrmdir( dirname( __FILE__ ) . '/phpsecinfo/' );
1091-
if ( ! is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
1092-
header( "Location: http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'], true );
1093-
exit();
1094-
}
1095-
}
1096-
1097-
die( 'Impossible remove file and uninstall phpsecinfo with this script.' );
1098-
}
1099-
1100-
// Check GET for load
1101-
if ( isset( $_GET ) && isset( $_GET['phpsecinfo'] ) && $_GET['phpsecinfo'] == 'load' ) {
1102-
if ( is_dir( dirname( __FILE__ ) . '/phpsecinfo/' ) ) {
1103-
require( dirname( __FILE__ ) . '/phpsecinfo/funkatron-phpsecinfo-b5a6155/PhpSecInfo/PhpSecInfo.php' );
1104-
phpsecinfo();
1105-
exit();
1106-
}
1107-
}
1108-
}
1109-
11101058
function _check_request_wordpress() {
11111059
// Check GET for Install wordpress
11121060
if ( isset( $_GET ) && isset( $_GET['wordpress'] ) && $_GET['wordpress'] == 'install' ) {

0 commit comments

Comments
 (0)