[Openfirst-cvscommit] photogallery/admin edit.php,1.11,1.12
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2004-04-12 13:59:23
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24652 Modified Files: edit.php Log Message: Fix bug #97 Index: edit.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/edit.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** edit.php 28 Feb 2004 02:12:17 -0000 1.11 --- edit.php 12 Apr 2004 13:45:34 -0000 1.12 *************** *** 76,80 **** $gallery = ofirst_dbfetch_object($query); ! unlink("../".$gallerydir.$gallery->GalleryName."/".$_GET['PHOTO']) or die("<br><br><center>Can't remove gallery! [ <a href='index.php'>Manage</a> ]"); // If the file exists then delete the image and its thumbs --- 76,82 ---- $gallery = ofirst_dbfetch_object($query); ! if(file_exists("../".$gallerydir.$gallery->GalleryName."/".$_GET['PHOTO'])) { ! unlink("../".$gallerydir.$gallery->GalleryName."/".$_GET['PHOTO']) or die("<br><br><center>Can't remove gallery! [ <a href='index.php'>Manage</a> ]"); ! } // If the file exists then delete the image and its thumbs |