Skip to content
Snippets Groups Projects
Select Git revision
  • c306d3fe3bedea7ef644d155776b8a46f96440b0
  • zig default
  • master
  • zig-threaded
  • openat
  • chdir
  • clear
  • compll
  • v1.18.1
  • v2.2.2
  • v1.18
  • v2.2.1
  • v2.2
  • v1.17
  • v2.1.2
  • v2.1.1
  • v2.1
  • v2.0.1
  • v2.0
  • v2.0-beta3
  • v2.0-beta2
  • v2.0-beta1
  • v1.16
  • v1.15.1
  • v1.15
  • v1.14.2
  • v1.14.1
  • v1.14
28 results

calc.c

Blame
  • 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>