|
1 | 1 | <?php |
2 | 2 | /* |
3 | | -Version 1.4.1 |
| 3 | +Version 1.4.2 |
4 | 4 | Copyright 2012-2019 - Amaury Balmer (amaury@beapi.fr) |
5 | 5 |
|
6 | 6 | This program is free software; you can redistribute it and/or modify |
@@ -77,7 +77,6 @@ public function __construct() { |
77 | 77 |
|
78 | 78 | $this->_check_request_mysql(); |
79 | 79 | $this->_check_request_adminer(); |
80 | | - $this->_check_request_phpsecinfo(); |
81 | 80 | $this->_check_request_wordpress(); |
82 | 81 | } |
83 | 82 |
|
@@ -1056,57 +1055,6 @@ private function _check_request_adminer() { |
1056 | 1055 | } |
1057 | 1056 | } |
1058 | 1057 |
|
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 | | - |
1110 | 1058 | function _check_request_wordpress() { |
1111 | 1059 | // Check GET for Install wordpress |
1112 | 1060 | if ( isset( $_GET ) && isset( $_GET['wordpress'] ) && $_GET['wordpress'] == 'install' ) { |
|
0 commit comments