Thread: [Openfirst-cvscommit] photogallery email.php,1.8,1.9 gallery.php,1.13,1.14 index.php,1.11,1.12 viewp
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-13 18:00:59
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv30207 Modified Files: email.php gallery.php index.php viewphoto.php Log Message: Change include to include_once so that scripts may be easily included from other scripts without problems. Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/email.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** email.php 23 Aug 2003 20:32:49 -0000 1.8 --- email.php 13 Oct 2003 18:00:22 -0000 1.9 *************** *** 27,33 **** */ // Include important globals related to this module ! include("../config/globals.php"); ! include($header); ! include("admin/galleryglobals.php"); // Get gallery information --- 27,33 ---- */ // Include important globals related to this module ! include_once("../config/globals.php"); ! include_once($header); ! include_once("admin/galleryglobals.php"); // Get gallery information *************** *** 132,136 **** // Print out the completion of the e-mailing then die out echo "<br><br><br>Photo was successfully sent to the recipient, thank you! [ <a href='index.php'>Galleries</a> ]<br><br><br>"; ! die(include($footer)); } --- 132,136 ---- // Print out the completion of the e-mailing then die out echo "<br><br><br>Photo was successfully sent to the recipient, thank you! [ <a href='index.php'>Galleries</a> ]<br><br><br>"; ! die(include_once($footer)); } *************** *** 186,188 **** </form> ! <?php include($footer); ?> --- 186,188 ---- </form> ! <?php include_once($footer); ?> Index: gallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/gallery.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** gallery.php 13 Sep 2003 15:38:25 -0000 1.13 --- gallery.php 13 Oct 2003 18:00:23 -0000 1.14 *************** *** 27,33 **** */ // Include important globals related to this module ! include("../config/globals.php"); ! include($header); ! include("admin/galleryglobals.php"); // Retrieve gallery information --- 27,33 ---- */ // Include important globals related to this module ! include_once("../config/globals.php"); ! include_once($header); ! include_once("admin/galleryglobals.php"); // Retrieve gallery information *************** *** 113,115 **** contained<br> within the galleries please contact the team's webmaster or leader.</p> ! <?php include($footer); ?> --- 113,115 ---- contained<br> within the galleries please contact the team's webmaster or leader.</p> ! <?php include_once($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.php 13 Sep 2003 15:38:25 -0000 1.11 --- index.php 13 Oct 2003 18:00:23 -0000 1.12 *************** *** 28,34 **** // Include important globals related to this module ! include("../config/globals.php"); ! include($header); ! include("admin/galleryglobals.php"); ?> --- 28,34 ---- // Include important globals related to this module ! include_once("../config/globals.php"); ! include_once($header); ! include_once("admin/galleryglobals.php"); ?> *************** *** 69,71 **** contained<br> within the galleries please contact the team's webmaster or leader.</p> ! <?php include($footer); ?> --- 69,71 ---- contained<br> within the galleries please contact the team's webmaster or leader.</p> ! <?php include_once($footer); ?> Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** viewphoto.php 4 Oct 2003 01:58:53 -0000 1.11 --- viewphoto.php 13 Oct 2003 18:00:23 -0000 1.12 *************** *** 29,35 **** // Include important globals related to this module $header_condense = true; ! include("../config/globals.php"); ! include($header); ! include("admin/galleryglobals.php"); // If a comment is being added then run process --- 29,35 ---- // Include important globals related to this module $header_condense = true; ! include_once("../config/globals.php"); ! include_once($header); ! include_once("admin/galleryglobals.php"); // If a comment is being added then run process *************** *** 45,49 **** echo "<br><br>Your comment has been successfully posted! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; ! die(include($footer)); } --- 45,49 ---- echo "<br><br>Your comment has been successfully posted! [ <a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>View Image</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 54,58 **** 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>"; ! die(include($footer)); } --- 54,58 ---- 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>"; ! die(include_once($footer)); } *************** *** 190,192 **** <p>The content within the galleries is copyright. In order to use or copy content<br> contained within the galleries please contact the team's webmaster or leader.</p> ! <?php include($footer); ?> --- 190,192 ---- <p>The content within the galleries is copyright. In order to use or copy content<br> contained within the galleries please contact the team's webmaster or leader.</p> ! <?php include_once($footer); ?> |