openfirst-cvscommit Mailing List for openFIRST (Page 91)
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-28 15:23:51
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv10033 Modified Files: index.php logger.php rawdata.php reset.php track.php Log Message: Modify logger to meet openFIRST coding standards, fix minor error include file Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 21 Jun 2003 12:42:44 -0000 1.2 --- index.php 28 Jun 2003 15:23:48 -0000 1.3 *************** *** 27,64 **** */ ! include("../config/globals.php"); include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); ! ! ! ! if (ISSET($_POST['view'])){ ! ! $min = $_POST['min']; ! ! $max = $_POST['max']; ! ! }else{ ! ! $min = 0; ! ! $max = 50; ! } - - - if (ISSET($_GET['DELETE'])){ - - mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); } - - $query = mysql_query("SELECT * FROM ofirst_logger GROUP BY IPAddress LIMIT $min,$max"); $amount = mysql_num_rows($query); --- 27,50 ---- */ ! include("../config/globals.php"); include("$header"); ! if (isset($_POST['view'])) { ! $min = $_POST['min']; ! $max = $_POST['max']; ! } else { ! $min = 0; ! $max = 50; } + if (isset($_GET['DELETE'])) { + mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); } + $query = mysql_query("SELECT * FROM ofirst_logger GROUP BY IPAddress LIMIT $min,$max"); $amount = mysql_num_rows($query); *************** *** 67,141 **** <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> ! ! <form action="./" method="POST"> ! <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> ! ! to ! <input name="max" type="text" id="max" value="<?php echo $max; ?>" size="10"> - <input name="view" type="submit" id="view" value="View"> ! ! (<strong><?php echo $amount; ?></strong> total unique visitors) ! </form></p> ! <div align="center"><font size="2">This page previews grouped unique visitors. ! If you wish to view the exact location that the user has visited click<br> ! ! the track button below:<br> ! ! </font><br> ! </div> ! <table width="100%" border="1" cellpadding="1" cellspacing="0" bordercolor="#999999"> ! ! <tr bgcolor="#999999"> ! ! <td width="6%"> <div align="center">ID</div></td> ! ! <td width="20%"> <div align="center">Date</div></td> ! ! <td width="20%"> <div align="center">IP Address</div></td> ! ! <td width="30%"> <div align="center">Host Lookup</div></td> ! ! <td width="30%"> <div align="center">Option</div></td> ! </tr> - <? while($log = mysql_fetch_object($query)){ - echo "<tr>"; ! ! echo " <td>$log->ID</td>"; ! ! echo " <td>$log->Date</td>"; ! ! echo " <td>$log->IPAddress</td>"; ! ! 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>"; ! } ?></tr> - </table> ! ! <p> ! ! <?php include("$footer"); ?> --- 53,92 ---- <h1>View Log Information</h1> ! <form action="./" method="POST"> <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> ! to <input name="max" type="text" id="max" value="<?php echo $max; ?>" size="10"> <input name="view" type="submit" id="view" value="View"> ! (<strong><?php echo $amount; ?></strong> total unique visitors) </form></p> ! <div align="center">This page previews grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below: </div> ! <table> ! <tr> ! <th>ID</th> ! <th>Date</th> ! <th>IP Address</th> ! <th>Host Lookup</th> ! <th>Option</td> </tr> <? while($log = mysql_fetch_object($query)){ echo "<tr>"; ! echo " <td>$log->ID</td>"; ! echo " <td>$log->Date</td>"; ! echo " <td>$log->IPAddress</td>"; ! 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>"; } ?></tr> </table> ! <?php ! include("$footer"); ! ?> \ No newline at end of file Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** logger.php 21 Jun 2003 12:42:44 -0000 1.3 --- logger.php 28 Jun 2003 15:23:48 -0000 1.4 *************** *** 27,51 **** */ ! mysql_select_db($sqldatabase,$sqlconnection); ! ! $IP = $_SERVER['REMOTE_ADDR']; ! $HOST = gethostbyaddr($IP); ! $DATE = date("F j, Y, g:i a"); ! $SCRIPT = $_SERVER['PHP_SELF']; ! $BROWSER = $_SERVER['HTTP_USER_AGENT']; ! ! if (ISSET($_SERVER['QUERY_STRING'])){ ! $QUERYSTRING = $_SERVER['QUERY_STRING']; ! }else{ ! $QUERYSTRING = "NULL"; ! } ! ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser) ! values('".$IP."' ! ,'".$DATE."' ! ,'".$SCRIPT."' ! ,'".$QUERYSTRING."' ! ,'".$HOST."' ! ,'".$BROWSER."')") or die(mysql_error()); ! ! ?> --- 27,49 ---- */ ! $IP = $_SERVER['REMOTE_ADDR']; ! $HOST = gethostbyaddr($IP); ! $DATE = date("F j, Y, g:i a"); ! $SCRIPT = $_SERVER['PHP_SELF']; ! $BROWSER = $_SERVER['HTTP_USER_AGENT']; ! ! if (ISSET($_SERVER['QUERY_STRING'])){ ! $QUERYSTRING = $_SERVER['QUERY_STRING']; ! } else { ! $QUERYSTRING = "NULL"; ! } ! ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser) ! values('".$IP."' ! ,'".$DATE."' ! ,'".$SCRIPT."' ! ,'".$QUERYSTRING."' ! ,'".$HOST."' ! ,'".$BROWSER."')") or die(mysql_error()); ! ! ?> \ No newline at end of file Index: rawdata.php =================================================================== RCS file: /cvsroot/openfirst/logger/rawdata.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rawdata.php 21 Jun 2003 12:42:44 -0000 1.4 --- rawdata.php 28 Jun 2003 15:23:48 -0000 1.5 *************** *** 26,91 **** * */ ! include("../config/globals.php"); ! include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); ! ! if (ISSET($_POST['view'])){ ! $min = $_POST['min']; ! $max = $_POST['max']; ! }else{ ! $min = 0; ! $max = 50; ! } ! ! if (ISSET($_GET['DELETE'])){ ! mysql_query("DELETE FROM ofirst_logger WHERE ID = '".$_GET['DELETE']."'"); ! } ! ! $query = mysql_query("SELECT * FROM ofirst_logger LIMIT $min,$max"); ! $amount = mysql_num_rows($query); ! ?> ! <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> ! <form action="rawdata.php" method="POST"> ! <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> ! to ! <input name="max" type="text" id="max" value="<?php echo $max; ?>" size="10"> ! <input name="view" type="submit" id="view" value="View"> ! (<b><?php echo $amount; ?></b> total raw page hits) ! </form></p> ! <table width="100%" border="1" cellpadding="1" cellspacing="0" bordercolor="#999999"> ! <tr bgcolor="#999999"> ! <td width="6%"> ! <div align="center">ID</div></td> ! <td width="20%"> ! <div align="center">Date</div></td> ! <td width="20%"> ! <div align="center">IP Address</div></td> ! <td width="30%"> ! <div align="center">Host Lookup</div></td> ! <td width="18%"> ! <div align="center">Location</div></td> ! <td width="26%"> ! <div align="center">Query String</div></td> ! <td width="26%"> ! <div align="center">Options</div></td> ! </tr> ! <? ! while($log = mysql_fetch_object($query)){ ! echo "<tr>"; ! echo " <td>$log->ID</td>"; ! echo " <td>$log->Date</td>"; ! echo " <td>$log->IPAddress</td>"; ! echo " <td>$log->HostLookup</td>"; ! echo " <td>$log->Location</td>"; ! echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='rawdata.php?DELETE=$log->ID'>Delete</a> ]</td>"; ! echo "</tr>"; ! } ! ?> ! </tr> ! </table> ! <p> ! <?php include("$footer"); ?> --- 26,82 ---- * */ ! include("../config/globals.php"); ! include("$header"); ! ! if (isset($_POST['view'])) { ! $min = $_POST['min']; ! $max = $_POST['max']; ! } else { ! $min = 0; ! $max = 50; ! } ! ! if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE ID = '".$_GET['DELETE']."'"); ! } ! ! $query = mysql_query("SELECT * FROM ofirst_logger LIMIT $min,$max"); ! $amount = mysql_num_rows($query); ! ?> ! <h1>View Log Information</h1> ! <p> ! <form action="rawdata.php" method="POST"> ! <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> ! to ! <input name="max" type="text" id="max" value="<?php echo $max; ?>" size="10"> ! <input name="view" type="submit" id="view" value="View"> ! (<b><?php echo $amount; ?></b> total raw page hits) ! </form></p> ! <table> ! <tr> ! <th>ID</th> ! <th>Date</th> ! <th>IP Address</th> ! <th>Host Lookup</th> ! <th>Location</th> ! <th>Query String</th> ! <th>Options</th> ! </tr> ! <? ! while($log = mysql_fetch_object($query)){ ! echo "<tr>"; ! echo " <td>$log->ID</td>"; ! echo " <td>$log->Date</td>"; ! echo " <td>$log->IPAddress</td>"; ! echo " <td>$log->HostLookup</td>"; ! echo " <td>$log->Location</td>"; ! echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='rawdata.php?DELETE=$log->ID'>Delete</a> ]</td>"; ! echo "</tr>"; ! } ! ?> ! </tr> ! </table> ! <?php ! include("$footer"); ! ?> \ No newline at end of file Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/logger/reset.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** reset.php 21 Jun 2003 12:42:44 -0000 1.3 --- reset.php 28 Jun 2003 15:23:48 -0000 1.4 *************** *** 26,59 **** * */ ! 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> ! <form action="reset.php" method="POST"> ! <p align="center"><br> ! <br> ! Are you sure that you want to reset the entire logger system?<br> ! <br> ! <input name="confirm" type="submit" id="confirm" value="Delete all Entries"> ! <br> ! <br> ! <br> ! <br> ! </p> ! </form></p> ! <?php include("$footer"); ?> --- 26,50 ---- * */ ! include("../config/globals.php"); ! include("$header"); ! ! if (isset($_POST['confirm'])) { if(isset($user->user) == true && $user->membertype == 'administrator') { ! mysql_query("DELETE FROM ofirst_logger"); ! echo "<p>Logger system has been reset</p>"; } else { ! echo("You are not logged in, or do not have sufficient permission to reset the logger."); ! showlogin(); } ! } ! ! ?> ! <h1>View Log Information</h1> ! <form action="reset.php" method="POST"> ! <p>Are you sure that you want to reset the entire logger system?<br /> ! <input name="confirm" type="submit" id="confirm" value="Delete all Entries"> ! </p> ! </form> ! <?php ! include("$footer"); ! ?> \ No newline at end of file Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** track.php 21 Jun 2003 12:42:44 -0000 1.5 --- track.php 28 Jun 2003 15:23:48 -0000 1.6 *************** *** 1,54 **** ! <?php ! include("../config/globals.php"); ! include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); ! ! if (ISSET($_GET['DELETE'])){ ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); ! } ! ! $query = mysql_query("SELECT * FROM ofirst_logger WHERE IPAddress='".$_GET['ID']."'"); ! $amount = mysql_num_rows($query); ! ?> ! <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> ! <p><center> ! 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></center></p> ! <table width="100%" border="1" cellpadding="1" cellspacing="0" bordercolor="#999999"> ! <tr bgcolor="#999999"> ! <td width="6%"> ! <div align="center">ID</div></td> ! <td width="20%"> ! <div align="center">Date</div></td> ! <td width="20%"> ! <div align="center">IP Address</div></td> ! <td width="30%"> ! <div align="center">Host Lookup</div></td> ! <td width="18%"> ! <div align="center">Location</div></td> ! <td width="26%"> ! <div align="center">Query String</div></td> ! <td width="26%"> ! <div align="center">Options</div></td> ! </tr> ! <? ! while($log = mysql_fetch_object($query)){ ! echo "<tr>"; ! echo " <td>$log->ID</td>"; ! echo " <td>$log->Date</td>"; ! echo " <td>$log->IPAddress</td>"; ! echo " <td>$log->HostLookup</td>"; ! echo " <td>$log->Location</td>"; ! echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; ! echo "</tr>"; ! } ! ?> ! </tr> ! </table> ! <p> ! <?php include("$footer"); ?> --- 1,69 ---- ! <?php ! /* ! * openFIRST.logger - track.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"); ! ! if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); ! } ! ! $query = mysql_query("SELECT * FROM ofirst_logger WHERE IPAddress='".$_GET['ID']."'"); ! $amount = mysql_num_rows($query); ! ?> ! <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> ! <th>ID</th> ! <th>Date</th> ! <th>IP Address</th> ! <th>Host Lookup</th> ! <th>Location</th> ! <th>Query String</th> ! <th>Options</th> ! </tr> ! <? ! while($log = mysql_fetch_object($query)) { ! echo "<tr>"; ! echo " <td>$log->ID</td>"; ! echo " <td>$log->Date</td>"; ! echo " <td>$log->IPAddress</td>"; ! echo " <td>$log->HostLookup</td>"; ! echo " <td>$log->Location</td>"; ! echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; ! echo "</tr>"; ! } ! ?> ! </tr> ! </table> ! <?php ! include("$footer"); ! ?> \ No newline at end of file |
From: <xt...@us...> - 2003-06-28 14:39:39
|
Update of /cvsroot/openfirst/news/setup In directory sc8-pr-cvs1:/tmp/cvs-serv4884/setup Modified Files: setup.mysql Log Message: Convert news module to proper coding standards and add include to MySQL scripts Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/news/setup/setup.mysql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mysql 27 Jun 2003 20:45:33 -0000 1.2 --- setup.mysql 28 Jun 2003 14:39:36 -0000 1.3 *************** *** 1,2 **** 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; ! INSERT INTO ofirst_config SET modulename='news',showonmenu='0',active='0',adminnavigation='<a href="$basepath/news/admin/">Admin Main</a>',modulenavigation='<a href="$basepath/news/">Current News</a>'; \ No newline at end of file --- 1,2 ---- 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; ! INSERT INTO ofirst_config SET modulename='news',showonmenu='0',active='0',adminnavigation='<a href="$basepath/news/admin/">Admin Main</a>',modulenavigation='<a href="$basepath/news/">Current News</a>',includes='viewnews.php'; \ No newline at end of file |
From: <xt...@us...> - 2003-06-28 14:39:39
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv4884/admin Modified Files: index.php Log Message: Convert news module to proper coding standards and add include to MySQL scripts Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 21 Jun 2003 13:09:33 -0000 1.2 --- index.php 28 Jun 2003 14:39:36 -0000 1.3 *************** *** 29,43 **** 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 /> --- 29,41 ---- include($header); 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 /> *************** *** 46,67 **** </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); ! ?> --- 44,58 ---- </form> <?php ! } else { ! // Add the news. ! $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); ! ?> \ No newline at end of file |
From: <xt...@us...> - 2003-06-28 14:39:39
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv4884 Modified Files: viewnews.php Log Message: Convert news module to proper coding standards and add include to MySQL scripts Index: viewnews.php =================================================================== RCS file: /cvsroot/openfirst/news/viewnews.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewnews.php 15 May 2003 11:00:04 -0000 1.1.1.1 --- viewnews.php 28 Jun 2003 14:39:36 -0000 1.2 *************** *** 34,53 **** // 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); } ?> --- 34,51 ---- // 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); } ?> |
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv3996 Modified Files: adduser.php index.php logout.php profile.php skills.php updateprofile.php Removed Files: sqlinstall.php Log Message: Remove old files, convert code to proper standards, remove membersmenu() usage (since this has been moved to the headers), switch many tables with <td> where <th> should have been to be proper. Index: adduser.php =================================================================== RCS file: /cvsroot/openfirst/members/adduser.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** adduser.php 24 May 2003 18:46:47 -0000 1.2 --- adduser.php 28 Jun 2003 03:01:25 -0000 1.3 *************** *** 29,162 **** include($header); - membersmenu($user->membertype); - if($user->membertype == "administrator") { ! if(isset($_POST["team"]) == true) { ! $user = $_POST["user"]; $firstname=$_POST["firstname"]; ! $lastname = $_POST["lastname"]; ! if($_POST["password"] == $_POST["password2"]) { ! $q = mysql_query("INSERT INTO ofirst_members (user, firstname, lastname, password, membertype, division, year, email, icq, aim, msn, yim, description, signature, picturelocation, team, dateregistered) ! VALUES ('". ! $_POST["user"] ."', '" . ! $_POST["firstname"] . "', '" . $_POST["lastname"] . "', '" . cryptpassword($_POST["password"], $encryption) . "', '" . $_POST["membertype"] ."', '" . $_POST["division"] . "', '" . $_POST["year"] . "', '" . ! $_POST["email"] . "', '" . $_POST["icq"] . "', '" . $_POST["aim"] . "', '" . $_POST["msn"] . "', '". $_POST["yim"] ."', '" . $_POST["description"] . "', '" . $_POST["signature"] . "', '" . $_POST["picturelocation"] . "', '" . $_POST["team"] . "', '" . date("Y-m-d") . "');"); ! echo("Added user: " . $_POST["user"]); ! } else { ! echo("Password does not match confirm password."); } ! } ! ?> <h1>Add Users</h1> <p>This utility will add users to the members area.</p> <table> ! <form method="post" action="adduser.php"> ! <tr><td> ! Team Number: ! </td><td> ! <input type="text" name="team" /></td></tr> ! <tr><td> ! User Name: ! </td><td> ! <input type="text" name="user" /> ! </td></tr> ! <tr><td> ! First Name: ! </td><td> ! <input type="text" name="firstname" /> ! </td></tr> ! <tr><td> ! Last Name: ! </td><td> ! <input type="text" name="lastname" /> ! </td></tr> ! <tr><td> ! Password: ! </td><td> ! <input type="password" name="password" /> ! </td></tr> ! <tr><td> ! Confirm Password: ! </td><td> ! <input type="password" name="password2" /> ! </td></tr> ! <tr><td> ! Member Type: ! </td><td> ! <select name="membertype"> ! <option value="administrator">Administrator</option> ! <option value="user" selected="selected">User</option> ! </select> ! </td></tr> ! <tr><td> ! Division: ! </td><td> ! <input type="text" name="division" /> ! </td></tr> ! <tr><td> ! Year: ! </td><td> ! <input type="text" name="year" value="<?php echo(date("Y")); ?>" /> ! </td></tr> ! <tr><td> ! E-mail: ! </td><td> ! <input type="text" name="email" /> ! </td></tr> ! <tr><td> ! ICQ: ! </td><td> ! <input type="text" name="icq" /> ! </td></tr> ! <tr><td> ! AIM: ! </td><td> ! <input type="text" name="aim" /> ! </td></tr> ! <tr><td> ! MSN: ! </td><td> ! <input type="text" name="msn" /> ! </td></tr> ! <tr><td> ! YIM: ! </td><td> ! <input type="text" name="yim" /> ! </td></tr> ! <tr><td> ! Description: ! </td><td> ! <textarea name="description">I have not yet updated my profile.</textarea> ! </td></tr> ! <tr><td> ! Signature: ! </td><td> ! <textarea name="signature">-- ! Team Member</textarea> ! </td></tr> ! <tr><td> ! Picture Location ! </td><td> ! <input type="text" name="picture" value="nophoto.png" /> ! </td></tr> ! <tr><td> ! <input type="submit" value="Add User" /> ! <input type="reset" value="Clear Details" /> ! </td> ! </tr> </form> </table> ! <?php } else { ! showlogin(); ! } ! include($footer); ?> --- 29,144 ---- include($header); if($user->membertype == "administrator") { ! if(isset($_POST["team"]) == true) { ! $user = $_POST["user"]; $firstname=$_POST["firstname"]; ! $lastname = $_POST["lastname"]; ! if($_POST["password"] == $_POST["password2"]) { ! $q = mysql_query("INSERT INTO ofirst_members (user, firstname, lastname, password, membertype, division, year, email, icq, aim, msn, yim, description, signature, picturelocation, team, dateregistered) ! VALUES ('". $_POST["user"] ."', '" . $_POST["firstname"] . "', '" . $_POST["lastname"] . "', '" . cryptpassword($_POST["password"], $encryption) . "', '" . $_POST["membertype"] ."', '" . $_POST["division"] . "', '" . $_POST["year"] . "', '" . ! $_POST["email"] . "', '" . $_POST["icq"] . "', '" . $_POST["aim"] . "', '" . $_POST["msn"] . "', '". $_POST["yim"] ."', '" . $_POST["description"] . "', '" . $_POST["signature"] . "', '" . $_POST["picturelocation"] . "', '" . $_POST["team"] . "', '" . date("Y-m-d") . "');"); ! echo("Added user: " . $_POST["user"]); ! } else { ! echo("Password does not match confirm password."); ! } } ! ?> <h1>Add Users</h1> <p>This utility will add users to the members area.</p> <table> ! <form method="post" action="adduser.php"> ! <tr> ! <th>Team Number</th> ! <td><input type="text" name="team" /></td> ! </tr> ! <tr> ! <th>User Name</th> ! <td><input type="text" name="user" /></td> ! </tr> ! <tr> ! <th>First Name</th> ! <td><input type="text" name="firstname" /></td> ! </tr> ! <tr> ! <th>Last Name</th> ! <td><input type="text" name="lastname" /></td> ! </tr> ! <tr> ! <th>Password</th> ! <td><input type="password" name="password" /></td> ! </tr> ! <tr> ! <th>Confirm Password</th> ! <td><input type="password" name="password2" /></td> ! </tr> ! <tr> ! <th>Member Type</th> ! <td> ! <select name="membertype"> ! <option value="administrator">Administrator</option> ! <option value="user" selected="selected">User</option> ! </select> ! </td> ! </tr> ! <tr> ! <th>Division</th> ! <td><input type="text" name="division" /></td> ! </tr> ! <tr> ! <th>Year</th> ! <td><input type="text" name="year" value="<?php echo(date("Y")); ?>" /></td> ! </tr> ! <tr> ! <th>E-mail</th> ! <td><input type="text" name="email" /></td> ! </tr> ! <tr> ! <th>ICQ</th> ! <td><input type="text" name="icq" /></td> ! </tr> ! <tr> ! <th>AIM</th> ! <td><input type="text" name="aim" /></td> ! </tr> ! <tr> ! <th>MSN</th> ! <td><input type="text" name="msn" /></td> ! </tr> ! <tr> ! <th>YIM</th> ! <td><input type="text" name="yim" /></td> ! </tr> ! <tr> ! <th>Description</th> ! <td><textarea name="description">I have not yet updated my profile.</textarea></td> ! </tr> ! <tr> ! <th>Signature</th> ! <td><textarea name="signature">-- ! Team Member</textarea></td> ! </tr> ! <tr> ! <th>Picture Location</th> ! <td><input type="text" name="picture" value="nophoto.png" /></td> ! </tr> ! <tr> ! <th>Take Action</th> ! <td><input type="submit" value="Add User" /> <input type="reset" value="Clear Details" /></td> ! </tr> </form> </table> ! <?php ! } else { ! showlogin(); ! } ! include($footer); ?> \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 24 May 2003 18:33:43 -0000 1.4 --- index.php 28 Jun 2003 03:01:25 -0000 1.5 *************** *** 30,43 **** if(isset($user->user)) { - ?> - <?php - membersmenu($user->membertype); ?> <h1>Members Area</h1> ! <p>This is the openFIRST members area. You are logged in as: <?php ! echo($user->user . " the " . $user->membertype . "."); ?></p> <?php } else { showlogin(); } ! include($footer); ?> --- 30,42 ---- if(isset($user->user)) { ?> <h1>Members Area</h1> ! <p>This is the openFIRST members area. You are logged in as: ! <?php ! echo($user->user . " the " . $user->membertype . "."); ! ?></p> <?php } else { showlogin(); } ! include($footer); ?> \ No newline at end of file Index: logout.php =================================================================== RCS file: /cvsroot/openfirst/members/logout.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** logout.php 2 Jun 2003 20:01:36 -0000 1.1 --- logout.php 28 Jun 2003 03:01:25 -0000 1.2 *************** *** 30,53 **** if(isset($user->user)) { - ?> - <?php - membersmenu($user->membertype); ?> <h1>Logged Out</h1> <?php ! $q = mysql_query("UPDATE ofirst_members SET authcode = NULL WHERE user='$user->user';"); ! echo(mysql_error()); ! session_start(); ! session_destroy(); ?> <p>You have been logged out of this web site.</p> ! ! <?php } else { ! echo("<h1>Cannot Logout</h1> ! <p>You must be logged in in order to log out.</p>"); ! showlogin(); ! } ! include($footer); ?> --- 30,49 ---- if(isset($user->user)) { ?> <h1>Logged Out</h1> <?php ! $q = mysql_query("UPDATE ofirst_members SET authcode = NULL WHERE user='$user->user';"); ! echo(mysql_error()); ! session_start(); ! session_destroy(); ?> <p>You have been logged out of this web site.</p> ! <?php ! } else { ! echo("<h1>Cannot Logout</h1><p>You must be logged in in order to log out.</p>"); ! showlogin(); ! } ! include($footer); ?> \ No newline at end of file Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** profile.php 1 Jun 2003 20:00:32 -0000 1.5 --- profile.php 28 Jun 2003 03:01:25 -0000 1.6 *************** *** 29,55 **** include("../config/globals.php"); include($header); - - if(isset($user->user)) { - membersmenu($user->membertype); - } ?> - <h1>Members Profiles</h1> <?php ! if(isset($_GET["id"]) == false) { ?> <table> <tr><th>User Name</th><th>Team</th><th>MSN</th><th>ICQ</th><th>AIM</th></tr> <?php ! $query = mysql_query("SELECT user, team, msn, icq, aim FROM ofirst_members;"); ! while($q = mysql_fetch_object($query)) { ! echo("<tr><td><a href='profile.php?id=$q->user'>$q->user</a></td><td>$q->team</td><td>$q->msn</td><td>$q->icq</td><td>$q->aim</td></tr>"); ! } ?> </table> <?php ! } else { ! $query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';"); ! while($q = mysql_fetch_object($query)) { if (function_exists('emoticon_translate')) { --- 29,50 ---- include("../config/globals.php"); include($header); ?> <h1>Members Profiles</h1> <?php ! if(isset($_GET["id"]) == false) { ?> <table> <tr><th>User Name</th><th>Team</th><th>MSN</th><th>ICQ</th><th>AIM</th></tr> <?php ! $query = mysql_query("SELECT user, team, msn, icq, aim FROM ofirst_members;"); ! while($q = mysql_fetch_object($query)) { ! echo("<tr><td><a href='profile.php?id=$q->user'>$q->user</a></td><td>$q->team</td><td>$q->msn</td><td>$q->icq</td><td>$q->aim</td></tr>"); ! } ?> </table> <?php ! } else { ! $query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';"); ! while($q = mysql_fetch_object($query)) { if (function_exists('emoticon_translate')) { *************** *** 57,77 **** } ! echo("<table><tr><td style='vertical-align: top;'>"); ! if($q->picturelocation == "") { ! echo("<img src='nophoto.png' alt='No photograph provided' />"); ! } else { ! echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); ! } ! if ($q->skills == "") { $q->skills = "No skills entered."; } ! if ($q->description == "") { $q->description = "No description entered."; } ! if ($q->division == "") { $q->division = "No division given."; } ! if ($q->year == "") { $q->year = "Year unavailable."; } ! if ($q->firstname == "") { $q->firstname = "None"; } ! if ($q->lastname == "") { $q->lastname = "None"; } ! if ($q->team == "") { $q->team = "no particular team"; } ! if ($q->dateregistered == "") { $q->dateregistered = "creation"; } ! if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! echo("</td><td><h2>$q->user of $q->team</h2> <sub>Real Name: $q->firstname $q->lastname <br />Member since: $q->dateregistered --- 52,72 ---- } ! echo("<table><tr><td style='vertical-align: top;'>"); ! if($q->picturelocation == "") { ! echo("<img src='nophoto.png' alt='No photograph provided' />"); ! } else { ! echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); ! } ! if ($q->skills == "") { $q->skills = "No skills entered."; } ! if ($q->description == "") { $q->description = "No description entered."; } ! if ($q->division == "") { $q->division = "No division given."; } ! if ($q->year == "") { $q->year = "Year unavailable."; } ! if ($q->firstname == "") { $q->firstname = "None"; } ! if ($q->lastname == "") { $q->lastname = "None"; } ! if ($q->team == "") { $q->team = "no particular team"; } ! if ($q->dateregistered == "") { $q->dateregistered = "creation"; } ! if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! echo("</td><td><h2>$q->user of $q->team</h2> <sub>Real Name: $q->firstname $q->lastname <br />Member since: $q->dateregistered *************** *** 88,115 **** "); if ($q->icq != "") { ! echo("<img src=\"http://wwp.icq.com/scripts/online.dll?icq=$q->icq&img=5\" alt=\"User status\" />"); } else { ! echo("none"); } ! echo(" ! <br /><img src='msmsgs.png' alt='Microsoft Network: Messenger address' />: $q->msn"); ! if($q->msn == "") { ! echo("none"); ! } ! echo("<br /><img src='aim.png' alt='AOL Instant Messenger address' />: "); ! if ($q->aim != "") { ! echo("<a href='aim:goim?screenname=$q->aim&message=Hello+$q->firstname+$q->lastname,+I+was+just+browsing+your+profile+when+I+noticed+you+had+AIM.'>$q->aim</a>"); ! } else { ! echo("none"); ! } ! echo(" ! <br /><img src='yahoo.png' alt='Yahoo! Messenger address' />: ! <a href='http://edit.yahoo.com/config/send_webmesg?.target=$q->yim&.src=pg'>$q->yim</a> "); ! if ($q->yim != "") { ! echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); ! } else { ! echo("none"); ! } ! echo("</p> <h3>Description</h3> --- 83,107 ---- "); if ($q->icq != "") { ! echo("<img src=\"http://wwp.icq.com/scripts/online.dll?icq=$q->icq&img=5\" alt=\"User status\" />"); } else { ! echo("none"); } ! echo("<br /><img src='msmsgs.png' alt='Microsoft Network: Messenger address' />: $q->msn"); ! if($q->msn == "") { ! echo("none"); ! } ! echo("<br /><img src='aim.png' alt='AOL Instant Messenger address' />: "); ! if ($q->aim != "") { ! echo("<a href='aim:goim?screenname=$q->aim&message=Hello+$q->firstname+$q->lastname,+I+was+just+browsing+your+profile+when+I+noticed+you+had+AIM.'>$q->aim</a>"); ! } else { ! echo("none"); ! } ! echo("<br /><img src='yahoo.png' alt='Yahoo! Messenger address' />: <a href='http://edit.yahoo.com/config/send_webmesg?.target=$q->yim&.src=pg'>$q->yim</a> "); ! if ($q->yim != "") { ! echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />"); ! } else { ! echo("none"); ! } ! echo("</p> <h3>Description</h3> *************** *** 120,152 **** <h3>Skills</h3> <p>"); function status($n) { ! if($n == "1") { ! return("Minimal Skill"); ! } elseif($n == "2") { ! return("Not quite mediocre"); ! } elseif($n == "3") { ! return("Mediocre"); ! } elseif($n == "4") { ! return("Competent"); ! } elseif($n == "5") { ! return("Above Average"); ! } elseif($n == "6") { ! return("Professional"); ! } } ! $skill = explode(",", $q->skills); ! for($y = 0; $y < count($skill); $y++) { ! $det = explode("|",$skill[$y]); ! echo("<br />$det[0] - " . status($det[1])); } ! echo(" ! </p> ! ! </td></tr></table> ! "); ! } ! } ! ?> ! ! <?php ! include($footer); ?> --- 112,138 ---- <h3>Skills</h3> <p>"); + function status($n) { ! if($n == "1") { ! return("Minimal Skill"); ! } elseif($n == "2") { ! return("Not quite mediocre"); ! } elseif($n == "3") { ! return("Mediocre"); ! } elseif($n == "4") { ! return("Competent"); ! } elseif($n == "5") { ! return("Above Average"); ! } elseif($n == "6") { ! return("Professional"); ! } } ! $skill = explode(",", $q->skills); ! for($y = 0; $y < count($skill); $y++) { ! $det = explode("|",$skill[$y]); ! echo("<br />$det[0] - " . status($det[1])); ! } ! echo("</p></td></tr></table>"); ! } } ! include($footer); ?> \ No newline at end of file Index: skills.php =================================================================== RCS file: /cvsroot/openfirst/members/skills.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** skills.php 1 Jun 2003 05:59:56 -0000 1.1 --- skills.php 28 Jun 2003 03:01:25 -0000 1.2 *************** *** 30,63 **** if(isset($user->user)) { - ?> - <?php - membersmenu($user->membertype); ! $skills = array('Languages', 'Computer-Programming', 'Hands-on-Skills', 'Fundraising', 'Creativity', 'Organization', 'Time-Management', 'Research', 'Computer-Aided-Design', 'Teaching', 'Mentorship'); ! if(isset($_POST["$skills[0]"]) == true) { ! for($x=0; $x < count($skills); $x++) { ! if (isset($_POST["$skills[$x]"]) == true) { ! if($_POST["$skills[$x]"] > 0) { ! $skilled = $skilled . $skills[$x] . "|" . $_POST["$skills[$x]"] . ","; ! } ! } ! } ! $query = "UPDATE ofirst_members SET skills='$skilled' WHERE user='$user->user';"; ! $q = mysql_query($query); ! unset($q); ! $query = "SELECT * FROM ofirst_members WHERE user='$user->user';"; ! $q = mysql_query($query); ! $user = mysql_fetch_object($q); ! echo("Updated Skills"); ! } ?> <h1>Skills</h1> <p>You may use this page to customize the listing of skills that you have. Having skills from ! this list allows those interested in starting a project to locate all the people with the required skills. It also allows those members who are new to a team to quickly find out who it is they should talk to regarding what.</p> --- 30,60 ---- if(isset($user->user)) { ! $skills = array('Languages', 'Computer-Programming', 'Hands-on-Skills', 'Fundraising', 'Creativity', 'Organization', 'Time-Management', 'Research', 'Computer-Aided-Design', 'Teaching', 'Mentorship'); ! if(isset($_POST["$skills[0]"]) == true) { ! for($x=0; $x < count($skills); $x++) { ! if (isset($_POST["$skills[$x]"]) == true) { ! if($_POST["$skills[$x]"] > 0) { ! $skilled = $skilled . $skills[$x] . "|" . $_POST["$skills[$x]"] . ","; ! } ! } ! } ! $query = "UPDATE ofirst_members SET skills='$skilled' WHERE user='$user->user';"; ! $q = mysql_query($query); ! unset($q); ! $query = "SELECT * FROM ofirst_members WHERE user='$user->user';"; ! $q = mysql_query($query); ! $user = mysql_fetch_object($q); ! echo("Updated Skills"); ! } ?> <h1>Skills</h1> <p>You may use this page to customize the listing of skills that you have. Having skills from ! this list allows those interested in starting a project to locate all the people with the required skills. It also allows those members who are new to a team to quickly find out who it is they should talk to regarding what.</p> *************** *** 66,121 **** <tr><th>Skill Name</th><th>Proficiency</th></tr> <?php ! if(isset($user->skills) == true) { ! $skill = explode(",", $user->skills); ! for($y = 0; $y < count($skills); $y++) { ! $set = "n"; ! for($x = 0; $x < count($skill); $x++) { ! $det = explode("|",$skill[$x]); ! if($det[0] == $skills[$y]) { ! echo("<tr><td>$det[0]</td>"); ! echo("<td><select name='$det[0]'><option value='0'>No skill</option>"); ! if ($det[1] == "1") { ! echo("<option value='1' selected='selected'>Minimal skill</option>"); ! } else { ! echo("<option value='1'>Minimal skill</option>"); ! } ! if ($det[1] == "2") { ! echo("<option value='2' selected='selected'>Not quite mediocre</option>"); ! } else { ! echo("<option value='2'>Not quite mediocre</option>"); ! } ! if ($det[1] == "3") { ! echo("<option value='3' selected='selected'>Mediocre</option>"); ! } else { ! echo("<option value='3'>Mediocre</option>"); ! } ! if ($det[1] == "4") { ! echo("<option value='4' selected='selected'>Competent</option>"); ! } else { ! echo("<option value='4'>Competent</option>"); ! } ! if ($det[1] == "5") { ! echo("<option value='5' selected='selected'>Above Average</option>"); ! } else { ! echo("<option value='5'>Above Average</option>"); ! } ! if ($det[1] == "6") { ! echo("<option value='6' selected='selected'>Professional</option>"); ! } else { ! echo("<option value='6'>Professional</option>"); ! } ! echo("</select></td></tr>"); ! $set = "y"; ! } ! } ! if($set == "n") { ! echo("<tr><td>$skills[$y]</td><td><select name='$skills[$y]'> <option value='0' selected='selected'>No skill</option> <option value='1'>Minimal</option> --- 63,118 ---- <tr><th>Skill Name</th><th>Proficiency</th></tr> <?php ! if(isset($user->skills) == true) { ! $skill = explode(",", $user->skills); ! for($y = 0; $y < count($skills); $y++) { ! $set = "n"; ! for($x = 0; $x < count($skill); $x++) { ! $det = explode("|",$skill[$x]); ! if($det[0] == $skills[$y]) { ! echo("<tr><td>$det[0]</td>"); ! echo("<td><select name='$det[0]'><option value='0'>No skill</option>"); ! if ($det[1] == "1") { ! echo("<option value='1' selected='selected'>Minimal skill</option>"); ! } else { ! echo("<option value='1'>Minimal skill</option>"); ! } ! if ($det[1] == "2") { ! echo("<option value='2' selected='selected'>Not quite mediocre</option>"); ! } else { ! echo("<option value='2'>Not quite mediocre</option>"); ! } ! if ($det[1] == "3") { ! echo("<option value='3' selected='selected'>Mediocre</option>"); ! } else { ! echo("<option value='3'>Mediocre</option>"); ! } ! if ($det[1] == "4") { ! echo("<option value='4' selected='selected'>Competent</option>"); ! } else { ! echo("<option value='4'>Competent</option>"); ! } ! if ($det[1] == "5") { ! echo("<option value='5' selected='selected'>Above Average</option>"); ! } else { ! echo("<option value='5'>Above Average</option>"); ! } ! if ($det[1] == "6") { ! echo("<option value='6' selected='selected'>Professional</option>"); ! } else { ! echo("<option value='6'>Professional</option>"); ! } ! echo("</select></td></tr>"); ! $set = "y"; ! } ! } ! if($set == "n") { ! echo("<tr><td>$skills[$y]</td><td><select name='$skills[$y]'> <option value='0' selected='selected'>No skill</option> <option value='1'>Minimal</option> *************** *** 127,136 **** </select> </td></tr>"); ! } } ! } else { ! echo("You do not have any skills set up."); ! for($y = 0; $y < count($skills); $y++) { ! echo("<tr><td>$skills[$y]</td><td><select name='$skills[$y]'> <option value='0' selected='selected'>No skill</option> <option value='1'>Minimal</option> --- 124,133 ---- </select> </td></tr>"); ! } } ! } else { ! echo("You do not have any skills set up."); ! for($y = 0; $y < count($skills); $y++) { ! echo("<tr><td>$skills[$y]</td><td><select name='$skills[$y]'> <option value='0' selected='selected'>No skill</option> <option value='1'>Minimal</option> *************** *** 143,153 **** </td></tr>"); } ! } ?> <tr><td></td><td><input type="submit" value="Set skills"> <input type="reset" value="Reset skills"> </table> </form> ! <?php } else { ! showlogin(); ! } ! include($footer); ?> --- 140,151 ---- </td></tr>"); } ! } ?> <tr><td></td><td><input type="submit" value="Set skills"> <input type="reset" value="Reset skills"> </table> </form> ! <?php ! } else { ! showlogin(); ! } ! include($footer); ?> Index: updateprofile.php =================================================================== RCS file: /cvsroot/openfirst/members/updateprofile.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updateprofile.php 1 Jun 2003 14:46:28 -0000 1.1 --- updateprofile.php 28 Jun 2003 03:01:25 -0000 1.2 *************** *** 30,36 **** if(isset($user->user)) { ! membersmenu($user->membertype); ! if (isset($_POST["firstname"]) == true) { ! $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "' , division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] . "', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . --- 30,35 ---- if(isset($user->user)) { ! if (isset($_POST["firstname"]) == true) { ! $query = "UPDATE ofirst_members SET firstname='" . $_POST["firstname"] . "', lastname='" . $_POST["lastname"] . "' , division='" . $_POST["division"] . "', year='" . $_POST["year"] . "', email='" . $_POST["email"] . "', icq='" . $_POST["icq"] . "', aim='" . $_POST["aim"] . "', msn='" . $_POST["msn"] . "', yim='" . *************** *** 38,51 **** "', picturelocation='" . $_POST["picturelocation"] . "' WHERE user='$user->user';"; $q = mysql_query($query); ! if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { ! if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { ! $query = mysql_query("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("Password Changed."); ! } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("The password and confirm password fields do not match."); ! } ! } ! echo("Profile updated."); ! } ?> --- 37,50 ---- "', picturelocation='" . $_POST["picturelocation"] . "' WHERE user='$user->user';"; $q = mysql_query($query); ! if(isset($_POST["password"]) == true && isset($_POST["cpassword"]) == true) { ! if($_POST["password"] == $_POST["cpassword"] && $_POST["password"] != "") { ! $query = mysql_query("UPDATE ofirst_members SET password='" . cryptpassword($_POST["password"], $encryption) ."' WHERE user='$user->user';"); ! echo("Password Changed."); ! } elseif ($_POST["password"] != $_POST["cpassword"]) { ! echo("The password and confirm password fields do not match."); ! } ! } ! echo("Profile updated."); ! } ?> *************** *** 56,83 **** <form action='updateprofile.php' method='post'> <table> ! <tr><th>Heading</th><th>Content</th></tr> <?php ! echo("<tr><td>Username</td><td>$user->user</td></tr> ! <tr><td>First Name</td><td><input type='text' name='firstname' value='$user->firstname' /></td></tr> ! <tr><td>Last Name</td><td><input type='text' name='lastname' value='$user->lastname' /></td></tr> ! <tr><td>Password</td><td><input type='password' name='password' value='' /></td></tr> ! <tr><td>Confirm Password</td><td><input type='password' name='cpassword' value='' /></td></tr> ! <tr><td>Division</td><td><input type='text' name='division' value='$user->division'></td></tr> ! <tr><td>Year</td><td><input type='text' name='year' value='$user->year'></td></tr> ! <tr><td>E-mail Address</td><td><input type='text' name='email' value='$user->email'></td></tr> ! <tr><td>ICQ Number</td><td><input type='text' name='icq' value='$user->icq'></td></tr> ! <tr><td>AIM Screenname</td><td><input type='text' name='aim' value='$user->aim'></td></tr> ! <tr><td>MSN Messenger Address</td><td><input type='text' name='msn' value='$user->msn'></td></tr> ! <tr><td>Yahoo! Instant Messenger Address</td><td><input type='text' name='yim' value='$user->yim'></td></tr> ! <tr><td>Freeform Description</td><td><textarea name='description'>$user->description</textarea></td></tr> ! <tr><td>Signature</td><td><textarea name='signature'>$user->signature</textarea></td></tr> ! <tr><td>Picture Location</td><td><input type='text' name='picturelocation' value='$user->picturelocation'></td></tr> "); ?> ! <tr><td></td><td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> </table> </form> ! <?php } else { ! showlogin(); ! } ! include($footer); ?> --- 55,83 ---- <form action='updateprofile.php' method='post'> <table> ! <tr><th>Heading</th><th>Content</th></tr> <?php ! echo("<tr><th>Username</th><td>$user->user</td></tr> ! <tr><th>First Name</th><td><input type='text' name='firstname' value='$user->firstname' /></td></tr> ! <tr><th>Last Name</th><td><input type='text' name='lastname' value='$user->lastname' /></td></tr> ! <tr><th>Password</th><td><input type='password' name='password' value='' /></td></tr> ! <tr><th>Confirm Password</th><td><input type='password' name='cpassword' value='' /></td></tr> ! <tr><th>Division</th><td><input type='text' name='division' value='$user->division'></td></tr> ! <tr><th>Year</th><td><input type='text' name='year' value='$user->year'></td></tr> ! <tr><th>E-mail Address</th><td><input type='text' name='email' value='$user->email'></td></tr> ! <tr><th>ICQ Number</th><td><input type='text' name='icq' value='$user->icq'></td></tr> ! <tr><th>AIM Screenname</th><td><input type='text' name='aim' value='$user->aim'></td></tr> ! <tr><th>MSN Messenger Address</th><td><input type='text' name='msn' value='$user->msn'></td></tr> ! <tr><th>Yahoo! Instant Messenger Address</th><td><input type='text' name='yim' value='$user->yim'></td></tr> ! <tr><th>Freeform Description</th><td><textarea name='description'>$user->description</textarea></td></tr> ! <tr><th>Signature</th><td><textarea name='signature'>$user->signature</textarea></td></tr> ! <tr><th>Picture Location</th><td><input type='text' name='picturelocation' value='$user->picturelocation'></td></tr> "); ?> ! <tr><td></td><td><input type="submit" value="Update Profile"> <input type="reset" value="Reset Profile"> </table> </form> ! <?php ! } else { ! showlogin(); ! } ! include($footer); ?> \ No newline at end of file --- sqlinstall.php DELETED --- |
From: <xt...@us...> - 2003-06-28 02:22:18
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv537 Modified Files: headers.php Log Message: Change headers to use style sheets with id's, instead of requiring class=... in each link in navigation bars Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/base/config/headers.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** headers.php 27 Jun 2003 15:09:19 -0000 1.10 --- headers.php 28 Jun 2003 02:22:16 -0000 1.11 *************** *** 15,51 **** <meta name="generator" content="OpenFIRST - http://openfirst.sf.net"> <style type="text/css"> ! a:link.menu { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:visited.menu { color: #bebebe; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:active.menu { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:hover.menu { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none } ! ! a:link.admin { color: #FFFFFF } ! a:visited.admin { color: #FFFFFF } ! a:active.admin { color: #FFFFFF } ! a:hover.admin { color: #FFFFFF } ! a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: none } ! a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: Underline } ! table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px } ! table.menu { border-left:0px;border-right:0px;border-bottom:0px } ! td.menu {border-left:0px;border-right:0px;border-bottom:0px } ! body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center } ! td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none } ! td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none } ! th { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif') } </style> </head> ! <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> ! <table class="menu" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> ! <td class="menu"> <img src="<?php echo("$basepath/images/"); ?>openfirst.png"> </td> </tr> <tr> ! <td class="menu" background="<?php echo("$basepath/images/"); ?>back.gif"> <?php if(ISSET($headers)){ --- 15,55 ---- <meta name="generator" content="OpenFIRST - http://openfirst.sf.net"> <style type="text/css"> ! #adminmenu { color: #ffffff; } ! #adminmenu a:link { color: #ffffff; } ! #adminmenu a:visited { color: #ffffff; } ! #adminmenu a:active { color: #ffffff; } ! #adminmenu a:hover { color: #ffffff; } ! a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: Underline; } ! #topmenu { text-align: left; } ! #topmenu a:link { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:visited { color: #bebebe; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:active { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! #topmenu a:hover { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! ! table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; } ! table.menu { border-left:0px;border-right:0px;border-bottom:0px; } ! td.menu {border-left:0px;border-right:0px;border-bottom:0px; } ! body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center; ! margin: 0px; ! } ! td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } ! th { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif'); } </style> </head> ! <body> ! <table width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> ! <td > <img src="<?php echo("$basepath/images/"); ?>openfirst.png"> </td> </tr> <tr> ! <th id="topmenu" style="background-image: url('<?php echo($basepath); ?>/images/back.gif');"> <?php if(ISSET($headers)){ *************** *** 53,74 **** }else{ ?> ! <font color="#FFFFFF">» <a class="menu" accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> ! | » <a class="menu" accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a> ! | » <a accesskey="r" class="menu" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a> ! | » <a accesskey="m" class="menu" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a> ! | » <a class="menu" accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a> ! | » <a class="menu" accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a> ! | » <a accesskey="c" class="menu" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a> ! | » <a accesskey="a" class="menu" href="http://openfirst.sourceforge.net/about.php"><u>A</u>bout openFIRST</a> ! | » <a class="menu" accesskey="e" href="http://openfirst.sourceforge.net/developers.php">D<u>e</u>velopers</a> <?php } ?> ! </font> </td> </tr> <tr> ! <td class="menu" background="<?php echo("$basepath/images/"); ?>back-light.gif"> ! <table class="menu" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> ! <td class="menu" width="63%"> <?php --- 57,78 ---- }else{ ?> ! » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> ! | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a> ! | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a> ! | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a> ! | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a> ! | » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a> ! | » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a> ! | » <a accesskey="a" href="http://openfirst.sourceforge.net/about.php"><u>A</u>bout openFIRST</a> ! | » <a accesskey="e" href="http://openfirst.sourceforge.net/developers.php">D<u>e</u>velopers</a> <?php } ?> ! </th> </tr> <tr> ! <td background="<?php echo("$basepath/images/"); ?>back-light.gif"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> ! <td width="63%"> <?php *************** *** 86,91 **** ?> </td> ! <td class="menu" width="37%"> <div> ! <div align="right"><font color="#333333"> <?php --- 90,95 ---- ?> </td> ! <td width="37%"> <div> ! <div align="right" style="color: #333333;"> <?php *************** *** 98,102 **** ?> ! </font></div> </div></td> </tr> --- 102,106 ---- ?> ! </div> </div></td> </tr> *************** *** 110,119 **** ?> <tr> ! <td class="menu" background="<?php echo("$basepath/images/"); ?>back-admin.png"><font color="#FFFFFF"><b>Admin Options -</b> ! <?php // Print admin navigation bar echo $adminnav; ! ?> ! </font></td> </tr> <?php --- 114,122 ---- ?> <tr> ! <td id="adminmenu" background="<?php echo("$basepath/images/"); ?>back-admin.png"><b>Admin Options -</b> ! <?php // Print admin navigation bar echo $adminnav; ! ?></td> </tr> <?php *************** *** 130,132 **** } ! ?> \ No newline at end of file --- 133,135 ---- } ! ?> |
From: <xt...@us...> - 2003-06-28 01:35:45
|
Update of /cvsroot/openfirst/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv28802 Modified Files: deleteentry.php deleteyes.php emoticons.php index.php sign.php signthanks.php Log Message: Update guestbook module to comply with openFIRST coding standards, fix minor issue with sent e-mail, add copyright headers where required. Index: deleteentry.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/deleteentry.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** deleteentry.php 4 May 2003 12:19:28 -0000 1.3 --- deleteentry.php 28 Jun 2003 01:35:42 -0000 1.4 *************** *** 1,3 **** --- 1,30 ---- <?php + /* + * openFIRST.guestbook - deleteentry.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * 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"); *************** *** 8,36 **** <?php ! $email = $_GET["email"]; ! $deletecode = $_GET["deletecode"]; ! $query = "SELECT * FROM ofirst_guestbook WHERE deletecode='$deletecode' and email='$email';"; ! $result = mysql_db_query("$sqldatabase",$query); ! ! if ($result) { ! while ($r = mysql_fetch_array($result)) { ! $date = $r["date"]; ! $email = $r["email"]; ! $deletecode = $r["deletecode"]; ! } ! ?> ! <form method="post" action="deleteyes.php"> <p>Are you sure you wish to delete the entry from <?php echo($email); ?> on <?php echo($date); ?> from the guestbook? <br /><input type="hidden" name="deletecode" value="<?php echo($deletecode); ?>" /> <br /><input type="hidden" name="email" value="<?php echo($email); ?>" /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> ! </form> <?php ! } else { ! echo("No posting from you (<?php echo($email); ?>) with that delete code appears to exist."); ! } include("$footer"); --- 35,63 ---- <?php ! $email = $_GET["email"]; ! $deletecode = $_GET["deletecode"]; ! $query = "SELECT * FROM ofirst_guestbook WHERE deletecode='$deletecode' and email='$email';"; ! $result = mysql_db_query("$sqldatabase",$query); ! if ($result) { ! while ($r = mysql_fetch_array($result)) { ! $date = $r["date"]; ! $email = $r["email"]; ! $deletecode = $r["deletecode"]; ! } ! ?> ! ! <form method="post" action="deleteyes.php"> <p>Are you sure you wish to delete the entry from <?php echo($email); ?> on <?php echo($date); ?> from the guestbook? <br /><input type="hidden" name="deletecode" value="<?php echo($deletecode); ?>" /> <br /><input type="hidden" name="email" value="<?php echo($email); ?>" /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> ! </form> <?php ! } else { ! echo("No posting from you (<?php echo($email); ?>) with that delete code appears to exist."); ! } include("$footer"); Index: deleteyes.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/deleteyes.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** deleteyes.php 4 May 2003 12:19:28 -0000 1.3 --- deleteyes.php 28 Jun 2003 01:35:42 -0000 1.4 *************** *** 1,3 **** --- 1,30 ---- <?php + /* + * openFIRST.guestbook - deleteyes.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@po...> + * + * 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"); *************** *** 15,21 **** ?> ! <p>The selected post has been removed.</p> <?php include("$footer"); ! ?> --- 42,48 ---- ?> ! <p>The selected post has been removed.</p> <?php include("$footer"); ! ?> \ No newline at end of file Index: emoticons.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/emoticons.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** emoticons.php 31 May 2003 19:04:53 -0000 1.3 --- emoticons.php 28 Jun 2003 01:35:42 -0000 1.4 *************** *** 33,46 **** <h1>Emoticons</h1> ! <p>This is the complete listing of emoticons and other symbols able to be used in the guest book. <br /><a href="<?php echo($home); ?>">Return to main page</a> <a href="sign.php">Sign Guest Book</a> <a href="view.php">View Guest Book</a></p> <?php ! if(function_exists(emoticon_preview)) { ! emoticon_preview(); ! } else { ! echo("<p>Emoticons (smilies) are disabled.</p>"); ! } ! include("$footer"); ! ?> --- 33,46 ---- <h1>Emoticons</h1> ! <p>This is the complete listing of emoticons and other symbols able to be used in the guest book. <br /><a href="<?php echo($home); ?>">Return to main page</a> <a href="sign.php">Sign Guest Book</a> <a href="view.php">View Guest Book</a></p> <?php ! if(function_exists(emoticon_preview)) { ! emoticon_preview(); ! } else { ! echo("<p>Emoticons (smilies) are disabled.</p>"); ! } ! include("$footer"); ! ?> \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:17:47 -0000 1.1 --- index.php 28 Jun 2003 01:35:42 -0000 1.2 *************** *** 32,40 **** ?> <h1>View Guest Book</h1> ! <p>Comments are arranged alphabetically by guest name. We are not ! responsible for the content contained in this guestbook. The comments and ! opinions expressed throughout the guestbook are those of the poster, and do not necessarily reflect those of our robotics team. ! <br /><a href="<?php echo($home); ?>">Return to main page</a> <a href="sign.php">Sign Guest Book</a></p> --- 32,40 ---- ?> <h1>View Guest Book</h1> ! <p>Comments are arranged alphabetically by guest name. We are not ! responsible for the content contained in this guestbook. The comments and ! opinions expressed throughout the guestbook are those of the poster, and do not necessarily reflect those of our robotics team. ! <br /><a href="<?php echo($home); ?>">Return to main page</a> <a href="sign.php">Sign Guest Book</a></p> *************** *** 53,57 **** if ($r->ICQ != "") { ! echo("<img src='http://wwp.icq.com/scripts/online.dll?icq=".$r->ICQ . "&img=5' alt='User status' />"); } echo("<br /><img src='aim.png' alt='AIM Screen name: ' /> AIM: $r->AIM --- 53,57 ---- if ($r->ICQ != "") { ! echo("<img src='http://wwp.icq.com/scripts/online.dll?icq=".$r->ICQ . "&img=5' alt='User status' />"); } echo("<br /><img src='aim.png' alt='AIM Screen name: ' /> AIM: $r->AIM *************** *** 59,65 **** <br /><img src='yahoo.png' alt='Yahoo! Messenger Address: ' /> YIM: $r->YIM"); if ($r->YIM != "") { ! echo("<img src='http://opi.yahoo.com/online?u=$r->YIM &m=g&t=1' alt='User Status' />"); } - echo("<br /><img src='irc.png' alt='IRC: ' /> IRC:$r->IRC <br /><img src='webpage.png' alt='Web Page' /> Web Page: <a href='$r->webpage'>$r->webpage</a> --- 59,64 ---- <br /><img src='yahoo.png' alt='Yahoo! Messenger Address: ' /> YIM: $r->YIM"); if ($r->YIM != "") { ! echo("<img src='http://opi.yahoo.com/online?u=$r->YIM &m=g&t=1' alt='User Status' />"); } echo("<br /><img src='irc.png' alt='IRC: ' /> IRC:$r->IRC <br /><img src='webpage.png' alt='Web Page' /> Web Page: <a href='$r->webpage'>$r->webpage</a> *************** *** 71,75 **** $comment = $r->comment; } ! echo("<br />Comment: </p><p>" . $comment . "</p>\n"); } --- 70,74 ---- $comment = $r->comment; } ! echo("<br />Comment: </p><p>" . $comment . "</p>\n"); } *************** *** 77,79 **** include("$footer"); ! ?> --- 76,78 ---- include("$footer"); ! ?> \ No newline at end of file Index: sign.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/sign.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sign.php 21 Jun 2003 11:56:27 -0000 1.4 --- sign.php 28 Jun 2003 01:35:42 -0000 1.5 *************** *** 1,3 **** ! <?php /* * --- 1,3 ---- ! <?php /* * *************** *** 33,49 **** <h1>Sign Guest Book</h1> ! <p><a href="./">View Guest Book</a> <a href="<?php echo($home); ?>">Return to main site</a> </p> ! <form method="post" action="signthanks.php"> <?php ! if(function_exists(emoticon_translate)) { ! echo("<p>Emoticons (smilies) are enabled in your message. See <a href='emoticons.php'>a complete listing of ! emoticons usable in the guestbook</a> for more information. about the emoticons you may use.</p>"); ! } else { ! echo("<p>Emoticons (smilies) are disabled in your message.</p>"); ! } ?> ! <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); ?>" /> --- 33,49 ---- <h1>Sign Guest Book</h1> ! <p><a href="./">View Guest Book</a> <a href="<?php echo($home); ?>">Return to main site</a> </p> ! <form method="post" action="signthanks.php"> <?php ! if(function_exists("emoticon_translate")) { ! echo("<p>Emoticons (smilies) are enabled in your message. See <a href='emoticons.php'>a complete listing of ! emoticons usable in the guestbook</a> for more information. about the emoticons you may use.</p>"); ! } else { ! echo("<p>Emoticons (smilies) are disabled in your message.</p>"); ! } ?> ! <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); ?>" /> *************** *** 59,68 **** <?php echo($user->signature); ?> </textarea> ! <br /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> </p> ! </form> <?php include("$footer"); ! ?> --- 59,68 ---- <?php echo($user->signature); ?> </textarea> ! <br /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> </p> ! </form> <?php include("$footer"); ! ?> \ No newline at end of file Index: signthanks.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/signthanks.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** signthanks.php 31 May 2003 19:04:53 -0000 1.4 --- signthanks.php 28 Jun 2003 01:35:42 -0000 1.5 *************** *** 37,57 **** <?php ! function RandomPassword( $passwordLength ) { ! ! $passwordChars = '0123456789' .'ABCDEFGHIJKLMNOPQRSTUVWXYZ' .'abcdefghijklmnopqrstuvwxyz'; ! $password = ""; ! for ($index = 1; $index <= $passwordLength; $index++) { ! // pick random number ! $randomNumber = rand(1,strlen($passwordChars)); ! $password .= substr($passwordChars,$randomNumber-1,1); ! } ! return $password; ! } $deletecode = RandomPassword(16); --- 37,56 ---- <?php ! function RandomPassword( $passwordLength ) { ! $passwordChars = '0123456789' .'ABCDEFGHIJKLMNOPQRSTUVWXYZ' .'abcdefghijklmnopqrstuvwxyz'; ! $password = ""; ! for ($index = 1; $index <= $passwordLength; $index++) { ! // pick random number ! $randomNumber = rand(1,strlen($passwordChars)); ! $password .= substr($passwordChars,$randomNumber-1,1); ! } ! return $password; ! } $deletecode = RandomPassword(16); *************** *** 60,65 **** $result = mysql_db_query("$sqldatabase",$query); ! mail("$mailnotify", "Guestbook Posting","Someone has posted a message ! in your guest book. deletecode=$deletecode --- 59,63 ---- $result = mysql_db_query("$sqldatabase",$query); ! mail("$mailnotify", "Guestbook Posting","Someone has posted a message in your guest book. deletecode=$deletecode *************** *** 83,93 **** mail("" . $_POST["email"] . "", "Your Guestbook Posting", "Dear Guest, ! Thank you for visiting our site and signing our guestbook. We hope you enjoyed it! ! ! We have sent you this E-mail out of thanks and also to give you some information which ! you may later need. If in your guestbook posting, you make a mistake that you didn't inntially realize, or just want to delete your post, you can do so by going to the following address: ! http://$domain/guestbook/deleteentry.php?email=" . $_POST["email"] . "&deletecode=$deletecode Thank you once again, and be sure to check in often as we are constantly making updates --- 81,91 ---- mail("" . $_POST["email"] . "", "Your Guestbook Posting", "Dear Guest, ! Thank you for visiting our site and signing our guestbook. We hope you enjoyed it! ! ! We have sent you this E-mail out of thanks and also to give you some information which ! you may later need. If in your guestbook posting, you make a mistake that you didn't inntially realize, or just want to delete your post, you can do so by going to the following address: ! http://" . $_SERVER["HTTP_HOST"] . " $basepath/guestbook/deleteentry.php?email=" . $_POST["email"] . "&deletecode=$deletecode Thank you once again, and be sure to check in often as we are constantly making updates *************** *** 103,105 **** <?php include("$footer"); ! ?> --- 101,103 ---- <?php include("$footer"); ! ?> \ No newline at end of file |
From: <xt...@us...> - 2003-06-28 01:02:10
|
Update of /cvsroot/openfirst/feedback In directory sc8-pr-cvs1:/tmp/cvs-serv25190 Modified Files: index.php Log Message: Fix indenting issues etc. to comply with openFIRST standards. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/feedback/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 21 Jun 2003 12:21:36 -0000 1.2 --- index.php 28 Jun 2003 01:02:06 -0000 1.3 *************** *** 31,93 **** echo("<h1>Feedback</h1>"); ! mysql_select_db($sqldatabase,$sqlconnection); ! // Get a list of the users able to ! // be contacted via the feedback form. ! $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! ! if (mysql_num_rows($query) != 0){ ! if(isset($_POST["to"]) == true) { ! $messageallowed = false; ! } else { ! // Display the feedback form. ! ?> ! <form method="post" action="feedback.php"> ! Message To: <select name="to"> ! <?php ! } ! while($feedback = mysql_fetch_object($query)){ ! if(! isset($_POST["to"])) { ! echo("<option value='$feedback->email'>$feedback->name</option>"); ! } else { ! if ($_POST["to"] == $feedback->email) { ! $messageallowed = true; ! } } } ! if(isset($_POST["to"]) == false) { ! // Display rest of feedback form. ! echo("</select>"); ! ?> ! ! <br />Your E-mail Address (used for ! 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 ! <input type="radio" name="type" ! value="question" />Question <input ! type="radio" name="type" ! value="concern" />Concern ! <br /> ! 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" /> ! <input type="reset" value="Clear Feedback" /> ! </form> ! <?php ! } else { ! 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: http://openfirst.sourceforge.net" --- 31,82 ---- echo("<h1>Feedback</h1>"); ! mysql_select_db($sqldatabase,$sqlconnection); ! // Get a list of the users able to be contacted via the feedback form. ! $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! if (mysql_num_rows($query) != 0){ ! if(isset($_POST["to"]) == true) { ! $messageallowed = false; ! } else { ! // Display the feedback form. ! ?> ! <form method="post" action="feedback.php"> ! Message To: <select name="to"> ! <?php ! } ! while($feedback = mysql_fetch_object($query)){ ! if(! isset($_POST["to"])) { ! echo("<option value='$feedback->email'>$feedback->name</option>"); ! } else { ! if ($_POST["to"] == $feedback->email) { ! $messageallowed = true; } } ! } ! if(isset($_POST["to"]) == false) { ! // Display rest of feedback form. ! echo("</select>"); ! ?> ! <br />Your E-mail Address (used for 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 ! <input type="radio" name="type" value="question" />Question ! <input type="radio" name="type" value="concern" />Concern ! <br />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" /> ! <input type="reset" value="Clear Feedback" /> ! </form> ! <?php ! } else { ! 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: http://openfirst.sourceforge.net" *************** *** 100,121 **** future."); ! } else { ! // Give an error. ! echo("You cannot use the ! feedback form to contact that person ! as the administrator of this web site ! has not allowed it. If you ! believe you should be able to ! contact this person, contact the ! administrator asking them to ! change their settings."); ! } } - } else { - echo("Before you can use - this, someone must first set up - users able to be e-mailed by - modifying the database."); } include($footer); ?> --- 89,100 ---- future."); ! } else { ! // Give an error. ! echo("You cannot use the feedback form to contact that person as the administrator of this web site has not allowed it. If you believe you should be able to contact this person, contact the administrator asking them to change their settings."); } } + } else { + echo("Before you can use this, someone must first set up users able to be e-mailed by modifying the database."); + } include($footer); ?> |
From: <xt...@us...> - 2003-06-28 01:02:10
|
Update of /cvsroot/openfirst/feedback/admin In directory sc8-pr-cvs1:/tmp/cvs-serv25190/admin Modified Files: index.php Log Message: Fix indenting issues etc. to comply with openFIRST standards. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/feedback/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 28 Jun 2003 00:33:23 -0000 1.1 --- index.php 28 Jun 2003 01:02:06 -0000 1.2 *************** *** 29,43 **** include($header); ! if(isset($_POST["feedbackusers"])) { ! echo("<p>The feedback users have been modified as per your request.</p>"); ! $line = explode("\n", $_POST["feedbackusers"]); ! foreach ($line as $lin) { $fname = (substr($lin, strpos($lin, " ") - strlen($lin))); $femail = substr($lin, 0, strpos($lin, " ")); if(trim($fname) != "" && trim($femail) != "") { ! $query = mysql_query("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');"); } - } } echo("<h1>Feedback</h1> --- 29,43 ---- include($header); ! if(isset($_POST["feedbackusers"])) { ! echo("<p>The feedback users have been modified as per your request.</p>"); ! $line = explode("\n", $_POST["feedbackusers"]); ! foreach ($line as $lin) { $fname = (substr($lin, strpos($lin, " ") - strlen($lin))); $femail = substr($lin, 0, strpos($lin, " ")); if(trim($fname) != "" && trim($femail) != "") { ! $query = mysql_query("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');"); } } + } echo("<h1>Feedback</h1> *************** *** 48,64 **** "); ! $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! ! if (mysql_num_rows($query) != 0){ ! echo("<textarea name='feedbackusers' rows='10' cols='50'>"); ! while($feedback = mysql_fetch_object($query)){ ! echo("$feedback->email$feedback->name\n"); ! } ! } else { ! echo("<textarea name='feedbackusers' rows='10' cols='50'>xt...@us... Tim Ginn"); } ! echo("</textarea><br /><input type='submit' value='Update Feedback Users' /> ! </form>"); ! include($footer); ! ?> --- 48,63 ---- "); ! $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! ! if (mysql_num_rows($query) != 0){ ! echo("<textarea name='feedbackusers' rows='10' cols='50'>"); ! while($feedback = mysql_fetch_object($query)){ ! echo("$feedback->email$feedback->name\n"); } ! } else { ! echo("<textarea name='feedbackusers' rows='10' cols='50'>xt...@us... Tim Ginn"); ! } ! echo("</textarea><br /><input type='submit' value='Update Feedback Users' /></form>"); ! include($footer); ! ?> \ No newline at end of file |
From: <xt...@us...> - 2003-06-28 00:41:38
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv23125/setup Modified Files: setup.mysql Log Message: Add configuration to members menu (this isn't in members, but is in base, and is quite related, the link is there to eliminate confusion) Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/members/setup/setup.mysql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.mysql 27 Jun 2003 20:45:17 -0000 1.1 --- setup.mysql 28 Jun 2003 00:41:35 -0000 1.2 *************** *** 1 **** ! INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a>',modulenavigation='<a href="$basepath/members/profile.php">Profile</a> <a href="$basepath/members/skills.php">Skills</a> <a href="$basepath/members/updateprofile.php">Update Profile</a> <a href="$basepath/members/logout.php">Logout</a>'; \ No newline at end of file --- 1 ---- ! INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a> <a href="$basepath/config/">Configuration</a>',modulenavigation='<a href="$basepath/members/profile.php">Profile</a> <a href="$basepath/members/skills.php">Skills</a> <a href="$basepath/members/updateprofile.php">Update Profile</a> <a href="$basepath/members/logout.php">Logout</a>'; |
From: <xt...@us...> - 2003-06-28 00:38:37
|
Update of /cvsroot/openfirst/manual/setup In directory sc8-pr-cvs1:/tmp/cvs-serv22854/setup Modified Files: setup.mysql Log Message: Add view manual to user-level menu Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/manual/setup/setup.mysql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mysql 27 Jun 2003 20:44:40 -0000 1.3 --- setup.mysql 28 Jun 2003 00:38:34 -0000 1.4 *************** *** 1,2 **** CREATE table ofirst_manual (title TEXT, functionname TEXT, maintainer TEXT, creator TEXT, ID int(6) unsigned NOT NULL auto_increment, chapter int(3), description TEXT, notes TEXT, syntax TEXT, PRIMARY KEY (`ID`)); ! INSERT INTO ofirst_config SET modulename='manual',showonmenu='0',active='0'; \ No newline at end of file --- 1,3 ---- CREATE table ofirst_manual (title TEXT, functionname TEXT, maintainer TEXT, creator TEXT, ID int(6) unsigned NOT NULL auto_increment, chapter int(3), description TEXT, notes TEXT, syntax TEXT, PRIMARY KEY (`ID`)); ! INSERT INTO ofirst_config SET modulename='manual',showonmenu='0',active='0',modulenavigation='<a href="$basepath/manual/">View Manual</a>'; ! |
From: <xt...@us...> - 2003-06-28 00:36:32
|
Update of /cvsroot/openfirst/guestbook/setup In directory sc8-pr-cvs1:/tmp/cvs-serv22673/setup Modified Files: setup.mysql Log Message: Fix links to point to guestbook, not awards Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/guestbook/setup/setup.mysql,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** setup.mysql 27 Jun 2003 01:46:03 -0000 1.5 --- setup.mysql 28 Jun 2003 00:36:29 -0000 1.6 *************** *** 1,2 **** CREATE TABLE ofirst_guestbook (`guest` text, `email` text, `ICQ` text, `AIM` text, `MSN` text, `YIM` text, `IRC` text, `webpage` text, `location` text, `comment` text, `date` text, `deletecode` text) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='guestbook',showonmenu='0',active='0',adminnavigation='<a href="$basepath/awards/admin/">Manage Guestbook</a> <a href="$basepath/awards/admin/deleteentry.php">Delete Entry</a>',modulenavigation='<a href="$basepath/awards/">View Guestbook</a> <a href="$basepath/guestbook/sign.php">Sign Guestbook</a>'; \ No newline at end of file --- 1,2 ---- CREATE TABLE ofirst_guestbook (`guest` text, `email` text, `ICQ` text, `AIM` text, `MSN` text, `YIM` text, `IRC` text, `webpage` text, `location` text, `comment` text, `date` text, `deletecode` text) TYPE=MyISAM; ! INSERT INTO ofirst_config SET modulename='guestbook',showonmenu='0',active='0',adminnavigation='<a href="$basepath/guestbook/deleteentry.php">Delete Entry</a>',modulenavigation='<a href="$basepath/guestbook/">View Guestbook</a> <a href="$basepath/guestbook/sign.php">Sign Guestbook</a>'; |
From: <xt...@us...> - 2003-06-28 00:33:27
|
Update of /cvsroot/openfirst/feedback/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22309/admin Added Files: index.php Log Message: Add admin functions. --- NEW FILE: index.php --- <?php /* * openFIRST.feedback - admin/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); if(isset($_POST["feedbackusers"])) { echo("<p>The feedback users have been modified as per your request.</p>"); $line = explode("\n", $_POST["feedbackusers"]); foreach ($line as $lin) { $fname = (substr($lin, strpos($lin, " ") - strlen($lin))); $femail = substr($lin, 0, strpos($lin, " ")); if(trim($fname) != "" && trim($femail) != "") { $query = mysql_query("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');"); } } } echo("<h1>Feedback</h1> <p>Use this form to setup the users of the feedback system. Each user should be on a new line with their email address first, then a space and their name (as it should appear on the feedback form).</p> <form method='post' action='./'> "); $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); if (mysql_num_rows($query) != 0){ echo("<textarea name='feedbackusers' rows='10' cols='50'>"); while($feedback = mysql_fetch_object($query)){ echo("$feedback->email$feedback->name\n"); } } else { echo("<textarea name='feedbackusers' rows='10' cols='50'>xt...@us... Tim Ginn"); } echo("</textarea><br /><input type='submit' value='Update Feedback Users' /> </form>"); include($footer); ?> |
From: <xt...@us...> - 2003-06-28 00:32:52
|
Update of /cvsroot/openfirst/feedback/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22201/admin Log Message: Directory /cvsroot/openfirst/feedback/admin added to the repository |
From: <xt...@us...> - 2003-06-28 00:32:40
|
Update of /cvsroot/openfirst/feedback/setup In directory sc8-pr-cvs1:/tmp/cvs-serv22188/setup Modified Files: setup.mysql Log Message: Near complete rewrite of feedback to make things work properly, and add administrative functions. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/feedback/setup/setup.mysql,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** setup.mysql 27 Jun 2003 20:44:15 -0000 1.5 --- setup.mysql 28 Jun 2003 00:32:37 -0000 1.6 *************** *** 1,2 **** ! CREATE TABLE ofirst_feedbackusers (name TEXT, email TEXT); ! INSERT INTO ofirst_config SET modulename='feedback',showonmenu='0',active='0'; \ No newline at end of file --- 1,2 ---- ! CREATE TABLE ofirst_feedbackusers (name CHAR(150) UNIQUE NOT NULL, email CHAR(50) UNIQUE NOT NULL); ! INSERT INTO ofirst_config SET modulename='feedback',showonmenu='0',active='0',adminnavigation='<a href="$basepath/feedback/admin/">Manage Feedback Users</a>',modulenavigation='<a href="$basepath/feedback/">Give Feedback</a>'; |
From: <xt...@us...> - 2003-06-27 23:55:32
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv17786 Modified Files: first.php Log Message: Escape the escape character... this will cause everything to look right in globals.php with an actual \ infront of the variable name (as is required to str_replace it). Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** first.php 27 Jun 2003 23:52:16 -0000 1.10 --- first.php 27 Jun 2003 23:55:29 -0000 1.11 *************** *** 121,126 **** // Declare important variables so that headers can pick them up and preview them ! \$adminnav = str_replace(\"\$basepath\", \$basepath, \$module->adminnavigation); ! \$subnav = str_replace(\"\$basepath\", \$basepath, \$module->modulenavigation); }else{ --- 121,126 ---- // Declare important variables so that headers can pick them up and preview them ! \$adminnav = str_replace(\"\\\$basepath\", \$basepath, \$module->adminnavigation); ! \$subnav = str_replace(\"\\\$basepath\", \$basepath, \$module->modulenavigation); }else{ |
From: <xt...@us...> - 2003-06-27 23:52:19
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv17375 Modified Files: first.php Log Message: Properly escape variable name Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** first.php 27 Jun 2003 23:47:40 -0000 1.9 --- first.php 27 Jun 2003 23:52:16 -0000 1.10 *************** *** 109,113 **** } else { // If there is only 1 include available then use this line to include it instead ! include(\"$fbasepath/\$module->modulename/\$module->includes\"); } } --- 109,113 ---- } else { // If there is only 1 include available then use this line to include it instead ! include(\"\$fbasepath/\$module->modulename/\$module->includes\"); } } |
From: <xt...@us...> - 2003-06-27 23:48:45
|
Update of /cvsroot/openfirst/photogallery/setup In directory sc8-pr-cvs1:/tmp/cvs-serv16940/setup Modified Files: setup.mysql Log Message: Fix links in menu to point to photogallery module, not awards module. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/photogallery/setup/setup.mysql,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** setup.mysql 27 Jun 2003 02:20:29 -0000 1.6 --- setup.mysql 27 Jun 2003 23:48:42 -0000 1.7 *************** *** 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/awards/admin/">Gallery Manager</a>',modulenavigation='<a href="$basepath/awards/">View Gallery</a>'; \ No newline at end of file --- 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>'; |
From: <xt...@us...> - 2003-06-27 23:47:43
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv16789 Modified Files: first.php Log Message: Add navigation menu generation to globals.php, fix various errors in the generated globals.php scripts Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** first.php 27 Jun 2003 14:36:35 -0000 1.8 --- first.php 27 Jun 2003 23:47:40 -0000 1.9 *************** *** 81,113 **** ! session_start(); ! include(\'auth.php\'); mysql_select_db(\$sqldatabase, \$sqlconnection); \$incl = mysql_query(\"SELECT * FROM ofirst_config\"); if(mysql_errno() == 0) { ! while(\$module = mysql_fetch_object(\$incl)) { ! if( (bool) \$module->active == true) { ! if(! \$module->includes == \"\"){ ! \$inclist = explode(\",\",\$module->includes); ! if(count(\$inclist) >= 2){ ! foreach(\$inclist As \$inc){ ! include(\"\$basepath/\$module->modulename/\$inc\"); ! } ! } else { ! include(\"\$fbasepath/\$module->modulename/\$module->includes\"); ! } ! } ! if( (bool) \$module->showonmenu == true) { ! \$headers .= \" » <a class=\'menu\' ! href=\'\$basepath/\$module->modulename/\'>\".ucwords(\$module->modulename).\"</a> |\"; ! } - if (\$currentmodule = \$module->modulename){ - \$adminnav = \$module->adminnavigation; - \$subnav = \$module->modulenavigation; - } - } - } - } session_write_close(); ?>"); --- 81,135 ---- ! session_start(); ! include('auth.php'); ! session_write_close(); ! ! \$headers = \"\"; ! mysql_select_db(\$sqldatabase, \$sqlconnection); \$incl = mysql_query(\"SELECT * FROM ofirst_config\"); + + // If there is no error then run the module add feature if(mysql_errno() == 0) { ! // Begin to loop through modules from the databaes ! while(\$module = mysql_fetch_object(\$incl)) { ! // Check if the value is try, if it is then run an include ! if( (bool) \$module->active == true) { ! // Check if there are includes that need to be included ! if(! \$module->includes == \"\"){ ! // If the list is not empty then explode the value and put it into inclist ! \$inclist = explode(\",\",\$module->includes); ! // This is to remove an error that you have if you don't check if there are more then 2 ! if(count(\$inclist) >= 2){ ! ! // Loop through the inclist and add them according to their paths ! foreach(\$inclist As \$inc){ ! include(\"\$fbasepath/\$module->modulename/\$inc\"); ! } ! } else { ! // If there is only 1 include available then use this line to include it instead ! include(\"$fbasepath/\$module->modulename/\$module->includes\"); ! } ! } ! ! // If the module has requested to be shown on the menu then add it ! if( (bool) \$module->showonmenu == true) { ! // If it is the current module then color the item ! if (\$currentmodule == \$module->modulename){ ! \$headers .= \" » <font color='red'><b><a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a></b></font> |\"; ! ! // Declare important variables so that headers can pick them up and preview them ! ! \$adminnav = str_replace(\"\$basepath\", \$basepath, \$module->adminnavigation); ! \$subnav = str_replace(\"\$basepath\", \$basepath, \$module->modulenavigation); ! ! }else{ ! \$headers .= \" » <a class='menu' href='\$basepath/\$module->modulename'>\".ucwords(\$module->modulename).\"</a> |\"; ! } ! } ! } ! } ! } session_write_close(); ?>"); |
From: <dav...@us...> - 2003-06-27 23:16:08
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1:/tmp/cvs-serv12537 Modified Files: index.php Log Message: GammAR error :-p Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 27 Jun 2003 21:48:35 -0000 1.4 --- index.php 27 Jun 2003 23:16:06 -0000 1.5 *************** *** 37,41 **** <p>This team has won <strong><?php echo $amount; ?></strong> award(s).</p> <?php ! // If more then one awards is present then show the values if($amount > 0) { ?> --- 37,41 ---- <p>This team has won <strong><?php echo $amount; ?></strong> award(s).</p> <?php ! // If more then one award is present then show the values if($amount > 0) { ?> |
From: <dav...@us...> - 2003-06-27 23:15:33
|
Update of /cvsroot/openfirst/emoticon/setup In directory sc8-pr-cvs1:/tmp/cvs-serv12366 Modified Files: setup.mysql Log Message: Spelling fix. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** setup.mysql 27 Jun 2003 20:52:09 -0000 1.4 --- setup.mysql 27 Jun 2003 23:15:30 -0000 1.5 *************** *** 439,441 **** INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoitonc/">Main</a>'; \ No newline at end of file --- 439,441 ---- INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoticon/">Main</a>'; \ No newline at end of file |
From: <dav...@us...> - 2003-06-27 22:13:38
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1:/tmp/cvs-serv32120 Modified Files: index.php Log Message: Added a quote Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 23 Jun 2003 11:38:10 -0000 1.3 --- index.php 27 Jun 2003 21:48:35 -0000 1.4 *************** *** 37,40 **** --- 37,41 ---- <p>This team has won <strong><?php echo $amount; ?></strong> award(s).</p> <?php + // If more then one awards is present then show the values if($amount > 0) { ?> |
From: <dav...@us...> - 2003-06-27 21:53:10
|
Update of /cvsroot/openfirst/emoticon/setup In directory sc8-pr-cvs1:/tmp/cvs-serv22698 Modified Files: setup.mysql Log Message: Added link to main emoticon page. Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/emoticon/setup/setup.mysql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mysql 27 Jun 2003 20:44:01 -0000 1.3 --- setup.mysql 27 Jun 2003 20:52:09 -0000 1.4 *************** *** 439,441 **** INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0'; --- 439,441 ---- INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(torch)','<img src=\"http://openfirst.sourceforge.net/image/minimascot.png\" alt=\"(torch)\" title=\"(torch)\" />'); INSERT INTO ofirst_emoticon (emoticon, substitution) VALUES ('(first)','<img src=\"http://openfirst.sourceforge.net/image/icon/flag/first.png\" alt=\"(first)\" title=\"(first)\" />'); ! INSERT INTO ofirst_config SET modulename='emoticon',showonmenu='0',active='0',adminnavigation='<a href="$basepath/emoitonc/">Main</a>'; \ No newline at end of file |
From: <dav...@us...> - 2003-06-27 21:37:52
|
Update of /cvsroot/openfirst/manual/setup In directory sc8-pr-cvs1:/tmp/cvs-serv21779 Modified Files: setup.mysql Log Message: Fixed/added ofirst_config insert Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/manual/setup/setup.mysql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.mysql 21 Jun 2003 15:52:07 -0000 1.2 --- setup.mysql 27 Jun 2003 20:44:40 -0000 1.3 *************** *** 1 **** --- 1,2 ---- CREATE table ofirst_manual (title TEXT, functionname TEXT, maintainer TEXT, creator TEXT, ID int(6) unsigned NOT NULL auto_increment, chapter int(3), description TEXT, notes TEXT, syntax TEXT, PRIMARY KEY (`ID`)); + INSERT INTO ofirst_config SET modulename='manual',showonmenu='0',active='0'; \ No newline at end of file |
From: <dav...@us...> - 2003-06-27 21:32:56
|
Update of /cvsroot/openfirst/members/setup In directory sc8-pr-cvs1:/tmp/cvs-serv21888 Added Files: setup.mysql Log Message: Fixed/added ofirst_config insert --- NEW FILE: setup.mysql --- INSERT INTO ofirst_config SET modulename='members',showonmenu='0',active='0',adminnavigation='<a href="$basepath/members/adduser.php">Add Users</a>',modulenavigation='<a href="$basepath/members/profile.php">Profile</a> <a href="$basepath/members/skills.php">Skills</a> <a href="$basepath/members/updateprofile.php">Update Profile</a> <a href="$basepath/members/logout.php">Logout</a>'; |