[Openfirst-cvscommit] logger track.php,1.15,1.16 stats.php,1.4,1.5 reset.php,1.7,1.8 index.php,1.8,1
Brought to you by:
xtimg
From: <dav...@us...> - 2003-12-22 19:42:57
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv21153 Modified Files: track.php stats.php reset.php index.php Log Message: Graphical design changes. Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** track.php 2 Nov 2003 21:32:58 -0000 1.15 --- track.php 22 Dec 2003 19:32:45 -0000 1.16 *************** *** 50,78 **** ?> <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> - <?php - if(function_exists("identify_browser")){ ?> - <div><form action="<?php echo($_SERVER['PHP_SELF']); ?>"> - <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?>></input> - <label for="useragent">Identify browser</label> - <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"></input> - <input type="Submit" value="OK"></input> - </form></div> - <?php } ?> <table> ! <tr> <th>ID</th> <th>Date</th> - <th>IP Address</th> - <th>Host Lookup</th> <th>Location</th> <th>Query String</th> <th>Member</th> <th>Options</th> ! <?php if(function_exists("identify_browser")&&$browserid){ echo("<th>Browser</th> --- 50,99 ---- ?> <h1>View Log Information</h1> ! <div> ! <form action="<?php echo($_SERVER['PHP_SELF']); ?>"> ! <table width="323"> ! <tr> ! <th><strong>Tracking <?php print $_GET['ID']; ?></strong></th> ! </tr> ! <tr> ! <td><div align="center">The user has visited a total of <strong><?php echo($amount); ?></strong> ! pages.</div></td> ! </tr> ! <tr> ! <td> ! <div align="center"> ! <table width="75%"> ! ! <tr> ! <td width="18%"><a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/actions/messagebox_critical.png" border="0"></a></td> ! <td width="82%">Delete all hits by this user </td> ! </tr> ! </table> ! ! </div></td> ! </tr> ! <?php if(function_exists("identify_browser")){ ?> ! <tr> ! <td><div align="center"> ! <input id="useragent" name="useragent" type="checkbox" value="1" <?php if($browserid){ echo("checked"); } ?>> ! <label for="useragent">Identify browser</label> ! <input name="ID" type="hidden" value="<?php echo($_GET['ID']); ?>"> ! <input name="Submit" type="Submit" value="OK"> ! </div></td> ! </tr> ! <?php } ?> ! </table> ! </form></div> <table> ! <tr> <th>ID</th> <th>Date</th> <th>Location</th> <th>Query String</th> <th>Member</th> <th>Options</th> ! <?php if(function_exists("identify_browser")&&$browserid){ echo("<th>Browser</th> *************** *** 81,95 **** ?> </tr> ! <? while($log = ofirst_dbfetch_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>"); if($log->Member != "null"){ echo(" <td>$log->Member</td>"); }else{ echo("<td>NULL</td>"); } ! echo(" <td>[ <a href='./?DELETE=$log->ID'>Delete</a> ]</td>"); if(function_exists("identify_browser")&&$browserid){ echo(" <td>"); --- 102,114 ---- ?> </tr> ! <? while($log = ofirst_dbfetch_object($query)) { echo("<tr>"); echo(" <td>$log->ID</td>"); echo(" <td>$log->Date</td>"); 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'><img border='0' src='$home$basepath/members/icons/actions/button_cancel.png'></a></td>"); if(function_exists("identify_browser")&&$browserid){ echo(" <td>"); *************** *** 104,110 **** echo("</tr>"); } ! ?> ! </tr> ! </table><br><br> <?php include_once("$footer"); --- 123,129 ---- echo("</tr>"); } ! ?></tr> ! </table> ! <br><br> <?php include_once("$footer"); Index: stats.php =================================================================== RCS file: /cvsroot/openfirst/logger/stats.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** stats.php 13 Oct 2003 17:57:22 -0000 1.4 --- stats.php 22 Dec 2003 19:32:45 -0000 1.5 *************** *** 77,83 **** ?> - <h1>Usage Statistics for <?php echo($title); ?></h1> ! <table cols=2 width=400> <tr align=left valign=bottom> <td height="23" colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> --- 77,95 ---- ?> ! <h1>Usage Statistics for <?php echo($title); ?></h1> ! <table width="261"> ! <tr> ! <th> </th> ! <th>Stats Options</th> ! </tr> ! <tr> ! <td width="32"><a href='track.php?ID=<?php echo $_GET['ID']; ?>&DELETE=true'><img src="<?php echo $home.$basepath; ?>/members/icons/apps/kcalc.png" border="0"></a></td> ! <td width="286"><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage ! Graphs</a></b></td> ! </tr> ! </table> ! <br> ! <table cols=2 width=566> <tr align=left valign=bottom> <td height="23" colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> *************** *** 90,94 **** </tr> <tr> ! <td><b>Total Pages Served</b> </td> <td align=right> <?php --- 102,106 ---- </tr> <tr> ! <td><b>Total Pages Served</b> (Hits)</td> <td align=right> <?php *************** *** 128,132 **** if($browser!="totalpages"){ if(function_exists("identify_browser")){ ! $browse=identify_browser($useragent->Name); } else { --- 140,144 ---- if($browser!="totalpages"){ if(function_exists("identify_browser")){ ! $browse = identify_browser($useragent->Name); } else { *************** *** 157,168 **** ?> <tr> ! <td><b>Total Visitors</b> </td> <td align=right><?php echo($total); ?> </td> </tr> <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Browsers</h3></td></tr><tr> ! <td class='sub'> ! </div></td><td class='sub'><div align="center">Items: <?php echo(sizeof($browsers)); --- 169,182 ---- ?> <tr> ! <td><b>Total Visitors</b> (Unique Visitors)</td> <td align=right><?php echo($total); ?> </td> </tr> <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Browsers</h3></td> ! </tr> ! <tr> ! <td class='sub'> </div></td> ! <td class='sub'><div align="center">Items: <?php echo(sizeof($browsers)); *************** *** 178,184 **** <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Platforms</h3></td></tr> ! <tr><td class='sub'> ! </div></td><td class='sub'><div align="center">Items: <?php echo(sizeof($platforms)); --- 192,200 ---- <tr align=left valign=bottom> <td colspan=2 background="<?php echo($basepath); ?>/images/back-light.gif"> ! <h3 style="margin-bottom:0px">Platforms</h3></td> ! </tr> ! <tr> ! <td class='sub'> </div></td> ! <td class='sub'><div align="center">Items: <?php echo(sizeof($platforms)); *************** *** 192,199 **** } ?> - <tr> - <td colspan=2><br> <hr> <div align=right><b><a href="<?php echo($_SERVER["PHP_SELF"]); ?>?graph=1">Usage - Graph</a></b></div></td> - </tr> </table> --- 208,211 ---- Index: reset.php =================================================================== RCS file: /cvsroot/openfirst/logger/reset.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** reset.php 13 Oct 2003 17:57:22 -0000 1.7 --- reset.php 22 Dec 2003 19:32:45 -0000 1.8 *************** *** 42,49 **** <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> ! <br /> ! <input name="confirm" type="submit" id="confirm" value="Delete all Entries"> ! </p> </form> <br> --- 42,54 ---- <h1>View Log Information</h1> <form action="reset.php" method="POST"> ! <table width="29%"> ! <tr> ! <td width="4%"><img src="<?php echo $home.$basepath; ?>/members/icons/actions/messagebox_warning.png" border="0"></td> ! <td width="96%">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"> ! </td> ! </tr> ! </table> ! <p> </p> </form> <br> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/logger/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 2 Nov 2003 15:37:07 -0000 1.8 --- index.php 22 Dec 2003 19:32:45 -0000 1.9 *************** *** 68,73 **** <div align="center">This page displays grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below. Note that the below logs are listed in descending order ! with the most recent at the top. </div> --- 68,74 ---- <div align="center">This page displays grouped unique visitors. If you wish to view the exact location that the user has visited click<br> ! the track button below. Note that the below logs are listed in descending order ! with the most recent at the top.<br> ! <br> </div> *************** *** 88,92 **** 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>"; } --- 89,96 ---- echo " <td>$log->IPAddress</td>"; echo " <td>$log->HostLookup</td>"; ! echo "<td> ! <a href='./?DELETE=$log->IPAddress'><img border='0' src='$home$basepath/members/icons/actions/button_cancel.png'></a> ! <a href='track.php?ID=$log->IPAddress'><img src='$home$basepath/members/icons/actions/filefind.png' border='0'></a> ! </td>"; echo "</tr>"; } |