[Openfirst-cvscommit] photogallery viewphoto.php,1.10,1.11
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-04 01:59:00
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv21569 Modified Files: viewphoto.php Log Message: Fix case of ISSET to be isset Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** viewphoto.php 13 Sep 2003 15:38:24 -0000 1.10 --- viewphoto.php 4 Oct 2003 01:58:53 -0000 1.11 *************** *** 34,38 **** // If a comment is being added then run process ! if(ISSET($_POST['addcomment'])){ ofirst_dbquery("INSERT INTO ofirst_photogallery_comments SET --- 34,38 ---- // If a comment is being added then run process ! if(isset($_POST['addcomment'])){ ofirst_dbquery("INSERT INTO ofirst_photogallery_comments SET *************** *** 49,55 **** // If a comment is being deleted then check if the user is looged in then delete ! if(ISSET($_GET['COMMENT'])){ ! if(ISSET($user->user)){ ofirst_dbquery("DELETE FROM ofirst_photogallery_comments WHERE ID = '".$_GET['COMMENT']."'"); echo "<br><br>Comment has been deleted, thank you! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; --- 49,55 ---- // If a comment is being deleted then check if the user is looged in then delete ! if(isset($_GET['COMMENT'])){ ! if(isset($user->user)){ ofirst_dbquery("DELETE FROM ofirst_photogallery_comments WHERE ID = '".$_GET['COMMENT']."'"); echo "<br><br>Comment has been deleted, thank you! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; *************** *** 165,169 **** <?php // If user is logged in then offer the option of deleting the comment ! if(ISSET($user->user)){ echo "<a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."&COMMENT=".$comment->ID."'>Delete</a>"; } --- 165,169 ---- <?php // If user is logged in then offer the option of deleting the comment ! if(isset($user->user)){ echo "<a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."&COMMENT=".$comment->ID."'>Delete</a>"; } |