From 866658cded5b92ddb2681dead1ebaf111d712fcc Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 11:09:10 +0200 Subject: init --- boca-1.5.0/src/admin/log.php | 76 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 boca-1.5.0/src/admin/log.php (limited to 'boca-1.5.0/src/admin/log.php') diff --git a/boca-1.5.0/src/admin/log.php b/boca-1.5.0/src/admin/log.php new file mode 100644 index 0000000..ff915ea --- /dev/null +++ b/boca-1.5.0/src/admin/log.php @@ -0,0 +1,76 @@ +. +//////////////////////////////////////////////////////////////////////////////// +// Last modified 05/aug/2012 by cassio@ime.usp.br +require('header.php'); + +if(isset($_GET["order"])) +$order = myhtmlspecialchars($_GET["order"]); +else $order=''; +if(isset($_GET["user"])) +$user = myhtmlspecialchars($_GET["user"]); +else $user=''; +if(isset($_GET["site"])) +$site = myhtmlspecialchars($_GET["site"]); +else $site=''; +if(isset($_GET["type"])) +$type = myhtmlspecialchars($_GET["type"]); +else $type=''; +if(isset($_GET["ip"])) +$ip = myhtmlspecialchars($_GET["ip"]); +else $ip=''; +$get="&order=${order}&user=${user}&site=${site}&type=${type}&ip=${ip}"; +if (isset($_GET["limit"]) && $_GET["limit"]>0) + $limit = myhtmlspecialchars($_GET["limit"]); +else $limit = 50; +$log = DBGetLogs($order, $_SESSION["usertable"]["contestnumber"], + $site, $user, $type, $ip, $limit); +?> +
+ + + + + + + + + + +\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "\n"; +} +echo "
SiteUser #IPTypeDateDescriptionStatus
" . $log[$i]["site"] . "" . $log[$i]["user"] . "" . $log[$i]["ip"] . "" . $log[$i]["type"] . "" . dateconv($log[$i]["date"]) . "" . $log[$i]["data"] . "" . $log[$i]["status"] . "
\n"; + +?> +
+
+50 +200 +1000 +no limit + + -- cgit v1.2.3