THANK YOU THANK YOU jwurster!! :clap:
You should package this, or have the mods or someone update the package in the DL area. that one is dangerous.
I have had nothing but errors from that orig module, like these:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/public_html/.../admin/backup_mysite.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/.../admin/backup_mysite.php:66) in /home/darenec/public_html/.../admin/backup_mysite.php on line 45
And then it breaks the admin page, prints my htaccess file behind various text boxes, displays install instructions for htmlarea (??), etc. Scary, scary behaviour.
jwurster:
I did get this working after making a couple of mods to the backup_mysite.php file. I had coded a comparable extension for Vanilla forum software and decided to compare the two.
If you edit that file and look in the function Tar_Archive, I added an "@" and then 2 lines of code as follows:
readfile($tar_file);
@unlink($tar_file); /*jimw add @*/
if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') touch($tar_file); /*jimw add*/
ob_end_flush(); /*jimw add*/
Then I modified the following line:
$tar = new Tar_Archive("$tar_file"); /*jimw remove $ before new*/
I've attached the modified file.