openfirst-cvscommit Mailing List for openFIRST (Page 95)
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: <xt...@us...> - 2003-06-21 12:42:49
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv2970 Modified Files: index.php logger.php rawdata.php reset.php track.php Log Message: Add user login checking, fix links (including lingering case-sensitivity issues), fix headers (give credit where it's due) Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:23:08 -0000 1.1 --- index.php 21 Jun 2003 12:42:44 -0000 1.2 *************** *** 5,9 **** * Copyright (C) 2003, * openFIRST Project ! * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify --- 5,9 ---- * Copyright (C) 2003, * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify *************** *** 31,35 **** include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); --- 31,35 ---- include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); *************** *** 67,71 **** <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> --- 67,71 ---- <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> *************** *** 73,77 **** <p> ! <form action="viewLog.php" method="POST"> <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> --- 73,77 ---- <p> ! <form action="./" method="POST"> <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> *************** *** 127,131 **** echo " <td>$log->HostLookup</td>"; ! echo " <td>[ <a href='viewLog.php?DELETE=$log->IPAddress'>Delete</a> ] [ <a href='track.php?ID=$log->IPAddress'>Track</a> ]</td>"; echo "</tr>"; --- 127,131 ---- echo " <td>$log->HostLookup</td>"; ! echo " <td>[ <a href='./?DELETE=$log->IPAddress'>Delete</a> ] [ <a href='track.php?ID=$log->IPAddress'>Track</a> ]</td>"; echo "</tr>"; Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** logger.php 21 Apr 2003 20:20:49 -0000 1.2 --- logger.php 21 Jun 2003 12:42:44 -0000 1.3 *************** *** 1,4 **** ! <?php ! mysql_select_db($sqldatabase,$sqlconnection); --- 1,30 ---- ! <?php ! /* ! * openFIRST.logger - logger.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 ! * ! */ ! mysql_select_db($sqldatabase,$sqlconnection); Index: rawdata.php =================================================================== RCS file: /cvsroot/openfirst/logger/rawdata.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rawdata.php 5 May 2003 11:19:24 -0000 1.3 --- rawdata.php 21 Jun 2003 12:42:44 -0000 1.4 *************** *** 1,6 **** ! <?php include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_POST['view'])){ --- 1,32 ---- ! <?php ! /* ! * openFIRST.logger - rawdata.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"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_POST['view'])){ *************** *** 20,24 **** ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 46,50 ---- ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/logger/reset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reset.php 5 May 2003 11:19:24 -0000 1.2 --- reset.php 21 Jun 2003 12:42:44 -0000 1.3 *************** *** 1,15 **** ! <?php include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_POST['confirm'])){ mysql_query("DELETE FROM ofirst_logger"); echo "<br><br><center>Logger system has been reset<center>"; } ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawData.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 1,46 ---- ! <?php ! /* ! * openFIRST.logger - reset.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"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_POST['confirm'])){ + if(isset($user->user) == true && $user->membertype == 'administrator') { mysql_query("DELETE FROM ofirst_logger"); echo "<br><br><center>Logger system has been reset<center>"; + } else { + echo("You are not logged in, or do not have sufficient permission to reset the logger."); + showlogin(); + } } ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> *************** *** 26,28 **** </p> </form></p> ! <?php include("$footer"); ?> \ No newline at end of file --- 57,59 ---- </p> </form></p> ! <?php include("$footer"); ?> Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** track.php 1 Jun 2003 17:53:25 -0000 1.4 --- track.php 21 Jun 2003 12:42:44 -0000 1.5 *************** *** 2,6 **** include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_GET['DELETE'])){ --- 2,6 ---- include("../config/globals.php"); include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_GET['DELETE'])){ *************** *** 12,16 **** ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 12,16 ---- ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> *************** *** 45,49 **** echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='viewLog.php?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; } --- 45,49 ---- echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; } |
From: <xt...@us...> - 2003-06-21 12:21:39
|
Update of /cvsroot/openfirst/feedback In directory sc8-pr-cvs1:/tmp/cvs-serv32581 Modified Files: index.php Log Message: Add information as to whether user is registered or not to feedback emails Index: index.php =================================================================== RCS file: /cvsroot/openfirst/feedback/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:10:02 -0000 1.1 --- index.php 21 Jun 2003 12:21:36 -0000 1.2 *************** *** 65,69 **** replies): <input type="text" name="from" ! style="width: 150px;" /> <br />Type of feedback: <input type="radio" name="type" value="comment" />Comment --- 65,69 ---- replies): <input type="text" name="from" ! style="width: 150px;" value="<?php echo($user->email); ?>" /> <br />Type of feedback: <input type="radio" name="type" value="comment" />Comment *************** *** 75,79 **** Message: <br /><textarea name="message" cols="40" ! rows="20">Insert your feedback here.</textarea> <br /> <input type="submit" value="Send Feedback" /> --- 75,80 ---- Message: <br /><textarea name="message" cols="40" ! rows="20">Insert your feedback here. ! <?php echo($user->signature); ?></textarea> <br /> <input type="submit" value="Send Feedback" /> *************** *** 85,90 **** if ($messageallowed == true) { // Mail who they wish to contact. mail($_POST["to"], ! "Feedback: " . $_POST["type"], $_POST["message"] . "\r\n\r\n--\r\nMessage generated by openfirst.feedback. For more information about openFIRST, see: --- 86,92 ---- if ($messageallowed == true) { // Mail who they wish to contact. + if (isset($user->user)) { $isuser = "registered user"; } else { $isuser = "unregistered user"; } mail($_POST["to"], ! "Feedback: $isuser " . $_POST["type"], $_POST["message"] . "\r\n\r\n--\r\nMessage generated by openfirst.feedback. For more information about openFIRST, see: |
From: <xt...@us...> - 2003-06-21 12:21:39
|
Update of /cvsroot/openfirst/feedback/setup In directory sc8-pr-cvs1:/tmp/cvs-serv32581/setup Modified Files: setup.mysql Log Message: Add information as to whether user is registered or not to feedback emails Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/feedback/setup/setup.mysql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mysql 8 Jun 2003 02:10:02 -0000 1.1 --- setup.mysql 21 Jun 2003 12:21:36 -0000 1.2 *************** *** 2,4 **** name TEXT, email TEXT ! ); \ No newline at end of file --- 2,4 ---- name TEXT, email TEXT ! ); |
From: <xt...@us...> - 2003-06-21 11:56:31
|
Update of /cvsroot/openfirst/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv30280 Modified Files: sign.php Log Message: Add auto-fill functionality for members who wish to sign guestbook Index: sign.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/sign.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sign.php 31 May 2003 19:04:53 -0000 1.3 --- sign.php 21 Jun 2003 11:56:27 -0000 1.4 *************** *** 33,37 **** <h1>Sign Guest Book</h1> ! <p><a href="view.php">View Guest Book</a> <a href="<?php echo($home); ?>">Return to main site</a> </p> --- 33,37 ---- <h1>Sign Guest Book</h1> ! <p><a href="./">View Guest Book</a> <a href="<?php echo($home); ?>">Return to main site</a> </p> *************** *** 46,61 **** ?> <p> ! <br /><img src="person.png" alt="Name: " /> Name <input type="text" name="guest" style="width: 300px;" /> ! <br /><img src="email.png" alt="E-mail Address: " /> E-mail Address <input type="text" name="email" style="width: 300px;" /> ! <br /><img src="icq.png" alt="ICQ UIN: " /> ICQ UIN <input type="text" name="icq" style="width: 300px;" /> ! <br /><img src="aim.png" alt="AIM Screen name: " /> AIM Screen Name <input type="text" name="aim" style="width: 300px;" /> ! <br /><img src="msmsgs.png" alt="MSN Messenger Address: " /> MSN Messenger Address <input type="text" name="msn" style="width: 300px;" /> ! <br /><img src="yahoo.png" alt="Yahoo! Messenger Address: " /> Yahoo! Messenger Address <input type="text" name="yim" style="width: 300px;" /> ! <br /><img src="irc.png" alt="IRC: " /> IRC Address <input type="text" name="irc" style="width: 300px;" /> ! <br /><img src="webpage.png" alt="Web Page" /> Web Page Address (include the http://) <input type="text" name="webpage" style="width: 300px;" /> ! <br /><img src="world.png" alt="Location: "/> Location <input type="text" name="location" style="width: 300px;" /> <br />Comment<br /> <textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"> ! </textarea> <br /> <input type="submit" title="Submit" /> --- 46,61 ---- ?> <p> ! <br /><img src="person.png" alt="Name: " /> Name <input type="text" name="guest" style="width: 300px;" value="<?php echo($user->firstname . ' ' . $user->lastname); ?>" /> ! <br /><img src="email.png" alt="E-mail Address: " /> E-mail Address <input type="text" name="email" style="width: 300px;" value="<?php echo($user->email); ?>" /> ! <br /><img src="icq.png" alt="ICQ UIN: " /> ICQ UIN <input type="text" name="icq" style="width: 300px;" value="<?php echo($user->icq); ?>" /> ! <br /><img src="aim.png" alt="AIM Screen name: " /> AIM Screen Name <input type="text" name="aim" style="width: 300px;" value="<?php echo($user->aim); ?>" /> ! <br /><img src="msmsgs.png" alt="MSN Messenger Address: " /> MSN Messenger Address <input type="text" name="msn" style="width: 300px;" value="<?php echo($user->msn); ?>" /> ! <br /><img src="yahoo.png" alt="Yahoo! Messenger Address: " /> Yahoo! Messenger Address <input type="text" name="yim" style="width: 300px;" value="<?php echo($user->yim); ?>" /> ! <br /><img src="irc.png" alt="IRC: " /> IRC Address <input type="text" name="irc" style="width: 300px;" value="<?php echo($user->irc); ?>" /> ! <br /><img src="webpage.png" alt="Web Page" /> Web Page Address (include the http://) <input type="text" name="webpage" style="width: 300px;" value="<?php echo($user->homepage); ?>" /> ! <br /><img src="world.png" alt="Location: "/> Location <input type="text" name="location" style="width: 300px;" value="<?php echo($user->location); ?>" /> <br />Comment<br /> <textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"> ! <?php echo($user->signature); ?> </textarea> <br /> <input type="submit" title="Submit" /> |
From: <xt...@us...> - 2003-06-21 11:45:56
|
Update of /cvsroot/openfirst/awards/admin In directory sc8-pr-cvs1:/tmp/cvs-serv29140/admin Modified Files: index.php Log Message: Fix awards links and images to bring up to date with base and the appropriate conventions Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 01:49:33 -0000 1.1 --- index.php 21 Jun 2003 11:45:53 -0000 1.2 *************** *** 26,30 **** * */ ! include("../config/globals.php"); include($header); mysql_select_db("openFIRST",$sqlconnection); --- 26,30 ---- * */ ! include("../../config/globals.php"); include($header); mysql_select_db("openFIRST",$sqlconnection); *************** *** 37,41 **** mysql_query("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ".mysql_error()); ! die("<br><br><center>Award information has been deleted. [ <a href='manage.php'>Manage Award</a> ]"); } --- 37,42 ---- mysql_query("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ".mysql_error()); ! echo("<br><br><center>Award information has been deleted. [ <a href='./'>Manage Award</a> ]"); ! die(include($footer)); } *************** *** 49,53 **** ,'".$_POST['recipient']."')") or die("INSERT: ".mysql_error()); ! die("<br><br><center>Congratulations on your new award. Award submitted! [ <a href='manage.php'>Manage Award</a> ]"); } --- 50,55 ---- ,'".$_POST['recipient']."')") or die("INSERT: ".mysql_error()); ! echo("<br><br><center>Congratulations on your new award. Award submitted! [ <a href='./'>Manage Award</a> ]"); ! die(include($footer)); } *************** *** 55,61 **** <h1>Manage Award Information</h1> ! ! <p><a href="manage.php">Manage Awards </a> <a href="awards.php">View Awards</a> <?php membersmenu($user->membertype); ?></p> ! <form name="form1" method="post" action="manage.php"> <table width="500" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#999999"> <tr bgcolor="#999999"> --- 57,64 ---- <h1>Manage Award Information</h1> ! <?php membersmenu($user->membertype); ?> ! <p><a href="./">Manage Awards </a> <a href="<?php echo("$basepath/awards/"); ?>">View Awards</a> ! </p> ! <form name="form1" method="post" action="./"> <table width="500" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#999999"> <tr bgcolor="#999999"> *************** *** 84,90 **** <td><table width="75%" border="0" cellspacing="0" cellpadding="4"> <tr> ! <td><div align="center"><img src="awardsgold.png" alt="Gold" width="25" height="30"></div></td> ! <td><div align="center"><img src="awardssilver.png" alt="Silver" width="25" height="30"></div></td> ! <td><div align="center"><img src="awardsbronze.png" alt="Bronze" width="25" height="30"></div></td> </tr> <tr> --- 87,93 ---- <td><table width="75%" border="0" cellspacing="0" cellpadding="4"> <tr> ! <td><div align="center"><img src="<?php echo($basepath); ?>/awards/awardsgold.png" alt="Gold" width="25" height="30"></div></td> ! <td><div align="center"><img src="<?php echo($basepath); ?>/awards/awardssilver.png" alt="Silver" width="25" height="30"></div></td> ! <td><div align="center"><img src="<?php echo($basepath); ?>/awards/awardsbronze.png" alt="Bronze" width="25" height="30"></div></td> </tr> <tr> *************** *** 122,131 **** ?> <tr> ! <td><img src="awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> <td><?php echo $awards->AwardName; ?></td> <td><?php echo $awards->Event; ?></td> <td><?php echo $awards->Date; ?></td> <td><?php echo $awards->Recipient; ?></td> ! <td><div align="center">[ <a href='manage.php?DELETE=<?php echo $awards->ID; ?>'>Delete</a> ]</div></td> </tr> --- 125,134 ---- ?> <tr> ! <td><img src="<?php echo($basepath); ?>/awards/awards<?php echo $awards->Image; ?>.png" alt="<?php echo $awards->Image; ?>"></td> <td><?php echo $awards->AwardName; ?></td> <td><?php echo $awards->Event; ?></td> <td><?php echo $awards->Date; ?></td> <td><?php echo $awards->Recipient; ?></td> ! <td><div align="center">[ <a href='./?DELETE=<?php echo $awards->ID; ?>'>Delete</a> ]</div></td> </tr> |
From: Tim G. <tim...@sy...> - 2003-06-08 03:02:56
|
Please accept my apologies for the recent flood of CVS commit mailings (the near 50 of them). They are due to a major restructuring of the way the openFIRST system works. The new way of doing things provides much more intuitive addresses, and a common setup. However, with these new changes, several links within openFIRST modules may be broken. I would like to ask everyone to check for these broken links and make the appropriate patches as soon as is possible. For most of the files that appear to be missing, they have been moved to 'index.php' as they represent the main purpose of a particular module. Also, please perform audits of each line of code in each module to make sure it complies with the established standards, and make note of configuration information that must be collected for each module (ie, things that were once part of globals.php but no longer are, or those which required module-specific configuration options). These configuration options will be dealt with in as timely a manner as can be managed at this point. I also realize that now is exam time, or nearing exam time for all of us, and that none of us have as much time to work on openFIRST as would be desired (myself included). However, the changes must be made, and openFIRST will be a much better system for it. Documentation should now begin to be written, as the current file names should be considered as relatively stable (exception to this general rule: files in config dealing with managing things, and some files in members). -- Tim Ginn ICQ: 159802339 MSN: tim...@sy... AIM: xTimG YIM: xtimg Webmaster, Port Perry Robotics (Team #1006) http://www.portperryrobotics.ca Developer, Dark Oblivion Project http://darkoblivion.sf.net Administrator/Developer, OpenFIRST Project http://openfirst.sf.net Forum Administrator, FIRST Scouting Network http://fsn.vps.fluidhosting.com |
From: <xt...@us...> - 2003-06-08 02:53:38
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv23790 Removed Files: addnews.php setup.mysql Log Message: Remove functionality that really shouldn't have been moved here in the first place anyway (give us a break, we're tired) --- addnews.php DELETED --- --- setup.mysql DELETED --- |
From: <dav...@us...> - 2003-06-08 02:53:04
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv23595/admin Added Files: index.php Log Message: initial upload --- NEW FILE: index.php --- <?php /* * openFIRST.news - index.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@sy...> * * 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); membersmenu($user->membertype); echo("<h1>Add News</h1>"); if($user->membertype == "administrator") { if($_POST["news"] == "") { // Display a form for news. ?> <form method="post" action="addnews.php"> Message Title: <input name="title" type="text" value="openFIRST News"> <br />Message: <br /><textarea name="news" cols="40" rows="20">Insert your news here.</textarea> <br /> <input type="submit" value="Add News Item" /> <input type="reset" value="Clear News Item" /> </form> <?php } else { // Add the news. // $_POST["news"], $_POST["title"] $now = date("D M j G:i:s T Y"); $query = mysql_query("INSERT INTO ofirst_news (date, poster, title, news) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "');"); echo("The news item " . $_POST["title"] . " has been added."); } } else { echo("You must be logged on as an administrative user to add news."); } include($footer); ?> |
From: <dav...@us...> - 2003-06-08 02:51:08
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv23145 Modified Files: index.php Log Message: Edit to news.php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:35:12 -0000 1.1 --- index.php 8 Jun 2003 02:51:05 -0000 1.2 *************** *** 1,5 **** <?php /* ! * openFIRST.news - viewnews.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.news - news.php * * Copyright (C) 2003, *************** *** 26,53 **** * */ ! mysql_select_db($sqldatabase,$sqlconnection); ! ! function shownews($limit = 5) { ! ! // Get a list of the users able to ! // be contacted via the feedback form. ! $query = mysql_query("SELECT * FROM ofirst_news ORDER BY ID DESC LIMIT $limit;"); ! ! if (mysql_num_rows($query) != 0){ ! ! while($news = mysql_fetch_object($query)){ ! echo(" ! <p><strong>$news->title</strong> ! <br />Posted on $news->date by $news->poster ! <br />$news->news ! </p>"); ! } ! } else { ! echo("There is not yet any ! news."); ! } ! return(0); ! } ?> --- 26,35 ---- * */ + include("../config/globals.php"); + include($header); + include("./viewnews.php"); ! shownews(5); // Shows 5 pieces of news. ! include($footer); ?> |
From: <dav...@us...> - 2003-06-08 02:49:29
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22781/admin Added Files: addnews.php Log Message: initial upload --- NEW FILE: addnews.php --- <?php /* * openFIRST.news - addnews.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@sy...> * * 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); membersmenu($user->membertype); echo("<h1>Add News</h1>"); if($user->membertype == "administrator") { if($_POST["news"] == "") { // Display a form for news. ?> <form method="post" action="addnews.php"> Message Title: <input name="title" type="text" value="openFIRST News"> <br />Message: <br /><textarea name="news" cols="40" rows="20">Insert your news here.</textarea> <br /> <input type="submit" value="Add News Item" /> <input type="reset" value="Clear News Item" /> </form> <?php } else { // Add the news. // $_POST["news"], $_POST["title"] $now = date("D M j G:i:s T Y"); $query = mysql_query("INSERT INTO ofirst_news (date, poster, title, news) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "');"); echo("The news item " . $_POST["title"] . " has been added."); } } else { echo("You must be logged on as an administrative user to add news."); } include($footer); ?> |
From: <dav...@us...> - 2003-06-08 02:49:29
|
Update of /cvsroot/openfirst/news/setup In directory sc8-pr-cvs1:/tmp/cvs-serv22781/setup Added Files: news.mysql Log Message: initial upload --- NEW FILE: news.mysql --- CREATE TABLE `ofirst_news` ( `ID` int(6) unsigned NOT NULL auto_increment, `date` TINYTEXT, `poster` TINYTEXT, `title` TINYTEXT, `news` TEXT, PRIMARY KEY (`ID`) ) Type=MyISAM; |
From: <dav...@us...> - 2003-06-08 02:44:55
|
Update of /cvsroot/openfirst/news/setup In directory sc8-pr-cvs1:/tmp/cvs-serv21860/setup Log Message: Directory /cvsroot/openfirst/news/setup added to the repository |
From: <dav...@us...> - 2003-06-08 02:41:04
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv21108/admin Added Files: upload.php preview.php makethumb.php index.php email.php cleargallery.php Log Message: initial upload --- NEW FILE: upload.php --- <?php /* * openFIRST.photogallery - upload.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"); 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); // Check if user initiates upload process and run upload process if(ISSET($_POST['upload'])){ ini_set("max_execution_time",$gallery_execution_time); $dirlocate = $gallerydir.$gallery->GalleryName; $imgtypes = explode(",",$imgtypes); for ($num=1;$num<=$_POST['NUM_UPLOADS'];$num++){ $continue = false; // NOTE: The change to uppercase in the if statement helps remove errors // I noticed this when I found that some software applications save images // extensions as upper case, so just making sure it doesn't give people problems. foreach($imgtypes As $type){ $extension = substr($_FILES['upload'.$num]['name'],-3); if(strtoupper($extension) == strtoupper($type)){ $continue = true; continue; } } if(! $continue){ echo "<center><br>".$_FILES['upload'.$num]['name']." - ".$_FILES['upload'.$num]['size']." - ".$_FILES['upload'.$num]['type']." - <font color='Red'>Illegal file type!</font></center>"; continue; } 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']." - "; if(empty($error)){ echo "<font color='Green'>Successful</font><br></center>\n"; }else{ echo "<font color='Red'>Not Successful</font><br></center>\n"; } } } } // Prepare fields for uploading next time if(ISSET($_POST['setuploads'])){ $uploads = $_POST['uploads']; }else{ $uploads = 5; } ?> <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> <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'> <input name="uploads" type="text" id="uploads" size="2" maxlength="2"> <input name="setuploads" type="submit" id="setuploads" value="Add Spaces"> <input type="hidden" name="MAX_FILE_SIZE" size="5200000"> <input type="hidden" name="NUM_UPLOADS" value="<?php echo $uploads; ?>"><br> <?php // Output upload fields depending on the user request or not for($n = 1; $n <= $uploads ; $n++ ){ echo $n.". <input type='file' name='upload".$n."' size='29'><br>\n"; } ?> <br> <input name="upload" type="submit" value="Upload To Gallery"> </form> <?php }else{ showlogin(); } include($footer); ?> --- NEW FILE: preview.php --- <?php /* * openFIRST.photogallery - preview.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@sy...> * * 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 * */ function makethumb($imagesrc,$imagename,$imgtypes){ $img = $imagesrc."/".$imagename; $imgt = explode(",", $imgtypes); // Gather information about GD's current state and version $a = 'function gd_info() { $array = Array("GD Version" => ""); ob_start(); eval("phpinfo();"); $info = ob_get_contents(); ob_end_clean(); foreach(explode("\n", $info) as $line) { if(strpos($line, "GD Version")!==false) $array["GD Version"] = trim(str_replace("GD Version", "", strip_tags($line))); return $array; }'; // Run through the different file types and create images for ($x = 0; $x < count($imgt); $x++) { $imgt[$x] = strtolower($imgt[$x]); if($imgt[$x] == strtolower(substr($img, strrpos($img, ".") + 1, strlen($img) - strrpos($img, ".")))) { // Run options if file is png if($imgt[$x] == "png") { if(function_exists("imagepng") == true) { $src_img = imagecreatefrompng("$img"); $new_h = 100; $new_w = 100; if(strpos($a["GD Version"], "2.0") > 0) { $dst_img = imagecreatetruecolor($new_w,$new_h); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); }else { $dst_img = imagecreate($new_w,$new_h); imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } imagepng($dst_img,$imagesrc."/thumbs/".$imagename); imagedestroy($dst_img); imagedestroy($src_img); } } // Run options if file is for extension jpg or jpeg if($imgt[$x] == "jpg" || $imgt[$x] == "jpeg") { if(function_exists("imagejpeg") == true) { $src_img = imagecreatefromjpeg("$img"); $new_h = 100; $new_w = 100; if(strpos($a["GD Version"], "2.0") > 0) { $dst_img = imagecreatetruecolor($new_w,$new_h); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } else { $dst_img = imagecreate($new_w,$new_h); imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } imagejpeg($dst_img,$imagesrc."/thumbs/".$imagename); imagedestroy($dst_img); imagedestroy($src_img); } } // Run options if file is gif (NOTE THAT GD2 DOES NOT SUPPORT THIS FUNCTION) if($imgt[$x] == "gif") { if(function_exists("imagegif") == true) { $src_img = imagecreatefromgif("$img"); $new_h = 100; $new_w = 100; if(strpos($a["GD Version"], "2.0") > 0) { $dst_img = imagecreatetruecolor($new_w,$new_h); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } else { $dst_img = imagecreate($new_w,$new_h); imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } imagegif($dst_img,$imagesrc."/thumbs/".$imagename); imagedestroy($dst_img); imagedestroy($src_img); } } // Run options if file is bmp if($imgt[$x] == "bmp") { if(function_exists("imagebitmap") == true) { $src_img = imagecreatefrombitmap("$img"); $new_h = 100; $new_w = 100; if(strpos($a["GD Version"], "2.0") > 0) { $dst_img = imagecreatetruecolor($new_w,$new_h); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } else { $dst_img = imagecreate($new_w,$new_h); imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, imagesx($src_img), imagesy($src_img)); } imagebmp($dst_img,$imagesrc."/thumbs/".$imagename); imagedestroy($dst_img); imagedestroy($src_img); } } } } } ?> --- NEW FILE: makethumb.php --- <?php /* * openFIRST.photogallery - makethumb.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"); 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> ]"); } // Make thumbnail for entire gallery if(ISSET($_GET['OPTION'])){ $dir = opendir($dirlocate); while(! (($file = readdir($dir)) === false)){ if (is_file($dirlocate."/".$file)){ makethumb($dirlocate,$file,$imgtypes); } } die("<br><br><center>Thumbnails created for gallery! [ <a href='edit.php?ID=".$_GET['ID']."'>Edit</a> ]"); } }else{ showlogin(); } include($footer); ?> --- NEW FILE: index.php --- <?php /* * openFIRST.photogallery - admin/index.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"); mysql_select_db($sqldatabase,$sqlconnection); // Check if user is an admin then allow processes if (isset($user->user)){ ?> <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> <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> <?php } if (mysql_num_rows($query) == 0){ echo "<tr><td>--</td><td><br>There are no galleries uploaded<br><br></td>"; } ?> </table> <br> </p> <p align="center"> </p> <?php }else{ showlogin(); } include($footer); ?> --- NEW FILE: email.php --- <?php /* * openFIRST.photogallery - email.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"); mysql_select_db($sqldatabase,$sqlconnection); if(ISSET($_POST['send'])){ ini_set("MAX_EXECUTION_TIME",$gallery_execution_time); ini_set("SMTP",$SMTP); $from = $_POST['name']; $email = $_POST['email']; $recipient = $_POST['recipient']; $recipientemail = $_POST['recipientemail']; $comment = $_POST['comment']; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: ".$title." Photo Gallery <".$mailfrom.">\r\n"; $headers .= "Reply-To: ".$mailfrom."\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; $message = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'> <html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> </head><body><div align='center'> <table width='550' border='0' cellspacing='0' cellpadding='0'> <tr> <td height='23'><p>Hello ".$recipient.",</p> <p>This is a message from the <b>".$title."</b> photo gallery mailing system. <b>".$from." (".$email.")</b> has requested that you peview this image. Here are his comments:</p> <table width='400' border='1' align='center' cellpadding='6' cellspacing='0' bordercolor='#333333'> <tr> <td height='23'><p>".$comment."<br> </p> </td> </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> </p></td> </tr> </table> </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>"); die("<br><br><br><center>Photo was successfully sent recipient, thank you! [ <a href='index.php'>Galleries</a> ]</center>"); } ?> <h2>Send To A Friend</h2> <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"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Gallery Name</b></font></td> </tr> <tr> <td width="140" valign="top"> <div align="right">Your Name: </div> <div align="right"></div></td> <td width="266" valign="top"><div align="left"> <input name="name" type="text" id="name"> </div></td> </tr> <tr> <td valign="top"><div align="right">Your E-Mail:</div></td> <td valign="top"><div align="left"> <input name="email" type="text" id="email" size="40"> </div></td> </tr> <tr> <td valign="top"><div align="right">Recipients Name:</div></td> <td valign="top"><div align="left"> <input name="recipient" type="text" id="recipient"> </div></td> </tr> <tr> <td valign="top"><div align="right">Recipients E-Mail:</div></td> <td valign="top"><div align="left"> <input name="recipientemail" type="text" id="recipientemail" size="40"> </div></td> </tr> <tr> <td valign="top"><div align="right">Comments:</div></td> <td valign="top"><div align="left"> <textarea name="comment" cols="35" rows="9" id="comment"></textarea> </div></td> </tr> <tr> <td valign="top"> </td> <td valign="top"><input name="send" type="submit" id="send" value="Send E-Mail"></td> </tr> </table> </form> <p> <?php include($footer); ?> --- NEW FILE: cleargallery.php --- <?php /* * openFIRST.photogallery - cleargallery.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"); mysql_select_db($sqldatabase,$sqlconnection); $query = mysql_query("SELECT * FROM ofirst_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); if (file_exists($dirlocate."/thumbs/".$file)){ unlink($dirlocate."/thumbs/".$file); } } 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); ?> |
From: <dav...@us...> - 2003-06-08 02:41:04
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv21108/setup Added Files: setup.mysql Log Message: initial upload --- NEW FILE: setup.mysql --- CREATE TABLE `ofirst_galleries` ( `ID` tinyint(3) unsigned NOT NULL auto_increment, `GalleryName` tinytext, `Author` text, `Date` time(10) NOT NULL, `Description` text, `NumPhotos` tinyint(6) unsigned default '0', PRIMARY KEY (`ID`) ) TYPE=MyISAM; |
From: <dav...@us...> - 2003-06-08 02:39:45
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv20807/admin Log Message: Directory /cvsroot/openfirst/photogallery/admin added to the repository |
From: <dav...@us...> - 2003-06-08 02:39:31
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv20735/setup Log Message: Directory /cvsroot/openfirst/photogallery/setup added to the repository |
From: <dav...@us...> - 2003-06-08 02:35:33
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv20075 Added Files: index.php Log Message: initial upload --- NEW FILE: index.php --- <?php /* * openFIRST.messenger - index.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); mysql_select_db($sqldatabase,$sqlconnection); ?> <h1>Current Online Users</h1> <p>[ <a href="inbox.php">Current Messeges For You </a>] [ <a href="viewLog.php">Members Login </a>] [ <a href="newmsg.php">Compose Messege </a>] [ <a href="usersonline.php">Online Users </a>] <br><br> <center><?php echo $usersonline."<br>".$usersonpage; ?></center> <br><br> <table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#999999"> <tr bgcolor="#999999"> <td></td> <td width="33%"><div align="center"><font color="#FFFFFF">User Level</font></div></td> <td width="34%"><div align="center"><font color="#FFFFFF">Previewing</font></div></td> <td width="33%"><div align="center"><font color="#FFFFFF">Options</font></div></td> </tr> <?php // Find user online records in the database $query = mysql_query("SELECT * FROM ofirst_usersonline"); while($user = mysql_fetch_object($query)){ ?> <tr> <td><img src="visitors.png" alt="Visitor"></td> <td><?php if ($user->Member = "none"){ echo "Visiting Guest #".$user->ID; }else{ echo $user->Member; } ?></td> <td><?php echo $user->Location; ?></td> <td>[ <a href="newmsg.php?REPLY=<?php echo $user->ID; ?>"> Messege User</a> ]</td> </tr> <?php } ?> </table> <?php include($footer); ?> |
From: <dav...@us...> - 2003-06-08 02:35:33
|
Update of /cvsroot/openfirst/messenger/setup In directory sc8-pr-cvs1:/tmp/cvs-serv20075/setup Added Files: setup.mysql Log Message: initial upload --- NEW FILE: setup.mysql --- CREATE TABLE `ofirst_messeges` ( `ID` int(6) unsigned NOT NULL auto_increment, `Sender` tinytext, `Receiver` tinytext, `Subject` tinytext, `Body` text, `Status` tinytext, `Date` tinytext, PRIMARY KEY (`ID`) ) TYPE=MyISAM; CREATE TABLE `ofirst_usersonline` ( `ID` int(6) unsigned NOT NULL auto_increment, `IPAddress` tinytext, `Location` tinytext, `Timestamp` text, `Member` tinytext, PRIMARY KEY (`ID`) ) TYPE=MyISAM; |
From: <dav...@us...> - 2003-06-08 02:35:15
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv20014 Added Files: index.php Log Message: initial upload --- NEW FILE: index.php --- <?php /* * openFIRST.news - viewnews.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@sy...> * * 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 * */ mysql_select_db($sqldatabase,$sqlconnection); function shownews($limit = 5) { // Get a list of the users able to // be contacted via the feedback form. $query = mysql_query("SELECT * FROM ofirst_news ORDER BY ID DESC LIMIT $limit;"); if (mysql_num_rows($query) != 0){ while($news = mysql_fetch_object($query)){ echo(" <p><strong>$news->title</strong> <br />Posted on $news->date by $news->poster <br />$news->news </p>"); } } else { echo("There is not yet any news."); } return(0); } ?> |
From: <dav...@us...> - 2003-06-08 02:35:15
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv20014/admin Added Files: setup.mysql Log Message: initial upload --- NEW FILE: setup.mysql --- CREATE TABLE `ofirst_news` ( `ID` int(6) unsigned NOT NULL auto_increment, `date` TINYTEXT, `poster` TINYTEXT, `title` TINYTEXT, `news` TEXT, PRIMARY KEY (`ID`) ) Type=MyISAM; |
From: <xt...@us...> - 2003-06-08 02:33:36
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv19701 Removed Files: news.php Log Message: Remove functionality moved elsewhere --- news.php DELETED --- |
From: <dav...@us...> - 2003-06-08 02:32:20
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv19455/admin Log Message: Directory /cvsroot/openfirst/news/admin added to the repository |
From: <xt...@us...> - 2003-06-08 02:31:36
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv19336 Removed Files: README.txt usersonline.php Log Message: Remove functionality duplicated elsewhere. --- README.txt DELETED --- --- usersonline.php DELETED --- |
From: <dav...@us...> - 2003-06-08 02:31:09
|
Update of /cvsroot/openfirst/messenger/setup In directory sc8-pr-cvs1:/tmp/cvs-serv19224/setup Log Message: Directory /cvsroot/openfirst/messenger/setup added to the repository |
From: <xt...@us...> - 2003-06-08 02:28:02
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv18507 Removed Files: cleargallery.php edit.php email.php galleryglobals.php makethumb.php manage.php newgallery.php openFIRST.photogallery.sql preview.php upload.php Log Message: Remove functionality which has now been moved elsewhere. --- cleargallery.php DELETED --- --- edit.php DELETED --- --- email.php DELETED --- --- galleryglobals.php DELETED --- --- makethumb.php DELETED --- --- manage.php DELETED --- --- newgallery.php DELETED --- --- openFIRST.photogallery.sql DELETED --- --- preview.php DELETED --- --- upload.php DELETED --- |