[Openfirst-cvscommit] photogallery/admin editphoto.php,1.8,1.9
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2004-04-09 19:05:15
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21474/admin Modified Files: editphoto.php Log Message: Commit outstanding changes for viewphoto.php and admin/editphoto.php both of which should make it more bearable to work with large quantities of images. Index: editphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/editphoto.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** editphoto.php 28 Feb 2004 02:12:17 -0000 1.8 --- editphoto.php 9 Apr 2004 18:51:52 -0000 1.9 *************** *** 31,34 **** --- 31,39 ---- die(include_once($footer)); } + + if(! isset($_GET["ID"])) { + echo("You must specify a picture to edit. [ <a href='admin.php'>Admin Main</a> ]"); + die(include_once($footer)); + } // Get information relating to this particular image *************** *** 106,113 **** --- 111,126 ---- </tr> </table><br> + <?php + if(file_exists("../gallery/$gallery->GalleryName/thumbs/" . $_GET["PHOTO"])) { + echo("<a href=\"../gallery/$gallery->GalleryName/" . $_GET["PHOTO"] . "\"><img src=\"../gallery/$gallery->GalleryName/thumbs/" . $_GET["PHOTO"] . "\"></a>"); + } else { + ?> <img src="../gallery/<?php echo $gallery->GalleryName; ?>/<?php echo $_GET['PHOTO']; ?>" width="300" height="225"><br> <br> [ <a href="makethumb.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>">Make Thumbnail</a> ] + <?php + } + ?> <form action='editphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>' method='POST'> <table width="456"> |