Select Git revision
stats.php 2.05 KiB
<?
include("db.php");
#include("build_table_html.php");
if(isset($_GET['c']))
switch($_GET['c']) {
case 'droplog': $db->log->remove();
header("Location: ".$_SERVER["PHP_SELF"]);
break;
case 'dropmaps':
#TODO: refactor listcollections
$list = $db->listCollections();
foreach ($list as $collection) {
$cname = $collection->getName();
if( preg_match("/^map/", $cname)) {
print("Dropping $cname\n");
$collection->drop();
$db->timingReduces->remove(json_decode('{"name":"'.$cname.'"}'), array("justOne"=>true));
}
}
header("Location: ".$_SERVER["PHP_SELF"]);
break;
case 'makemaps':
include("makemaps.php");
header("Location: ".$_SERVER["PHP_SELF"]);
break;
default: break;
}
?>
<table width="100%" border=0>
<tr>
<td width="50%">
<iframe src="graph_TypeActivity_html.php" style="width:100%; height:400"></iframe>
</td>
<td>
<iframe src="graph_HostnameServiceTypeActivity_html.php" style="width:100%; height:400"></iframe>
</td>
</tr>
<tr>
<td width="50%">
<iframe src="graph_TypeActivityScale_html.php" style="width:100%; height:400"></iframe>
</td>
<td>
<iframe src="graph_HostnameServiceTypeActivityScale_html.php" style="width:100%; height:400"></iframe>
</td>
</tr>
<tr>
<td colspan=2>
<iframe src="table_HostnameServiceType.html" style="width:100%; height:800"></iframe>
</td>
</tr>
<tr>
<td colspan=2>
<iframe src="show_TargetportActivity.php" style="width:100%; height:1000"></iframe>
</td>
</tr>
</table>