[Openfirst-cvscommit] photogallery viewphoto.php,1.4,1.5 email.php,1.4,1.5
Brought to you by:
xtimg
From: <dav...@us...> - 2003-08-22 02:55:08
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv21388 Modified Files: viewphoto.php email.php Log Message: updated with new features Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** viewphoto.php 20 Aug 2003 21:40:43 -0000 1.4 --- viewphoto.php 21 Aug 2003 18:02:40 -0000 1.5 *************** *** 54,57 **** --- 54,60 ---- } + $imgquery = mysql_query("SELECT * FROM ofirst_photogallery_image WHERE Gallery = '".$_GET['ID']."' AND Image = '".$_GET['PHOTO']."'"); + $image = mysql_fetch_object($query); + ?> <h2>View Photo From Gallery</h2> *************** *** 73,77 **** <tr> <td width="20%"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></td> ! <td width="80%"><?php echo $_GET['PHOTO']; ?></td> </tr> <tr> --- 76,80 ---- <tr> <td width="20%"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></td> ! <td width="80%"><?php if(mysql_num_rows($imgquery) == 0){ echo $_GET['PHOTO']; }else{ echo $image->ImageName; } ?></td> </tr> <tr> *************** *** 82,85 **** --- 85,105 ---- <td><div align="right"><strong>Author:</strong></div></td> <td><?php echo $gallery->Author; ?></td> + </tr> + <?php + if(mysql_num_rows($query) == 0){ + ?> + <tr> + <td valign="top"><div align="right"><strong>Description:</strong></div></td> + <td><?php echo $image->Description; ?></td> + </tr> + <tr> + <td valign="top"><div align="right"><strong>Date:</strong></div></td> + <td><?php echo date("F j, Y, g:i a",$image->Dates); ?></td> + </tr> + <?php } ?> + <tr> + <td> </td> + <td><a href="email.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>">Send + To A Friend</a></td> </tr> </table> Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/email.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** email.php 20 Aug 2003 19:03:31 -0000 1.4 --- email.php 21 Aug 2003 18:02:40 -0000 1.5 *************** *** 30,36 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); ! mysql_select_db($sqldatabase,$sqlconnection); if(ISSET($_POST['send'])){ --- 30,37 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); ! $gallery = mysql_fetch_object($query); if(ISSET($_POST['send'])){ *************** *** 70,74 **** </tr> </table> ! <p align='center'><img src='".$home."/photogallery/".$_POST['photo']."' width='300' height='200'></p> <p align='left'>Thank you for your time,</p> <p align='left'>The <b>".$title."</b> photo gallery.<br> --- 71,75 ---- </tr> </table> ! <p align='center'><img src='".$home.$basepath."/photogallery/gallery/$gallery->GalleryName".$_POST['photo']."' width='300' height='200'></p> <p align='left'>Thank you for your time,</p> <p align='left'>The <b>".$title."</b> photo gallery.<br> *************** *** 78,84 **** </div></body></html>"; ! mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! echo "<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"; ! die(include($footer)); } --- 79,89 ---- </div></body></html>"; ! if(funcion_exists("multipartmail")){ ! multipartmail($recipientemail, $title."Gallery Photo Sender", $message); ! }else{ ! mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! } ! echo "<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"; ! die(include($footer)); } *************** *** 88,96 **** <p>[ <a href="index.php">View Galleries</a> ] <p align="center"><br> ! <img src="<?php echo $_GET['PHOTO']; ?>" width="200" height="150"><br> <br> You have requested to send this photo to a friend. Please enter the required<br> information below. ! <form method="POST" action="email.php"> <input type="hidden" name="photo" value="<?php echo $_GET['PHOTO']; ?>"> <table width="521" border="0" align="center" cellpadding="6" cellspacing="0"> --- 93,101 ---- <p>[ <a href="index.php">View Galleries</a> ] <p align="center"><br> ! <img border="1px" src="gallery/<?php echo $gallery->GalleryName."/".$_GET['PHOTO']; ?>" width="200" height="150"><br> <br> You have requested to send this photo to a friend. Please enter the required<br> information below. ! <form method="POST" action="email.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>"> <input type="hidden" name="photo" value="<?php echo $_GET['PHOTO']; ?>"> <table width="521" border="0" align="center" cellpadding="6" cellspacing="0"> |