Update of /cvsroot/openfirst/logger
In directory sc8-pr-cvs1:/tmp/cvs-serv9462/logger
Modified Files:
index.php rawdata.php track.php
Log Message:
Anonymous web users no longer have access to Logger features such as host listings and tracker. This functionality should not really be available to unauthorized users :)
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/logger/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 13 Oct 2003 17:57:22 -0000 1.5
--- index.php 15 Oct 2003 01:02:53 -0000 1.6
***************
*** 27,30 ****
--- 27,35 ----
*/
+ if(!isset($user->user)||$user->membertype!="administrator"){
+ header("Location: stats.php");
+ exit;
+ }
+
include_once("../config/globals.php");
***************
*** 90,92 ****
<?php
include_once("$footer");
! ?>
\ No newline at end of file
--- 95,97 ----
<?php
include_once("$footer");
! ?>
Index: rawdata.php
===================================================================
RCS file: /cvsroot/openfirst/logger/rawdata.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** rawdata.php 13 Oct 2003 17:57:22 -0000 1.7
--- rawdata.php 15 Oct 2003 01:02:54 -0000 1.8
***************
*** 26,29 ****
--- 26,35 ----
*
*/
+
+ if(!isset($user->user)||$user->membertype!="administrator"){
+ header("Location: stats.php");
+ exit;
+ }
+
include_once("../config/globals.php");
include_once("$header");
***************
*** 66,77 ****
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>";
! echo " <td>[ <a href='rawdata.php?DELETE=$log->ID'>Delete</a> ]</td>";
! echo "</tr>";
}
?>
--- 72,83 ----
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>";
! echo " <td>[ <a href='rawdata.php?DELETE=$log->ID'>Delete</a> ]</td>";
! echo "</tr>";
}
?>
***************
*** 80,82 ****
<?php
include_once("$footer");
! ?>
\ No newline at end of file
--- 86,88 ----
<?php
include_once("$footer");
! ?>
Index: track.php
===================================================================
RCS file: /cvsroot/openfirst/logger/track.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** track.php 13 Oct 2003 17:57:22 -0000 1.12
--- track.php 15 Oct 2003 01:02:54 -0000 1.13
***************
*** 26,29 ****
--- 26,35 ----
*
*/
+
+ if(!isset($user->user)||$user->membertype!="administrator"){
+ header("Location: stats.php");
+ exit;
+ }
+
include_once("../config/globals.php");
include_once("$header");
|