fixed securetemps
This commit is contained in:
18
sc.php
18
sc.php
@@ -191,25 +191,13 @@ Order Deny,Allow
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
';
|
||||
if (file_exists("wp-content"))
|
||||
|
||||
{
|
||||
if (file_exists("wp-content/uploads"))
|
||||
{
|
||||
if (is_dir("wp-content/uploads"))
|
||||
{
|
||||
if (file_exists("wp-content/uploads/.htaccess"))
|
||||
{
|
||||
echo "file exists - skipping\n"
|
||||
else
|
||||
$hta = fopen("wp-content/uploads/.htaccess", "w");
|
||||
foreach(glob("./*/wp-content/uploads/") as $dirname)
|
||||
{
|
||||
$hta = fopen($dirname."/.htaccess", "w");
|
||||
fwrite($hta, $htdata);
|
||||
fclose($hta);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// system("for i in `find ../ -type d -path '*/wp-content/uploads';`; do echo $i && echo -e '".$htdata."' >> \$i/.htaccess; done");
|
||||
// system("for i in `find ../ -type d -path '*/tmp'`; do echo $i && echo -e '".$htdata."' >> \$i/.htaccess; done");
|
||||
|
||||
Reference in New Issue
Block a user