Skip to content
Snippets Groups Projects
Select Git revision
  • 8dd1727c6cd3ef37b21fde7a8906dfcaf8ea5f9a
  • master default protected
  • rednatco-v2
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • servers
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

cif-encoder.ts

Blame
  • table_TopTargetports.php 493 B
    <?php
    
    include("db.php");
    
    $q = "select target_port, count(*) as events, sum(attack_scale) as totalScale from events where detected > from_unixtime(unix_timestamp(now())-3600*24*30) group by target_port order by totalScale desc limit 300;";
    $res = mysql_query($q, $db);
    if (mysql_num_rows($res) == 0) { die("nodata");}
    
    $d = array();
    while ($tmp = mysql_fetch_assoc($res)) { 
      array_push($d, $tmp);
    }
    mysql_free_result($res);
    mysql_close($db);
    
    print json_encode(array("aaData" => $d));
    
    ?>