added one dot

This commit is contained in:
Palma Solutions LTD
2017-05-14 11:36:03 +02:00
parent 083513b034
commit 3de29120db
2 changed files with 43 additions and 33 deletions

View File

@@ -585,6 +585,14 @@ foreach my $file (sort @files) {
next if $file eq 'custom-facebook-feed-admin.php';
next if $file eq 'membershipadmin.php';
next if $file eq 'wppa-settings-autosave.php';
next if $file eq '*.txt';
next if $file eq '*.rar';
next if $file eq '*.zip';
next if $file eq '*.tar';
next if $file eq '*.gz';
next if $file eq '*.sql';
print "Scanning $start_dir/$file... ";

6
sc.php
View File

@@ -191,7 +191,7 @@ Order Deny,Allow
Deny from all
</FilesMatch>
';
foreach(glob("./{**/*,*}/wp-content/uploads/") as $dirname)
foreach(glob("../{**/*,*}/wp-content/uploads/") as $dirname)
{
$hta = fopen($dirname."/.htaccess", "w");
fwrite($hta, $htdata);
@@ -220,7 +220,9 @@ function cryptophp(){
/* Execute The Malware Scanner */
function scanme(){
require_once("./scan.php");
}
/* Execute The PHP Cleaner */
@@ -1090,6 +1092,7 @@ echo '<br><pre>';
function version() {
// externalized the function to version.php in order to keep this cleaner tha before
require_once("version.php");
@@ -1312,7 +1315,6 @@ case 'tmpcheck' :
tmpcheck();
break;
case 'prefix' :
prefix();
break;