From: Andrew L. <ali...@us...> - 2003-05-31 18:06:34
|
Update of /cvsroot/gallery/gallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv17728/setup Modified Files: backup_albums.php Log Message: 2003-05-31 Andrew Lindeman <joy...@ya...> 1.3.4-cvs-b55 * Change the extension from .tar to .tar.gz when backing up albums. * If gallery_remote.php or gallery_remote2.php is accessed from the browser, exit with a nice message telling the user where to find Gallery Remote (bug #687235). * Fix bug #552569, where a filename could be quoted twice, causing the upload to fail. * Hopefully fix bug #595716, where NetPBM or ImageMagick wouldn't execute properly if they were in a directory with a space on Windows. Index: backup_albums.php =================================================================== RCS file: /cvsroot/gallery/gallery/setup/backup_albums.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- backup_albums.php 29 May 2003 11:15:58 -0000 1.2 +++ backup_albums.php 31 May 2003 18:06:31 -0000 1.3 @@ -161,7 +161,7 @@ $gallery->app->albumDir. " " . $gallery->app->userDir . " | ". fs_import_filename($gzip_path) . " -c "; header( "Content-type: application/x-gzip" ); - header( "Content-Disposition: attachment; filename=gallery_dump.tar" ); + header( "Content-Disposition: attachment; filename=gallery_dump.tar.gz" ); header( "Content-Description: PHP Generated Data" ); passthru("$cmd"); //echo ("$cmd<p>"); @@ -175,7 +175,7 @@ " | ". fs_import_filename($gzip_path) . " -c "; // echo ("$cmd<p>"); header( "Content-type: application/x-gzip" ); - header( "Content-Disposition: attachment; filename=gallery_dump.tar" ); + header( "Content-Disposition: attachment; filename=gallery_dump.tar.gz" ); header( "Content-Description: PHP Generated Data" ); passthru("$cmd"); // echo ("$cmd<p>"); |