fixed removal

This commit is contained in:
Palma Solutions LTD
2017-05-15 13:04:20 +02:00
parent 910999ea9c
commit 8c6345007d

9
sc.php
View File

@@ -1076,9 +1076,10 @@ function execmd(){
/* Let's Remove All Files So The Don't Fall In Wrong Hands */
function remove(){
unlink(__FILE__);
unlink("../sc");
unlink("./sc.zip");
if (!is_dir($GLOBALS["webroot"]'/lp-msh-scanner')) {
rmdir($GLOBALS["webroot"]'/lp-msh-scanner');
}
}
function norun(){
@@ -1107,7 +1108,7 @@ echo '<br><pre>';
function version() {
// externalized the function to version.php in order to keep this cleaner tha before
// externalized the function to version.php in order to keep this cleaner than before
require_once("version.php");