[Openfirst-cvscommit] logger track.php,1.6,1.7 logger.php,1.4,1.5
Brought to you by:
xtimg
From: <dav...@us...> - 2003-08-22 10:57:47
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv2398 Modified Files: track.php logger.php Log Message: Logger now checks if the user if logged in then adds the username logged in with to the database. Tracker has been edited to show these values or show null. Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** track.php 28 Jun 2003 15:23:48 -0000 1.6 --- track.php 21 Aug 2003 13:06:48 -0000 1.7 *************** *** 30,34 **** if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['DELETE']."'") or die(mysql_error()); } --- 30,34 ---- if (isset($_GET['DELETE'])) { ! mysql_query("DELETE FROM ofirst_logger WHERE IPAddress = '".$_GET['ID']."'") or die(mysql_error()); } *************** *** 38,43 **** <h1>View Log Information</h1> <p>You are tracking the hits by: <strong><?php print $_GET['ID']; ?></strong>, ! who a total of <strong><?php echo $amount; ?></strong> pages. <br> ! <br>[ <a href='track.php?DELETE=<?php print $_GET['ID']; ?>'>Delete all hits by this user ]</a></p> <table> <tr> --- 38,43 ---- <h1>View Log Information</h1> <p>You are tracking the hits by: <strong><?php print $_GET['ID']; ?></strong>, ! who has visited a total of <strong><?php echo $amount; ?></strong> pages. <br> ! <br>[ <a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'>Delete all hits by this user ]</a></p> <table> <tr> *************** *** 48,51 **** --- 48,52 ---- <th>Location</th> <th>Query String</th> + <th>Member</th> <th>Options</th> </tr> *************** *** 59,62 **** --- 60,64 ---- echo " <td>$log->Location</td>"; echo " <td>$log->QueryString</td>"; + if($log->Member != "null"){ echo " <td>$log->Member</td>"; }else{ echo "<td>NULL</td>"; } echo " <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"; echo "</tr>"; *************** *** 64,68 **** ?> </tr> ! </table> <?php include("$footer"); --- 66,70 ---- ?> </tr> ! </table><br><br> <?php include("$footer"); Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/logger/logger.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** logger.php 28 Jun 2003 15:23:48 -0000 1.4 --- logger.php 21 Aug 2003 13:06:48 -0000 1.5 *************** *** 39,43 **** } ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser) values('".$IP."' ,'".$DATE."' --- 39,49 ---- } ! if(ISSET($user->user)){ ! $MEMBER = $user->user; ! }else{ ! $MEMBER = "null"; ! } ! ! mysql_query("INSERT INTO ofirst_logger (IPAddress,Date,Location,QueryString,HostLookup,Browser,Member) values('".$IP."' ,'".$DATE."' *************** *** 45,49 **** ,'".$QUERYSTRING."' ,'".$HOST."' ! ,'".$BROWSER."')") or die(mysql_error()); ?> --- 51,56 ---- ,'".$QUERYSTRING."' ,'".$HOST."' ! ,'".$BROWSER."' ! ,'".$MEMBER."')") or die(mysql_error()); ?> |