openfirst-cvscommit Mailing List for openFIRST (Page 85)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dav...@us...> - 2003-08-22 13:18:14
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv14561 Modified Files: upload.php Log Message: Added blank upload field checking. Index: upload.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/upload.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** upload.php 20 Aug 2003 19:04:07 -0000 1.2 --- upload.php 21 Aug 2003 14:18:56 -0000 1.3 *************** *** 48,51 **** --- 48,55 ---- for ($num=1;$num<=$_POST['NUM_UPLOADS'];$num++){ + // If upload field is empty then exit the particular loop + + if (! $_FILES['upload'.$num]['name'] == ""){ + $continue = false; *************** *** 67,71 **** } ! if (! $_FILES['upload'.$num]['name'] == ""){ copy($_FILES['upload'.$num]['tmp_name'], $dirlocate."/".$_FILES['upload'.$num]['name']) or $error = true; echo "<center><br>".$_FILES['upload'.$num]['name']." - ".$_FILES['upload'.$num]['size']." - ".$_FILES['upload'.$num]['type']." - "; --- 71,75 ---- } ! copy($_FILES['upload'.$num]['tmp_name'], $dirlocate."/".$_FILES['upload'.$num]['name']) or $error = true; echo "<center><br>".$_FILES['upload'.$num]['name']." - ".$_FILES['upload'.$num]['size']." - ".$_FILES['upload'.$num]['type']." - "; *************** *** 76,81 **** echo "<font color='Red'>Not Successful</font><br></center>\n"; } ! ! } } } --- 80,84 ---- echo "<font color='Red'>Not Successful</font><br></center>\n"; } ! } } } *************** *** 93,97 **** </a> <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> </p> ! <p align="center">Current Files Allowd: <?php echo $imgtypes; ?></p> <p align="center"> <form action='upload.php?ID=<?php echo $_GET['ID']; ?>' enctype="multipart/form-data" method='POST'> --- 96,100 ---- </a> <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> </p> ! <p align="center">Current Files Allowed: <?php echo $imgtypes; ?></p> <p align="center"> <form action='upload.php?ID=<?php echo $_GET['ID']; ?>' enctype="multipart/form-data" method='POST'> |
From: <dav...@us...> - 2003-08-22 12:22:15
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv20259 Modified Files: setup.mysql Log Message: Added sql command for adding the image table. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/photogallery/setup/setup.mysql,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** setup.mysql 20 Aug 2003 22:56:10 -0000 1.9 --- setup.mysql 21 Aug 2003 17:55:56 -0000 1.10 *************** *** 1,3 **** ! CREATE TABLE `ofirst_photogallery_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL auto_increment, `GalleryName` TEXT, `Author` TEXT, `Dates` TIME NOT NULL, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_photogallery_comments` (`ID` tinyint(3) unsigned NOT NULL auto_increment,`Image` tinytext,`Gallery` tinytext,`Author` tinytext,`EMail` tinytext,`Comment` text,`Date` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET includes='photogallery.php',modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a> | <a href="$basepath/photogallery/admin/newgallery.php">New Gallery</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; --- 1,4 ---- ! CREATE TABLE `ofirst_photogallery_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL auto_increment, `GalleryName` TEXT, `Author` TEXT, `Dates` text, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_photogallery_comments` (`ID` tinyint(3) unsigned NOT NULL auto_increment,`Image` tinytext,`Gallery` tinytext,`Author` tinytext,`EMail` tinytext,`Comment` text,`Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_photogallery_image` (`ID` tinyint(3) unsigned NOT NULL auto_increment,`Image` tinytext,`Gallery` tinytext,`ImageName` tinytext,`Description` tinytext,`Comment` text,`Dates` text, PRIMARY KEY (`ID`)) TYPE=MyISAM; INSERT INTO ofirst_config SET includes='photogallery.php',modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a> | <a href="$basepath/photogallery/admin/newgallery.php">New Gallery</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; |
From: <dav...@us...> - 2003-08-22 10:57:47
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv2398 Modified Files: track.php logger.php Log Message: Logger now checks if the user if logged in then adds the username logged in with to the database. Tracker has been edited to show these values or show null. Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** track.php 28 Jun 2003 15:23:48 -0000 1.6 --- track.php 21 Aug 2003 13:06:48 -0000 1.7 *************** *** 30,34 **** if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); } --- 30,34 ---- if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['ID']."'") or die(mysql_error()); } *************** *** 38,43 **** <h1>View Log Information</h1> <p>You are tracking the hits by: <strong><?php print $_GET['ID']; ?></strong>, ! who a total of <strong><?php echo $amount; ?></strong> pages. <br> ! <br>[ <a href='track.php?DELETE=<?php print $_GET['ID']; ?>'>Delete all hits by this user ]</a></p> <table> <tr> --- 38,43 ---- <h1>View Log Information</h1> <p>You are tracking the hits by: <strong><?php print $_GET['ID']; ?></strong>, ! who has visited a total of <strong><?php echo $amount; ?></strong> pages. <br> ! <br>[ <a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'>Delete all hits by this user ]</a></p> <table> <tr> *************** *** 48,51 **** --- 48,52 ---- <th>Location</th> <th>Query String</th> + <th>Member</th> <th>Options</th> </tr> *************** *** 59,62 **** --- 60,64 ---- echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; + if($log->Member != "null"){ echo " <td>$log->Member</td>"; }else{ echo "<td>NULL</td>"; } echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; *************** *** 64,68 **** ?> </tr> ! </table> <?php include("$footer"); --- 66,70 ---- ?> </tr> ! </table><br><br> <?php include("$footer"); Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** logger.php 28 Jun 2003 15:23:48 -0000 1.4 --- logger.php 21 Aug 2003 13:06:48 -0000 1.5 *************** *** 39,43 **** } ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser) values('".$IP."' ,'".$DATE."' --- 39,49 ---- } ! if(ISSET($user->user)){ ! $MEMBER = $user->user; ! }else{ ! $MEMBER = "null"; ! } ! ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser,Member) values('".$IP."' ,'".$DATE."' *************** *** 45,49 **** ,'".$QUERYSTRING."' ,'".$HOST."' ! ,'".$BROWSER."')") or die(mysql_error()); ?> --- 51,56 ---- ,'".$QUERYSTRING."' ,'".$HOST."' ! ,'".$BROWSER."' ! ,'".$MEMBER."')") or die(mysql_error()); ?> |
From: <dav...@us...> - 2003-08-22 10:57:15
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv19351 Added Files: editphoto.php Log Message: initial upload --- NEW FILE: editphoto.php --- <?php /* * openFIRST.photogallery - edit.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include("../../config/globals.php"); include($header); include("galleryglobals.php"); if(! ISSET($user->user)){ showlogin(); die(include($footer)); } // Get information relating to this particular image $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); $imgquery = mysql_query("SELECT * FROM ofirst_photogallery_image WHERE Gallery = '".$_GET['ID']."' AND Image = '".$_GET['PHOTO']."'") or die(mysql_error()); $image = mysql_fetch_object($imgquery); // Check if a text file relating to this image is present then prepare to fill it into the descriptions box $textfile = substr($_GET['PHOTO'],0,-4).".txt"; if(file_exists("../gallery/$gallery->GalleryName/".$textfile)){ $file = fopen("../gallery/$gallery->GalleryName/".$textfile,'r'); $description = ""; while(! feof($file)){ $line = fgets($file,1024); $description .= $line."<br>"; } fclose($file); } // Check if user initiated delete and run delete process if(ISSET($_POST['update'])){ // Check to see if the user wants to update with the textfile or the posted description if(! ISSET($_POST['txtupdate'])){ $description = $_POST['description']; } if(mysql_num_rows($imgquery) == 0){ mysql_query("INSERT INTO ofirst_photogallery_image SET ImageName = '".$_POST['imagename']."', Description = '".$description."', Dates = '".$_POST['date']."'") or die(mysql_error()); }else{ mysql_query("UPDATE ofirst_photogallery_image SET ImageName = '".$_POST['imagename']."', Description = '".$description."', Dates = '".$_POST['date']."' WHERE Gallery = '".$_GET['ID']."' AND Image = '".$_GET['PHOTO']."'") or die(mysql_error()); } if(ISSET($_POST['deletefile'])){ $textfile = substr($_GET['PHOTO'],0,-4).".txt"; unlink("../gallery/$gallery->GalleryName/".$textfile); echo "<br><br>Image information updated. Relating text file has been deleted in the process!"; }else{ echo "<br><br>Image information updated."; } echo " [ <a href='editphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>Manage</a> ]<br><br>"; die(include($footer)); } if(ISSET($_POST['deleteall'])){ mysql_query("DELETE FROM ofirst_photogallery_image WHERE Gallery = '".$_GET['ID']."' AND Image = '".$_GET['PHOTO']."'"); echo "<br><br>The description of this image has been removed! [ <a href='editphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."'>Manage</a> ]<br><br>"; die(include($footer)); } ?> <h2>Edit Gallery</h2> <p><em><?php echo $gallery->GalleryName; ?> Options - </em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a> | <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> | <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> | <a href="edit.php?DELETE=<?php echo $_GET['ID']; ?>">Delete Gallery</a> (Must be empty to perform operation)</p> <p align="center"><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> ]</p> <form action='editphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>' method='POST'> <table width="456" align="center"> <tr> <th width="101" valign="top"> <div align="center"> </div></th> <th width="275"><strong>Photo Information</strong></th> </tr> <tr> <td valign="top"><div align="right"><strong>File Name:</strong></div></td> <td valign="top"><?php echo $_GET['PHOTO']; ?></td> </tr> <tr> <td valign="top"><div align="right"><strong>Photo Name:</strong></div></td> <td valign="top"><input name="imagename" type="text" id="imagename" value="<?php if(ISSET($image->ImageName)){ echo $image->ImageName; } ?>" size="30"></td> </tr> <tr> <td valign="top"><div align="right"><strong>Date:</strong></div></td> <td valign="top"><input name="date" type="text" id="date" value="<?php if(ISSET($image->Dates)){ echo $image->Dates; }else{ echo date("F j, Y, g:i a",time()); } ?>" size="30"></td> </tr> <tr> <td valign="top"> <div align="right"><strong>Description:</strong></div></td> <td valign="top"> <textarea name="description" cols="40" rows="10" id="description"><?php echo $image->Description; ?></textarea> </td> </tr> <?php if(ISSET($description)){ ?> <tr> <td valign="top"> </td> <td valign="top"><table width="85%" bordercolor="#000000"> <tr> <th><div align="center">Text File Found</div></th> </tr> <tr> <td><?php echo $description; ?></td> </tr> </table></td> </tr> <tr> <td valign="top"><div align="right"> <input name="txtupdate" type="checkbox" id="deletefile5" value="checkbox"> </div></td> <td valign="top">Use description from .txt file in updating the image description. The .txt contets are in the above table.</td> </tr> <tr> <td valign="top"><div align="right"> <input name="deletefile" type="checkbox" id="deletefile4" value="checkbox"> </div></td> <td valign="top">Delete .txt file after adding this description to the image.</td> </tr> <?php } ?> <tr> <td valign="top"> </td> <td valign="top"> <input name='update' type='submit' id='update' value='Update Image Info'> <input name='deleteall' type='submit' id='update3' value='Delete Description'> </td> </tr> </table> </form><br><br> <?php include($footer); ?> |
From: <dav...@us...> - 2003-08-22 09:08:46
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv14937 Modified Files: auth.php Log Message: Changed the design of showlogin(). I added a table and header to it so that it looks decent. I also added a few breaks to make sure it centers properly. Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/base/config/auth.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** auth.php 28 Jun 2003 17:29:29 -0000 1.3 --- auth.php 20 Aug 2003 23:11:50 -0000 1.4 *************** *** 50,58 **** // Show a login form for the user. ! echo("<form action='".$_SERVER["PHP_SELF"] . "' method='post'> ! Login: <input name='login' type='text' /> ! <br />Password: <input name='password' type='password' /> ! <br /><input type='submit' value='Login'> ! </form>"); return(0); } --- 50,74 ---- // Show a login form for the user. ! echo("<br><br><form action='". $_SERVER["PHP_SELF"] . "' method='post'> ! <table width='27%'> ! <tr> ! <th width='36%'> </th> ! <th width='64%'>Account Login</th> ! </tr> ! <tr> ! <td><div align='right'>Username:</div></td> ! <td><input name='login' type='text' /> ! </td> ! </tr> ! <tr> ! <td><div align='right'>Password:</div></td> ! <td> <input name='password' type='password' /></td> ! </tr> ! <tr> ! <td> </td> ! <td><input type='submit' value='Login'></td> ! </tr> ! </table> ! </form><br><br>"); return(0); } |
From: <dav...@us...> - 2003-08-22 08:21:09
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv30052 Modified Files: email.php gallery.php index.php viewphoto.php Added Files: spacer.PNG Log Message: Photogallery has now been heavily updated to work with the file common file arrangements that we had established approximately 2 months ago. The module has also been edited for the new headers design. --- NEW FILE: spacer.PNG --- (This appears to be a binary file; contents omitted.) Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/email.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** email.php 20 Aug 2003 16:52:23 -0000 1.3 --- email.php 20 Aug 2003 19:03:31 -0000 1.4 *************** *** 79,84 **** mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! ! die("<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"); } --- 79,84 ---- 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)); } Index: gallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/gallery.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** gallery.php 5 Jun 2003 18:36:17 -0000 1.5 --- gallery.php 20 Aug 2003 19:03:31 -0000 1.6 *************** *** 30,72 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); ! ! mysql_select_db($sqldatabase,$sqlconnection); ! ! ?> ! <h2>Gallery Viewer</h2> ! <p>[ <a href="index.php">View Galleries</a> ]<br> ! </p> ! <table width="588" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Author</font></strong></td> ! <td> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date ! Created </font></strong></div></td> ! </tr> ! <?php ! ! // Retrieve gallery information ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); ! ?> <tr> ! <td width="78" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Date); ?></font></td> </tr> </table> ! <div align="center"> ! <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><br> ! <br> ! </p> ! </div> <div align="center"></div> <table width="75" border="0" align="center" cellpadding="5" cellspacing="0"> ! <?php // List photos in the gallery --- 30,52 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); ! ! // Retrieve gallery information ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); ! ?> ! <h2>Gallery Viewer</h2> ! <table width="497"> <tr> ! <td><b>Description:</b> <?php echo $gallery->Description; ?></td> </tr> </table> ! <p> </p> ! <div align="center"></div> <div align="center"></div> <table width="75" border="0" align="center" cellpadding="5" cellspacing="0"> ! <tr><th></th><th><?php echo $gallery->GalleryName; ?></th><th></th></tr> ! <?php // List photos in the gallery *************** *** 82,96 **** $num = 1; } ! echo "<td width='34%'><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'> ! <center>"; if(file_exists($dirlocate."/thumbs/".$file)){ ! echo "<img height=100 width=152 src='".$dirlocate."/thumbs/".$file."'>"; }else{ ! echo "<img height=100 width=152 src='".$dirlocate."/".$file."'>"; } ! echo "<br><a href='email.php?PHOTO=".$dirlocate."/".$file."'><img src=email.PNG alt='Email to a friend'></a><a target='_blank' ! href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'><img alt='Enlarge' src='enlarge.PNG'> </a></center></a></td>"; $num++; --- 62,74 ---- $num = 1; } ! echo "<td width='34%'><center><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'>"; if(file_exists($dirlocate."/thumbs/".$file)){ ! echo "<img border='1px' height=100 width=152 src='".$dirlocate."/thumbs/".$file."'>"; }else{ ! echo "<img border='1px' height=100 width=152 src='".$dirlocate."/".$file."'>"; } ! echo "</a><br><a href='email.php?PHOTO=".$dirlocate."/".$file."'><img border='0' src=email.PNG alt='Email to a friend'></a><img border='0' src='spacer.PNG'><a target='_blank' href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$file."'><img border='0' alt='Enlarge' src='enlarge.PNG'> </a></center></a></td>"; $num++; *************** *** 100,108 **** ?> </table> ! <p align="center"> ! </p> ! <p align="center"><font size="2">The content within the galleries are copyright ! of this website and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</font></p> <p align="center"> </p> <?php include($footer); ?> --- 78,86 ---- ?> </table> ! <p align="center"> </p> ! <p align="center">The content within the galleries are copyright of this website ! and its ownering team.<br> ! In order to use ! or copy its content please contact the teams webmaster.</p> <p align="center"> </p> <?php include($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 5 Jun 2003 01:56:56 -0000 1.3 --- index.php 20 Aug 2003 19:03:31 -0000 1.4 *************** *** 30,61 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); mysql_select_db($sqldatabase,$sqlconnection); ! ?> <h2>View Galleries</h2> <p>Welcome to the gallery viewer. Please select a gallery from the list below:<br> </p> ! <table width="538" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td> <div align="center"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description</font></strong></div></td> </tr> ! <?php // List galleries from database ! $query = mysql_query("SELECT * FROM ofirst_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="59" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="162" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="281" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Description; ?></font></td> </tr> ! <?php } --- 30,62 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); mysql_select_db($sqldatabase,$sqlconnection); ! ?> <h2>View Galleries</h2> <p>Welcome to the gallery viewer. Please select a gallery from the list below:<br> </p> ! <table width="701" align="center"> ! <tr> ! <th valign="top"> <div align="center"> </div></th> ! <th><strong>Gallery Name</strong></th> ! <th> <div align="center"><strong>Description</strong></div></th> ! <th width="229"><b>Date</b></th> </tr> ! <?php // List galleries from database ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="59" valign="top"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></td> ! <td width="142" valign="top"><a href='gallery.php?ID=<?php echo $gallery->ID; ?>'><?php echo $gallery->GalleryName; ?></a></td> ! <td width="223" valign="top"><?php echo $gallery->Description; ?></td> ! <td width="223" valign="top"><?php echo date("F j, Y, g:i a",$gallery->Dates); ?></td> </tr> ! <?php } *************** *** 66,71 **** ?> </table> ! <p align="center"><font size="2">The content within the galleries are copyright ! of this website and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</font></p> ! <?php include($footer); ?> \ No newline at end of file --- 67,72 ---- ?> </table> ! <p align="center">The content within the galleries are copyright of this website ! and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</p> ! <?php include($footer); ?> Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewphoto.php 5 Jun 2003 01:56:56 -0000 1.2 --- viewphoto.php 20 Aug 2003 19:03:31 -0000 1.3 *************** *** 31,41 **** include("../config/globals.php"); include($header); ! include("galleryglobals.php"); ! ! mysql_select_db($sqldatabase,$sqlconnection); ?> <h2>View Photo</h2> ! <table width="588" border="0" align="center" cellpadding="6" cellspacing="0"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> --- 31,39 ---- include("../config/globals.php"); include($header); ! include("admin/galleryglobals.php"); ?> <h2>View Photo</h2> ! <table width="588" align="center"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> *************** *** 49,53 **** // Retrieve information about the photos related gallery ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); --- 47,51 ---- // Retrieve information about the photos related gallery ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); *************** *** 57,61 **** <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Date); ?></font></td> </tr> </table> --- 55,59 ---- <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Dates); ?></font></td> </tr> </table> |
From: <dav...@us...> - 2003-08-22 08:16:06
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv14342 Modified Files: edit.php Log Message: Minor changes. Index: edit.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** edit.php 20 Aug 2003 19:04:07 -0000 1.1 --- edit.php 21 Aug 2003 14:17:28 -0000 1.2 *************** *** 74,83 **** <a href="edit.php?DELETE=<?php echo $_GET['ID']; ?>">Delete Gallery</a> (Must be empty to perform operation)</p> ! <table width="457" align="center"> <tr> ! <th valign="top"> <div align="center"> </div></th> ! <th><strong>Photo Name </strong></th> ! <th><strong>Thumbnail</strong></th> ! <th><strong>Option</strong></th> </tr> <?php --- 74,83 ---- <a href="edit.php?DELETE=<?php echo $_GET['ID']; ?>">Delete Gallery</a> (Must be empty to perform operation)</p> ! <table width="388" align="center"> <tr> ! <th width="48" valign="top"> <div align="center"> </div></th> ! <th width="149"><strong>Photo Name </strong></th> ! <th width="87"><strong>Thumbnail</strong></th> ! <th width="84"><strong>Option</strong></th> </tr> <?php *************** *** 94,98 **** ?> <tr> ! <td valign="top"><div align="center"> <a href="viewphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>" target="_blank"><img src="../photo.PNG" width="27" height="31" border="0"></a></div></td> <td valign="top"><?php echo $file; ?></td> <td valign="top"> --- 94,98 ---- ?> <tr> ! <td valign="top"><div align="center"> <a href="../viewphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>" target="_blank"><img src="../photo.PNG" width="27" height="31" border="0"></a></div></td> <td valign="top"><?php echo $file; ?></td> <td valign="top"> *************** *** 107,112 **** ?> </td> ! <td valign="top"><a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>'>Make ! Thumbnail</a> <br> <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'>Delete</a></td> </tr> <?php --- 107,114 ---- ?> </td> ! <td valign="top">[ <a href="editphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>">Edit</a> ! ]<br> ! [ <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'> ! Delete</a> ] </td> </tr> <?php *************** *** 121,131 **** <center> <br> ! <a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>; ?>&OPTION=all'>Make Thumbnail's ! for Entire Gallery</a><br> <br> </center> <?php }else{ ! showlogin(); } include($footer); --- 123,132 ---- <center> <br> ! <a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>&OPTION=all'>Make Thumbnails for Entire Gallery</a><br> <br> </center> <?php }else{ ! showlogin(); } include($footer); |
From: <xt...@us...> - 2003-08-22 05:46:10
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv17233 Modified Files: first.php Log Message: Include all functions that are present, so that enhanced functionality is available as required. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** first.php 19 Aug 2003 20:47:59 -0000 1.17 --- first.php 19 Aug 2003 20:53:42 -0000 1.18 *************** *** 84,87 **** --- 84,102 ---- session_start(); include('auth.php'); + if(function_exists(\"glob\")) { + // Include the functions using glob(); + if(is_readable(getcwd() . \"/../config/functions/\")) { + foreach (glob(getcwd() . \"/../config/functions/*.php\") as \$filename) { + include(\$filename); + } + } elseif (is_readable(getcwd() . \"/../../config/functions/\")) { + foreach (glob(getcwd() . \"/../../config/functions/*.php\") as $filename) { + include(\$filename); + } + } + } else { + // Include the functions without using glob(); + } + session_write_close(); |
From: <dav...@us...> - 2003-08-22 05:43:33
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv16366 Modified Files: headers.php Log Message: Fixed error with pipe missin character after home link. Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/headers.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** headers.php 28 Jul 2003 01:30:21 -0000 1.17 --- headers.php 19 Aug 2003 20:48:46 -0000 1.18 *************** *** 54,58 **** <?php if(ISSET($headers)){ ! echo("» <a accesskey='h' href='$home'><u>H</u>ome</a>" . $headers); }else{ ?> --- 54,58 ---- <?php if(ISSET($headers)){ ! echo("» <a accesskey='h' href='$home'><u>H</u>ome</a> | " . $headers); }else{ ?> |
From: <dav...@us...> - 2003-08-22 05:32:22
|
Update of /cvsroot/openfirst/emoticon In directory sc8-pr-cvs1:/tmp/cvs-serv4117 Modified Files: emoticonf.php Log Message: Changed some design aspects of the include. Index: emoticonf.php =================================================================== RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** emoticonf.php 23 Jul 2003 21:20:40 -0000 1.7 --- emoticonf.php 19 Aug 2003 22:44:39 -0000 1.8 *************** *** 49,58 **** function emoticon_preview ($limit = 5, $start = 0) { $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); ! echo "<table>"; while ($emot = mysql_fetch_object($query)) { echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>"; } ! echo "</table>"; } --- 49,59 ---- function emoticon_preview ($limit = 5, $start = 0) { + global $basepath; $query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT $start,$limit"); ! echo "<table><th>Emoticons</th><th></th>"; while ($emot = mysql_fetch_object($query)) { echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>"; } ! echo "<td><a href='$basepath/emoticons/'>Show more...</a></td></table>"; } |
From: <xt...@us...> - 2003-08-22 05:31:19
|
Update of /cvsroot/openfirst/search In directory sc8-pr-cvs1:/tmp/cvs-serv5324 Modified Files: index.php Log Message: Add checking that modules actually exist before offering to search through their contents. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/search/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 12 Aug 2003 19:55:54 -0000 1.1.1.1 --- index.php 19 Aug 2003 22:52:36 -0000 1.2 *************** *** 38,52 **** <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> <option value="member" <?php if($_GET["type"] == "member") { echo " selected='selected'"; } ?>>Member Search</option> <option value="guestbook" <?php if($_GET["type"] == "guestbook") { echo " selected='selected'"; } ?>>Guestbook Search</option> <option value="messenger" <?php if($_GET["type"] == "messenger") { echo " selected='selected'"; } ?>>Messenger Search</option> ! <option value="workspace" <?php if($_GET["type"] == "workspace") { echo " selected='selected'"; } ?>>Workspace Search</option> ! <option value="project" <?php if($_GET["type"] == "project") { echo " selected='selected'"; }?>>Project Search</option> ! <option value="news" <?php if($_GET["type"] == "news") { echo " selected='selected'"; } ?>>News Search</option> </select> <input type="text" name="q" size="31" maxlength="255" value="<?php echo $_GET["q"]; ?>" /> <input type="submit" value="Google Search" /> ! <input type="hidden" name="sitesearch" value="portperryrobotics.ca" /> ! <input type="hidden" name="domains" value="portperryrobotics.ca" /> </form> </td> --- 38,69 ---- <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> + <?php if(is_readable("../members/") == true) { ?> <option value="member" <?php if($_GET["type"] == "member") { echo " selected='selected'"; } ?>>Member Search</option> + <?php + } + if(is_readable("../guestbook/") == true) { ?> <option value="guestbook" <?php if($_GET["type"] == "guestbook") { echo " selected='selected'"; } ?>>Guestbook Search</option> + <?php + } + if(is_readable("../messenger/") == true) { ?> <option value="messenger" <?php if($_GET["type"] == "messenger") { echo " selected='selected'"; } ?>>Messenger Search</option> ! <?php ! } ! if(is_readable("../members/workspace.php") == true) { ?> ! <option value="workspace" <?php if($_GET["type"] == "workspace") { echo " selected='selected'"; } ?>>Workspace Search</option> ! <?php ! } ! if(is_readable("../projects/") == true) { ?> ! <option value="project" <?php if($_GET["type"] == "project") { echo " selected='selected'"; }?>>Project Search</option> ! <?php ! } ! if(is_readable("../news/") == true) { ?> ! <option value="news" <?php if($_GET["type"] == "news") { echo " selected='selected'"; } ?>>News Search</option> ! <?php } ?> </select> <input type="text" name="q" size="31" maxlength="255" value="<?php echo $_GET["q"]; ?>" /> <input type="submit" value="Google Search" /> ! <input type="hidden" name="sitesearch" value="<?php echo $_SERVER["HTTP_HOST"]; ?>" /> ! <input type="hidden" name="domains" value="<?php echo $_SERVER["HTTP_HOST"]; ?>" /> </form> </td> |
From: <dav...@us...> - 2003-08-22 05:20:39
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/dev In directory sc8-pr-cvs1:/tmp/cvs-serv7039/dev Log Message: Directory /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/dev added to the repository |
From: <dav...@us...> - 2003-08-22 04:58:23
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv27940 Modified Files: viewphoto.php Log Message: Added commenting system and changed design of viewing images. Index: viewphoto.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/viewphoto.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** viewphoto.php 20 Aug 2003 19:03:31 -0000 1.3 --- viewphoto.php 20 Aug 2003 21:40:43 -0000 1.4 *************** *** 32,48 **** include($header); include("admin/galleryglobals.php"); ! ! ?> ! <h2>View Photo</h2> ! <table width="588" align="center"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Author</font></strong></td> ! <td> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date ! Created </font></strong></div></td> </tr> ! <?php // Retrieve information about the photos related gallery --- 32,66 ---- include($header); include("admin/galleryglobals.php"); ! ! if(ISSET($_POST['addcomment'])){ ! mysql_query("INSERT INTO ofirst_photogallery_comments SET ! Image = '".$_GET['PHOTO']."', ! Gallery = '".$_GET['ID']."', ! Author = '".$_POST['name']."', ! EMail = '".$_POST['email']."', ! Comment = '".$_POST['comment']."', ! Date = '".time()."'") or die(mysql_error()); ! ! 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)); ! } ! ! if(ISSET($_GET['COMMENT'])){ ! if(ISSET($user->user)){ ! mysql_query("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)); ! } ! } ! ! ?> ! <h2>View Photo From Gallery</h2> ! <form action='viewphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $_GET['PHOTO']; ?>' method='POST'> ! <table width="753"> ! <tr> ! <th valign="top">Photo Information</th> ! <th>Photo</th> </tr> ! <?php // Retrieve information about the photos related gallery *************** *** 52,81 **** ?> <tr> ! <td width="78" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="127" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="150" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Author; ?></font></td> ! <td width="185" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo date("F j, Y, g:i a",$gallery->Dates); ?></font></td> ! </tr> ! </table> ! <div align="center"> ! <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><br> ! <br> ! </p> ! </div> ! <div align="center"></div> ! <table width="75" border="0" align="center" cellpadding="5" cellspacing="0"> ! <?php // Declare dir location $dirlocate = $gallerydir.$gallery->GalleryName."/"; ! echo "<img src='".$dirlocate.$_GET['PHOTO']."'>"; ?> </table> ! <p align="center"> ! </p> ! <p align="center"><font size="2">The content within the galleries are copyright ! of this website and its ownering team.<br> ! In order to use or copy its content please contact the teams webmaster.</font></p> ! <p align="center"> </p> ! <?php include($footer); ?> \ No newline at end of file --- 70,156 ---- ?> <tr> ! <td width="308" valign="top"><table width="100%"> ! <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> ! <td><div align="right"><strong>Gallery:</strong></div></td> ! <td><?php echo $gallery->GalleryName; ?></td> ! </tr> ! <tr> ! <td><div align="right"><strong>Author:</strong></div></td> ! <td><?php echo $gallery->Author; ?></td> ! </tr> ! </table> ! <table width="100%"> ! <tr> ! <td width="37%"><div align="center"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="comment.PNG" width="23" height="25" border="0"></a></div></td> ! <td width="63%"><strong>You May Comment</strong></td> ! </tr> ! <tr> ! <td><div align="right"><strong>Name:</strong></div></td> ! <td><input name="name" type="text" id="name"></td> ! </tr> ! <tr> ! <td><div align="right"><strong>E-Mail:</strong></div></td> ! <td><input name="email" type="text" id="email"></td> ! </tr> ! <tr> ! <td> </td> ! <td><textarea name="comment" id="comment"></textarea> ! <br> ! (HTML and Emoticons enabled)</td> ! </tr> ! <tr> ! <td> </td> ! <td><input name="addcomment" type="submit" id="addcomment" value="Submit Comment"></td> ! </tr> ! </table> ! </form> ! </td> ! <td width="433" valign="top"> ! <?php // Declare dir location $dirlocate = $gallerydir.$gallery->GalleryName."/"; ! echo "<img height='400' width='500' src='".$dirlocate.$_GET['PHOTO']."'>"; ?> + </td> + </tr> </table> ! <br> ! <table width="53%"> ! <tr> ! <th> </th> ! <th valign="top">Comments for this image:</th> ! </tr> ! <?php ! $query = mysql_query("SELECT * FROM ofirst_photogallery_comments WHERE Gallery = '".$_GET['ID']."' AND Image = '".$_GET['PHOTO']."'"); ! while($comment = mysql_fetch_object($query)){ ! ?> ! <tr> ! <td width="33%"><strong><?php echo $comment->Author; ?><br></strong><a href='mailto:<?php echo $comment->EMail; ?>'>E-Mail Now</a><br> ! <?php ! if(ISSET($user->user)){ ! echo "<a href='viewphoto.php?ID=".$_GET['ID']."&PHOTO=".$_GET['PHOTO']."&COMMENT=".$comment->ID."'>Delete</a>"; ! } ! ?></td> ! <td width="67%" valign="top"> ! <?php echo slur_block(emoticon_translate($comment->Comment)); ?> ! </td> ! </tr> ! <?php ! } ! ! if(mysql_num_rows($query) == 0){ ! echo "<tr><td>--</td><td>There are no comments for this image!</td></tr>"; ! } ! ?> ! </table> ! <p> </p> ! <p>The content within the galleries are copyright of this website and its ownering ! team.<br> ! In order to use or copy its content please contact the teams webmaster.</p></p> ! <?php include($footer); ?> |
From: <dav...@us...> - 2003-08-22 04:44:53
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv11551 Added Files: photogallery.php Log Message: initial upload --- NEW FILE: photogallery.php --- <?php /* * openFIRST.photogallery - photogallery.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // NOTE: The galleryrandimg() function still needs to be developed, although will not be available yet for time restraints. // Function to preview images from any gallery on command. function galleryimage($gallery,$image,$option = true,$height = "",$width = ""){ // Call global basepath variable for use in this function global $basepath; // If option is true then preview the image as a thumb else no thumb $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '$gallery'"); $thisgallery = mysql_fetch_object($query); if($option){ echo "<a href='$basepath/photogallery/viewphoto.php?ID=$gallery&PHOTO=$image'><img border='0' alt='Gallery Image' height='$height' width='$width' src='$basepath/photogallery/gallery/$thisgallery->GalleryName/thumbs/$image'></a>"; }else{ echo "<a href='$basepath/photogallery/viewphoto.php?ID=$gallery&PHOTO=$image'><img border='0' alt='Gallery Image' height='$height' width='$width' src='$basepath/photogallery/gallery/$thisgallery->GalleryName/$image'></a>"; } } ?>\ |
From: <dav...@us...> - 2003-08-22 04:35:47
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv14614 Modified Files: photogallery.php Log Message: A backslash was accidentally added at the bottom of this script. This commit fixes that. Index: photogallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/photogallery.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** photogallery.php 20 Aug 2003 22:55:20 -0000 1.1 --- photogallery.php 20 Aug 2003 23:09:49 -0000 1.2 *************** *** 50,52 **** } ! ?>\ \ No newline at end of file --- 50,52 ---- } ! ?> \ No newline at end of file |
From: <dav...@us...> - 2003-08-22 04:07:47
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv30189 Modified Files: setup.mysql Log Message: Photogallery has now been heavily updated to work with the file common file arrangements that we had established approximately 2 months ago. The module has also been edited for the new headers design. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/photogallery/setup/setup.mysql,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** setup.mysql 27 Jun 2003 23:48:42 -0000 1.7 --- setup.mysql 20 Aug 2003 19:04:22 -0000 1.8 *************** *** 1,2 **** CREATE TABLE `ofirst_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL, `GalleryName` TEXT, `Author` TEXT, `Dates` TIME NOT NULL, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; --- 1,2 ---- CREATE TABLE `ofirst_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL, `GalleryName` TEXT, `Author` TEXT, `Dates` TIME NOT NULL, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a> | <a href="$basepath/photogallery/admin/newgallery.php">New Gallery</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; |
From: <dav...@us...> - 2003-08-22 03:09:39
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv14651 Modified Files: makethumb.php Log Message: Minor changes to die commands. Index: makethumb.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/makethumb.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** makethumb.php 20 Aug 2003 19:04:07 -0000 1.2 --- makethumb.php 21 Aug 2003 14:19:21 -0000 1.3 *************** *** 57,61 **** } } ! die("<br><br><center>Thumbnails created for gallery! [ <a href='edit.php?ID=".$_GET['ID']."'>Edit</a> ]"); } --- 57,62 ---- } } ! echo "<br><br><center>Thumbnails created for gallery! [ <a href='edit.php?ID=".$_GET['ID']."'>Edit</a> ]"; ! die(include($footer)); } |
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"> |
From: <dav...@us...> - 2003-08-22 02:50:10
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv21667 Modified Files: upload.php Log Message: Added allowance for uploading text files. Index: upload.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/upload.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** upload.php 21 Aug 2003 17:52:13 -0000 1.4 --- upload.php 21 Aug 2003 18:04:13 -0000 1.5 *************** *** 46,49 **** --- 46,51 ---- $dirlocate = "../".$gallerydir.$gallery->GalleryName; + $imgtypes .= ",txt"; + $imgtypes = explode(",",$imgtypes); |
From: <dav...@us...> - 2003-08-22 02:41:54
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv19766 Modified Files: newgallery.php index.php cleargallery.php Log Message: Changes made to basic code placement. Index: newgallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/newgallery.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** newgallery.php 20 Aug 2003 19:04:07 -0000 1.2 --- newgallery.php 21 Aug 2003 17:53:12 -0000 1.3 *************** *** 32,37 **** include("galleryglobals.php"); ! // Check if user is an admin then allow processes ! if (isset($user->user)){ // Check if user initiates create option and run create options --- 32,39 ---- include("galleryglobals.php"); ! if(! ISSET($user->user)){ ! showlogin(); ! die(include($footer)); ! } // Check if user initiates create option and run create options *************** *** 81,89 **** </form> <?php - - }else{ - showlogin(); - } include($footer); - ?> --- 83,86 ---- Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 20 Aug 2003 19:04:07 -0000 1.2 --- index.php 21 Aug 2003 17:53:12 -0000 1.3 *************** *** 32,37 **** include("galleryglobals.php"); ! // Check if user is an admin then allow processes ! if (isset($user->user)){ ?> --- 32,39 ---- include("galleryglobals.php"); ! if(! ISSET($user->user)){ ! showlogin(); ! die(include($footer)); ! } ?> *************** *** 42,50 **** <tr> <th valign="top"> <div align="center"> </div></td> ! <th><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery Name</strong></font></th> ! <th><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description</font></strong></th> ! <th> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Option</font></strong></div></th> </tr> ! <?php // Retrieve galleries from database and list them accordingly --- 44,53 ---- <tr> <th valign="top"> <div align="center"> </div></td> ! ! <th><strong>Gallery Name</strong></th> ! <th><strong>Description</strong></th> ! <th> <div align="left"><strong>Option</strong></div></th> </tr> ! <?php // Retrieve galleries from database and list them accordingly *************** *** 54,61 **** ?> <tr> ! <td width="58" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="../gallery.PNG" width="58" height="51" border="0"></a></font></td> ! <td width="145" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> ! <td width="307" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Description; ?></font></td> ! <td width="75" valign="top">[ <a href="edit.php?ID=<?php echo $gallery->ID; ?>">Edit</a> ]<br> [ <a href="edit.php?DELETE=<?php echo $gallery->ID; ?>">Delete</a> ]</td> </tr> --- 57,65 ---- ?> <tr> ! <td width="58" valign="top"><a href="../gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="../gallery.PNG" width="58" height="51" border="0"></a></td> ! <td width="145" valign="top"><?php echo $gallery->GalleryName; ?></td> ! <td width="307" valign="top"><?php echo $gallery->Description; ?></td> ! <td width="75" valign="top">[ <a href="edit.php?ID=<?php echo $gallery->ID; ?>">Edit</a> ! ]<br> [ <a href="edit.php?DELETE=<?php echo $gallery->ID; ?>">Delete</a> ]</td> </tr> *************** *** 69,79 **** ?> </table> ! <br> ! </p> <p align="center"> </p> <?php - }else{ - showlogin(); - } include($footer); ! ?> \ No newline at end of file --- 73,79 ---- ?> </table> ! <br></p> <p align="center"> </p> <?php include($footer); ! ?> Index: cleargallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/cleargallery.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cleargallery.php 20 Aug 2003 19:04:07 -0000 1.2 --- cleargallery.php 21 Aug 2003 17:53:12 -0000 1.3 *************** *** 26,47 **** * */ ! ! // Import globals and estbalish database connection include("../../config/globals.php"); include($header); include("galleryglobals.php"); ! mysql_select_db($sqldatabase,$sqlconnection); ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); // Check if user initiates the confirm of clearing the gallery if (ISSET($_GET['CONFIRM'])){ ! $dirlocate = $gallerydir.$gallery->GalleryName; $dir = opendir($dirlocate); ! while(! (($file = readdir($dir)) === false)){ if (is_file($dirlocate."/".$file)){ unlink($dirlocate."/".$file); --- 26,51 ---- * */ ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); ! if(! ISSET($user->user)){ ! showlogin(); ! die(include($footer)); ! } ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); // Check if user initiates the confirm of clearing the gallery + if (ISSET($_GET['CONFIRM'])){ ! $dirlocate = "../".$gallerydir.$gallery->GalleryName; $dir = opendir($dirlocate); ! while(! (($file = readdir($dir) === false)){ ! if (is_file($dirlocate."/".$file)){ unlink($dirlocate."/".$file); *************** *** 50,56 **** } } ! echo "<br><br><center>The <b>".$gallery->GalleryName."</b> gallery has been reset. [ <a href='manage.php'>Manage</a> ]"; die(include($footer)); } } --- 54,61 ---- } } ! echo "<br><br><center>The <b>".$gallery->GalleryName."</b> gallery has been reset. [ <a href='index.php'>Manage</a> ]<br><br>"; die(include($footer)); } + } *************** *** 58,66 **** ?> <br><br><br> <br> You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b> ! gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p> ! <br> ! <br> ! <br> ! <br> ! <br> <?php include($footer); ?> --- 63,66 ---- ?> <br><br><br> <br> You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b> ! gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p><br><br><br><br><br> <?php include($footer); ?> |
From: <dav...@us...> - 2003-08-22 02:41:27
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv19657 Modified Files: upload.php Log Message: Minor changes to code placement. Index: upload.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/upload.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** upload.php 21 Aug 2003 14:18:56 -0000 1.3 --- upload.php 21 Aug 2003 17:52:13 -0000 1.4 *************** *** 32,37 **** include("galleryglobals.php"); ! // Check if user is an admin then allow processes ! if (isset($user->user)){ $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); --- 32,39 ---- include("galleryglobals.php"); ! if(! ISSET($user->user)){ ! showlogin(); ! die(include($footer)); ! } $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); *************** *** 114,120 **** </form> <?php - }else{ - showlogin(); - } include($footer); ?> --- 116,119 ---- |
From: <dav...@us...> - 2003-08-22 02:18:14
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv15526 Removed Files: email.php Log Message: Found the remove button on WinCVS :-) Removing email.php because its already in the main root. --- email.php DELETED --- |
From: <dav...@us...> - 2003-08-22 02:06:27
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv11698 Modified Files: setup.mysql Log Message: Added module include (photogallery) to the config sql install command. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/photogallery/setup/setup.mysql,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** setup.mysql 20 Aug 2003 19:04:22 -0000 1.8 --- setup.mysql 20 Aug 2003 22:56:10 -0000 1.9 *************** *** 1,2 **** ! CREATE TABLE `ofirst_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL, `GalleryName` TEXT, `Author` TEXT, `Dates` TIME NOT NULL, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a> | <a href="$basepath/photogallery/admin/newgallery.php">New Gallery</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; --- 1,3 ---- ! CREATE TABLE `ofirst_photogallery_galleries` (`ID` TINYINT (3) UNSIGNED NOT NULL auto_increment, `GalleryName` TEXT, `Author` TEXT, `Dates` TIME NOT NULL, `Description` TEXT, `NumPhotos` INT (3) UNSIGNED DEFAULT '0' NOT NULL, PRIMARY KEY(`ID`)) TYPE=MyISAM; ! CREATE TABLE `ofirst_photogallery_comments` (`ID` tinyint(3) unsigned NOT NULL auto_increment,`Image` tinytext,`Gallery` tinytext,`Author` tinytext,`EMail` tinytext,`Comment` text,`Date` tinytext, PRIMARY KEY (`ID`)) TYPE=MyISAM; ! INSERT INTO ofirst_config SET includes='photogallery.php',modulename='photogallery',showonmenu='0',active='0',adminnavigation='<a href="$basepath/photogallery/admin/">Gallery Manager</a> | <a href="$basepath/photogallery/admin/newgallery.php">New Gallery</a>',modulenavigation='<a href="$basepath/photogallery/">View Gallery</a>'; \ No newline at end of file |
From: <dav...@us...> - 2003-08-22 00:48:59
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv27181 Added Files: comment.PNG Log Message: initial upload --- NEW FILE: comment.PNG --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv30105 Modified Files: cleargallery.php email.php index.php makethumb.php newgallery.php upload.php Added Files: edit.php Log Message: Photogallery has now been heavily updated to work with the file common file arrangements that we had established approximately 2 months ago. The module has also been edited for the new headers design. --- NEW FILE: edit.php --- <?php /* * openFIRST.photogallery - edit.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Import globals and estbalish database connection include("../../config/globals.php"); include($header); include("galleryglobals.php"); // Check if user is an admin then allow processes if (isset($user->user)){ // Check if user initiated delete and run delete process if(ISSET($_GET['DELETE'])){ $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['DELETE']."'") or die(mysql_error()); $gallery = mysql_fetch_object($query); rmdir("../".$gallerydir.$gallery->GalleryName."/thumbs") or die("<br><br><center>Can't remove gallery! [ <a href='index.php'>Manage</a> ]"); rmdir("../".$gallerydir.$gallery->GalleryName) or die("<br><br><center>Can't remove gallery! [ <a href='index.php'>Manage</a> ]"); mysql_query("DELETE FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['DELETE']."'") or die(mysql_error()); echo "<br><br><center>The gallery has been deleted! [ <a href='manage.php'>Manage</a> ]</center><br>"; die(include($footer)); } // Check if user initiated delete of particular photo and run photo and thumb delete if(ISSET($_GET['DELETEPHOTO'])){ $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'") or die(mysql_error()); $gallery = mysql_fetch_object($query); unlink("../".$gallerydir.$gallery->GalleryName."/".$_GET['PHOTO']) or die("<br><br><center>Can't remove gallery! [ <a href='manage.php'>Manage</a> ]"); if (file_exists("../".$gallerydir.$gallery->GalleryName."/thumbs/".$_GET['PHOTO'])){ unlink("../".$gallerydir.$gallery->GalleryName."/thumbs/".$_GET['PHOTO']) or die("<br><br><center>Can't remove gallery! [ <a href='manage.php'>Manage</a> ]"); die("<br><br><center>The photo and its thumbnail have been deleted! [ <a href='edit.php?ID=".$_GET['ID']."'>Manage</a> ]</center>"); }else{ die("<br><br><center>The photo has been deleted! [ <a href='edit.php?ID=".$_GET['ID']."'>Manage</a> ]</center>"); } } $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); ?> <h2>Edit Gallery</h2> <p><em><?php echo $gallery->GalleryName; ?> Options - </em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a> | <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> | <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a> | <a href="edit.php?DELETE=<?php echo $_GET['ID']; ?>">Delete Gallery</a> (Must be empty to perform operation)</p> <table width="457" align="center"> <tr> <th valign="top"> <div align="center"> </div></th> <th><strong>Photo Name </strong></th> <th><strong>Thumbnail</strong></th> <th><strong>Option</strong></th> </tr> <?php // List photos in current gallery $dirlocate = "../".$gallerydir.$gallery->GalleryName; $dir = opendir($dirlocate); $num = 0; while(! (($file = readdir($dir)) === false)){ if (is_file($dirlocate."/".$file)){ $num++; ?> <tr> <td valign="top"><div align="center"> <a href="viewphoto.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>" target="_blank"><img src="../photo.PNG" width="27" height="31" border="0"></a></div></td> <td valign="top"><?php echo $file; ?></td> <td valign="top"> <?php if (file_exists($dirlocate."/thumbs/".$file)){ echo "Yes"; }else{ echo "No"; } ?> </td> <td valign="top"><a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>&PHOTO=<?php echo $file; ?>'>Make Thumbnail</a> <br> <a href='edit.php?ID=<?php echo $_GET['ID']; ?>&DELETEPHOTO=True&PHOTO=<?php echo $file; ?>'>Delete</a></td> </tr> <?php } } if($num == 0){ echo "<tr><td>--</td><td><br>No photos in gallery!<br><br></td><td>--</td><td>--</td></tr>"; } ?> </table> <center> <br> <a href='makethumb.php?ID=<?php echo $_GET['ID']; ?>; ?>&OPTION=all'>Make Thumbnail's for Entire Gallery</a><br> <br> </center> <?php }else{ showlogin(); } include($footer); ?> Index: cleargallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/cleargallery.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cleargallery.php 8 Jun 2003 02:40:59 -0000 1.1 --- cleargallery.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,32 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); --- 28,32 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); *************** *** 34,38 **** mysql_select_db($sqldatabase,$sqlconnection); ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); --- 34,38 ---- mysql_select_db($sqldatabase,$sqlconnection); ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); *************** *** 50,64 **** } } ! die("<br><br><center>The <b>".$gallery->GalleryName."</b> gallery has been reset. [ <a href='manage.php'>Manage</a> ]"); } } ! ?> ! <h2>Edit Gallery</h2><p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p> ! <p><em><?php echo $gallery->GalleryName; ?> Options -</em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit</a> ! <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> ! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>">Clear Gallery</a></p> ! <br><br><p align="center">You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b> ! gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p> <?php include($footer); ?> --- 50,66 ---- } } ! echo "<br><br><center>The <b>".$gallery->GalleryName."</b> gallery has been reset. [ <a href='manage.php'>Manage</a> ]"; ! die(include($footer)); } } ! ?> <br><br><br> <br> ! You are trying to clear the entire <b><?php echo $gallery->GalleryName; ?></b> ! gallery! <a href="cleargallery.php?ID=<?php echo $_GET['ID']; ?>&CONFIRM=True">Confirm</a></p> ! <br> ! <br> ! <br> ! <br> ! <br> <?php include($footer); ?> Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/email.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** email.php 8 Jun 2003 02:40:59 -0000 1.1 --- email.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,32 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); --- 28,32 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); *************** *** 79,84 **** mail($recipientemail,$title." Gallery Photo Sender",$message,$headers) or die("<br><br><br><center>E-Mail was <b>not</b> successfully sent!</center>"); ! ! die("<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"); } --- 79,84 ---- 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)); } Index: index.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:40:59 -0000 1.1 --- index.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,37 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); - mysql_select_db($sqldatabase,$sqlconnection); - // Check if user is an admin then allow processes if (isset($user->user)){ --- 28,35 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); // Check if user is an admin then allow processes if (isset($user->user)){ *************** *** 39,61 **** ?> <h2>Gallery Manager</h2> ! <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p> <p align="center"> ! <table width="633" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! <td><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description</font></strong></td> ! <td> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Option</font></strong></div></td> </tr> <?php // Retrieve galleries from database and list them accordingly ! $query = mysql_query("SELECT * FROM ofirst_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="58" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="gallery.PNG" width="58" height="51" border="0"></a></font></td> <td width="145" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="307" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Description; ?></font></td> --- 37,58 ---- ?> <h2>Gallery Manager</h2> ! Here is a list of current galleries installed on our website. <p align="center"> ! <table width="633" align="center"> ! <tr> ! <th valign="top"> <div align="center"> </div></td> ! <th><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery Name</strong></font></th> ! <th><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description</font></strong></th> ! <th> <div align="left"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Option</font></strong></div></th> </tr> <?php // Retrieve galleries from database and list them accordingly ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries"); while($gallery = mysql_fetch_object($query)){ ?> <tr> ! <td width="58" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../gallery.php?ID=<?php echo $gallery->ID; ?>"><img src="../gallery.PNG" width="58" height="51" border="0"></a></font></td> <td width="145" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->GalleryName; ?></font></td> <td width="307" valign="top"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $gallery->Description; ?></font></td> Index: makethumb.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/makethumb.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** makethumb.php 8 Jun 2003 02:40:59 -0000 1.1 --- makethumb.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,50 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); include("preview.php"); - mysql_select_db($sqldatabase,$sqlconnection); - // Check if user is an admin then allow processes if (isset($user->user)){ ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'") or die(mysql_error()); $gallery = mysql_fetch_object($query); ! $dirlocate = $gallerydir.$gallery->GalleryName; // Make thumbnail for particular photo if(ISSET($_GET['PHOTO'])){ makethumb($dirlocate,$_GET['PHOTO'],$imgtypes); ! die("<br><br><center>Thumbnail created! [ <a href='edit.php?ID=".$_GET['ID']."'>Edit</a> ]"); } --- 28,49 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); include("preview.php"); // Check if user is an admin then allow processes if (isset($user->user)){ ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'") or die(mysql_error()); $gallery = mysql_fetch_object($query); ! $dirlocate = "../".$gallerydir.$gallery->GalleryName; // Make thumbnail for particular photo if(ISSET($_GET['PHOTO'])){ makethumb($dirlocate,$_GET['PHOTO'],$imgtypes); ! echo "<br><br><center>Thumbnail created! [ <a href='edit.php?ID=".$_GET['ID']."'>Edit</a> ]"; ! die(include($footer)); } Index: newgallery.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/newgallery.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newgallery.php 20 Aug 2003 16:54:21 -0000 1.1 --- newgallery.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,38 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); - mysql_select_db($sqldatabase,$sqlconnection); - - // Check if user is an admin then allow processes if (isset($user->user)){ --- 28,35 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); // Check if user is an admin then allow processes if (isset($user->user)){ *************** *** 41,90 **** if(ISSET($_POST['create'])){ ! mkdir($gallerydir.$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); ! mkdir($gallerydir.$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); ! mysql_query("INSERT INTO ofirst_galleries (GalleryName, Author, Date, Description) values( '".$_POST['galleryname']."' ! ,'".$_POST['author']."' ,'".time()."' ,'".$_POST['description']."')") or die(mysql_error()); ! ! die("<br><br><center>New gallery added! [ <a href='manage.php'>Manage</a> ]</center>"); } ?> <h2>New Gallery</h2> ! <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p> <form method="POST" action="newgallery.php"> ! <table width="499" border="0" align="center" cellpadding="6" cellspacing="0"> ! <tr bgcolor="#999999"> ! <td valign="top"> <div align="center"> </div></td> ! <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery ! Name</strong></font></td> ! </tr> ! <tr> ! <td width="135" valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Gallery ! Name:</font></div></td> ! <td width="275" valign="top"><input name="galleryname" type="text" id="galleryname"></td> ! </tr> ! <tr> ! <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Author:</font></div></td> ! <td valign="top"><font size="2"> ! <input name="author" type="text" id="author"> ! (Temporarily an option until openfirst.members is released)</font></td> ! </tr> ! <tr> ! <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date:</font></div></td> ! <td valign="top"><?php echo date("F j, Y, g:i a",time()); ?></td> ! </tr> ! <tr> ! <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description:</font></div></td> ! <td valign="top"> <textarea name="description" cols="40" rows="10" id="description"></textarea></td> ! </tr> ! <tr> ! <td valign="top"> </td> ! <td valign="top"><input name="create" type="submit" id="create" value="Create Gallery"></td> ! </tr> ! </table> </form> <?php --- 38,82 ---- if(ISSET($_POST['create'])){ ! mkdir("../".$gallerydir.$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); ! mkdir("../".$gallerydir.$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); ! mysql_query("INSERT INTO ofirst_photogallery_galleries (GalleryName, Author, Dates, Description) values( '".$_POST['galleryname']."' ! ,'".$user->user."' ,'".time()."' ,'".$_POST['description']."')") or die(mysql_error()); ! echo "<br><br><center>New gallery added! [ <a href='index.php'>Manage</a> ]</center><br><br>"; ! die(include($footer)); } ?> <h2>New Gallery</h2> ! <p>You may use this page to install new galleries. Note that you may not upload<br> ! images from this script, you can only create the folders first.</p> <form method="POST" action="newgallery.php"> ! <table width="499" align="center"> ! <tr bgcolor="#999999"> ! <th valign="top"> <div align="center"> </div></th> ! <th><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>New ! Gallery Options</strong></font></th> ! </tr> ! <tr> ! <td width="130" valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Gallery ! Name:</font></div></td> ! <td width="345" valign="top"><input name="galleryname" type="text" id="galleryname"></td> ! </tr> ! <tr> ! <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date:</font></div></td> ! <td valign="top"><?php echo date("F j, Y, g:i a",time()); ?></td> ! </tr> ! <tr> ! <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description:</font></div></td> ! <td valign="top"> <textarea name="description" cols="40" rows="10" id="description"></textarea></td> ! </tr> ! <tr> ! <td valign="top"> </td> ! <td valign="top"><input name="create" type="submit" id="create" value="Create Gallery"></td> ! </tr> ! </table> </form> <?php Index: upload.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/admin/upload.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** upload.php 8 Jun 2003 02:40:59 -0000 1.1 --- upload.php 20 Aug 2003 19:04:07 -0000 1.2 *************** *** 28,41 **** // Import globals and estbalish database connection ! include("../config/globals.php"); include($header); include("galleryglobals.php"); - - mysql_select_db($sqldatabase,$sqlconnection); // Check if user is an admin then allow processes if (isset($user->user)){ ! $query = mysql_query("SELECT * FROM ofirst_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); --- 28,39 ---- // Import globals and estbalish database connection ! include("../../config/globals.php"); include($header); include("galleryglobals.php"); // Check if user is an admin then allow processes if (isset($user->user)){ ! $query = mysql_query("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); $gallery = mysql_fetch_object($query); *************** *** 44,48 **** ini_set("max_execution_time",$gallery_execution_time); ! $dirlocate = $gallerydir.$gallery->GalleryName; $imgtypes = explode(",",$imgtypes); --- 42,46 ---- ini_set("max_execution_time",$gallery_execution_time); ! $dirlocate = "../".$gallerydir.$gallery->GalleryName; $imgtypes = explode(",",$imgtypes); *************** *** 92,96 **** ?> <h2>Upload to Gallery</h2> - <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p> <p><em><?php echo $gallery->GalleryName; ?> Options - </em><a href="edit.php?ID=<?php echo $_GET['ID']; ?>">Edit </a> <a href="upload.php?ID=<?php echo $_GET['ID']; ?>">Upload Photos</a> --- 90,93 ---- |