From 8c6345007d73a4b2ed63d6bcc64b2d0bab0fb681 Mon Sep 17 00:00:00 2001 From: Palma Solutions LTD Date: Mon, 15 May 2017 13:04:20 +0200 Subject: [PATCH] fixed removal --- sc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sc.php b/sc.php index f3fac50..ca5042c 100644 --- a/sc.php +++ b/sc.php @@ -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 '
';
 
 
 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");