mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
v0.92, set perms before del & unlink fix
set 0777 perms on the file before deleting $entry needs to be $backup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// -----------------------------------------------
|
||||
// Zip-It! for ICEcoder v0.9.1 by Matt Pass
|
||||
// Zip-It! for ICEcoder v0.9.2 by Matt Pass
|
||||
// Will backup requested files/folders in ICEcoder
|
||||
// -----------------------------------------------
|
||||
include("../../lib/settings.php");
|
||||
@@ -46,7 +46,8 @@ Class zipIt {
|
||||
while (false !== ($backup = readdir($backupsDir))) {
|
||||
if ($backup != "." && $backup != "..") {
|
||||
if ((time()-filemtime($zipDir.$backup)) > $keepTime) {
|
||||
unlink($zipDir.$entry) or DIE("couldn't delete $zipDir$backup<br>");
|
||||
chmod($zipDir.$backup, 0777);
|
||||
unlink($zipDir.$backup) or DIE("couldn't delete $zipDir$backup<br>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user