fixed securetemps
This commit is contained in:
16
sc.php
16
sc.php
@@ -191,25 +191,13 @@ Order Deny,Allow
|
|||||||
Deny from all
|
Deny from all
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
';
|
';
|
||||||
if (file_exists("wp-content"))
|
foreach(glob("./*/wp-content/uploads/") as $dirname)
|
||||||
|
|
||||||
{
|
|
||||||
if (file_exists("wp-content/uploads"))
|
|
||||||
{
|
|
||||||
if (is_dir("wp-content/uploads"))
|
|
||||||
{
|
|
||||||
if (file_exists("wp-content/uploads/.htaccess"))
|
|
||||||
{
|
{
|
||||||
echo "file exists - skipping\n"
|
$hta = fopen($dirname."/.htaccess", "w");
|
||||||
else
|
|
||||||
$hta = fopen("wp-content/uploads/.htaccess", "w");
|
|
||||||
fwrite($hta, $htdata);
|
fwrite($hta, $htdata);
|
||||||
fclose($hta);
|
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 '*/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");
|
// 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