//Added some debug (commented in production)

This commit is contained in:
stronk7 2003-07-27 21:26:51 +00:00
parent 706be21465
commit c11c6fed95

View File

@ -252,6 +252,7 @@
function backup_copy_file ($from_file,$to_file) {
if (is_file($from_file)) {
//echo "<br>Copying ".$from_file." to ".$to_file; //Debug
$perms=fileperms($from_file);
return copy($from_file,$to_file) && chmod($to_file,$perms);
}
@ -259,6 +260,7 @@
return backup_copy_dir($from_file,$to_file);
}
else{
//echo "<br>Error: not file or dir ".$from_file; //Debug
return false;
}
}
@ -268,6 +270,7 @@
global $CFG;
if (!is_dir($to_file)) {
//echo "<br>Creating ".$to_file; //Debug
mkdir($to_file,$CFG->directorypermissions);
}
$dir = opendir($from_file);