Thread: [Openfirst-cvscommit] logger index.php,1.1,1.2 logger.php,1.2,1.3 rawdata.php,1.3,1.4 reset.php,1.2,
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-21 12:42:49
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv2970 Modified Files: index.php logger.php rawdata.php reset.php track.php Log Message: Add user login checking, fix links (including lingering case-sensitivity issues), fix headers (give credit where it's due) Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 8 Jun 2003 02:23:08 -0000 1.1 --- index.php 21 Jun 2003 12:42:44 -0000 1.2 *************** *** 5,9 **** * Copyright (C) 2003, * openFIRST Project ! * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify --- 5,9 ---- * Copyright (C) 2003, * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify *************** *** 31,35 **** include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); --- 31,35 ---- include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); *************** *** 67,71 **** <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> --- 67,71 ---- <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> *************** *** 73,77 **** <p> ! <form action="viewLog.php" method="POST"> <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> --- 73,77 ---- <p> ! <form action="./" method="POST"> <input name="min" type="text" id="min" value="<?php echo $min; ?>" size="10"> *************** *** 127,131 **** echo " <td>$log->HostLookup</td>"; ! echo " <td>[ <a href='viewLog.php?DELETE=$log->IPAddress'>Delete</a> ] [ <a href='track.php?ID=$log->IPAddress'>Track</a> ]</td>"; echo "</tr>"; --- 127,131 ---- echo " <td>$log->HostLookup</td>"; ! echo " <td>[ <a href='./?DELETE=$log->IPAddress'>Delete</a> ] [ <a href='track.php?ID=$log->IPAddress'>Track</a> ]</td>"; echo "</tr>"; Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** logger.php 21 Apr 2003 20:20:49 -0000 1.2 --- logger.php 21 Jun 2003 12:42:44 -0000 1.3 *************** *** 1,4 **** ! <?php ! mysql_select_db($sqldatabase,$sqlconnection); --- 1,30 ---- ! <?php ! /* ! * openFIRST.logger - logger.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! */ ! mysql_select_db($sqldatabase,$sqlconnection); Index: rawdata.php =================================================================== RCS file: /cvsroot/openfirst/logger/rawdata.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rawdata.php 5 May 2003 11:19:24 -0000 1.3 --- rawdata.php 21 Jun 2003 12:42:44 -0000 1.4 *************** *** 1,6 **** ! <?php include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_POST['view'])){ --- 1,32 ---- ! <?php ! /* ! * openFIRST.logger - rawdata.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! */ include("../config/globals.php"); include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_POST['view'])){ *************** *** 20,24 **** ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 46,50 ---- ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/logger/reset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reset.php 5 May 2003 11:19:24 -0000 1.2 --- reset.php 21 Jun 2003 12:42:44 -0000 1.3 *************** *** 1,15 **** ! <?php include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_POST['confirm'])){ mysql_query("DELETE FROM ofirst_logger"); echo "<br><br><center>Logger system has been reset<center>"; } ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawData.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 1,46 ---- ! <?php ! /* ! * openFIRST.logger - reset.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! */ include("../config/globals.php"); include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_POST['confirm'])){ + if(isset($user->user) == true && $user->membertype == 'administrator') { mysql_query("DELETE FROM ofirst_logger"); echo "<br><br><center>Logger system has been reset<center>"; + } else { + echo("You are not logged in, or do not have sufficient permission to reset the logger."); + showlogin(); + } } ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> *************** *** 26,28 **** </p> </form></p> ! <?php include("$footer"); ?> \ No newline at end of file --- 57,59 ---- </p> </form></p> ! <?php include("$footer"); ?> Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** track.php 1 Jun 2003 17:53:25 -0000 1.4 --- track.php 21 Jun 2003 12:42:44 -0000 1.5 *************** *** 2,6 **** include("../config/globals.php"); include("$header"); ! mysql_select_db("openFIRST",$sqlconnection); if (ISSET($_GET['DELETE'])){ --- 2,6 ---- include("../config/globals.php"); include("$header"); ! mysql_select_db($sqldatabase,$sqlconnection); if (ISSET($_GET['DELETE'])){ *************** *** 12,16 **** ?> <h1>View Log Information</h1> ! <p>[ <a href="viewLog.php">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> --- 12,16 ---- ?> <h1>View Log Information</h1> ! <p>[ <a href="./">Track User Movement </a>] [<a href="rawdata.php"> View Raw Hits</a> ] [ <a href="reset.php">Reset Logger</a> ]</p> <p> *************** *** 45,49 **** echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='viewLog.php?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; } --- 45,49 ---- echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; ! echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; } |