Skip to content
Snippets Groups Projects
Select Git revision
  • e380805990816e191aa75cd9fb791b1c2b36ceee
  • 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

dir_scan.c

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));
    
    ?>