|
| 1 | +<?php include("func.inc"); ?> |
| 2 | + |
| 3 | +<?php |
| 4 | +$knownlinks = getknownlinks(); |
| 5 | +$hours = 24; |
| 6 | +if (@$_GET['numhours']) |
| 7 | + $hours = (int)$_GET['numhours']; |
| 8 | +$label = statsLabelForHours($hours); |
| 9 | +$i = 0; |
| 10 | +foreach ($knownlinks as $link) { |
| 11 | + $class = (($i % 2) == 0) ? "" : "even"; |
| 12 | + if ($showv6) { |
| 13 | + $list_img[$link['tag']] = '<img alt="link graph" src="linkgraph.php?link='.$link['tag'].'&numhours='.$hours.'&width='.$linkusage_graph_width.'&height='.$linkusage_graph_height.'&dname='.rawurlencode($link['descr'] . " - IPv4").'" width="'.$linkusage_graph_width.'" height="'.$linkusage_graph_height.'" border="0" />'; |
| 14 | + $list_img_v6[$link['tag']] = '<img alt="link graph" src="linkgraph.php?link='.$link['tag'].'&numhours='.$hours.'&width='.$linkusage_graph_width.'&height='.$linkusage_graph_height.'&dname='.rawurlencode($link['descr'] . " - IPv6").'&v=6" width="'.$linkusage_graph_width.'" height="'.$linkusage_graph_height.'" border="0" />'; |
| 15 | + } else { |
| 16 | + $list_img[$link['tag']] = '<img alt="link graph" src="linkgraph.php?link='.$link['tag'].'&numhours='.$hours.'&width='.$linkusage_graph_width.'&height='.$linkusage_graph_height.'&dname='.rawurlencode($link['descr']).'" width="'.$linkusage_graph_width.'" height="'.$linkusage_graph_height.'" border="0" />'; |
| 17 | + } |
| 18 | + if ( ($showtitledetail && !$hidelinkusagename) || (!$showtitledetail) ) { |
| 19 | + $txt_title[$link['tag']] = $link['descr']; |
| 20 | + } else { $txt_title = ""; } |
| 21 | +} |
| 22 | +?> |
| 23 | + |
| 24 | +<html> |
| 25 | +<head> |
| 26 | + <meta charset="UTF-8"> |
| 27 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 28 | + <meta http-equiv="Refresh" content="300"> |
| 29 | + <title>AS-Stats | Link Usage - Top 10 AS per link</title> |
| 30 | + <link rel="icon" href="favicon.ico" /> |
| 31 | + <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> |
| 32 | + <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> |
| 33 | + <link rel="stylesheet" href="plugins/font-awesome/font-awesome.min.css"> |
| 34 | + <link rel="stylesheet" href="plugins/ionicons/ionicons.min.css"> |
| 35 | + <link rel="stylesheet" href="dist/css/AdminLTE.min.css"> |
| 36 | + <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css"> |
| 37 | + <link rel="stylesheet" href="css/custom.css"> |
| 38 | +</head> |
| 39 | +<body class="hold-transition skin-black-light sidebar-collapse layout-top-nav fixed"> |
| 40 | + |
| 41 | +<div class="wrapper"> |
| 42 | + |
| 43 | + <!-- =============================================== --> |
| 44 | + <?php echo menu($selected_links); ?> |
| 45 | + <!-- =============================================== --> |
| 46 | + |
| 47 | + <div class="content-wrapper"> |
| 48 | + <?php echo content_header('Top 10 AS - per link usage', '(' . $label . ')'); ?> |
| 49 | + |
| 50 | + <section class="content"> |
| 51 | + <div class="row"> |
| 52 | + <?php |
| 53 | + if ( !$txt_title ) { |
| 54 | + if (!$showv6) { |
| 55 | + foreach ($list_img as $key => $img) { |
| 56 | + echo '<div class="col-lg-6">'; |
| 57 | + echo box_linkusage('Link Usage', $img); |
| 58 | + echo '</div>'; |
| 59 | + } |
| 60 | + } else { |
| 61 | + foreach ($list_img as $key => $img) { |
| 62 | + echo '<div class="col-lg-12">'; |
| 63 | + echo box_linkusage('Link Usage', $img . ' ' . $list_img_v6[$key]); |
| 64 | + echo '</div>'; |
| 65 | + } |
| 66 | + } |
| 67 | + } else { |
| 68 | + if (!$showv6) { |
| 69 | + foreach ($list_img as $key => $img) { |
| 70 | + echo '<div class="col-lg-6">'; |
| 71 | + echo box_linkusage('Link Usage for ' . $txt_title[$key], $img); |
| 72 | + echo '</div>'; |
| 73 | + } |
| 74 | + } else { |
| 75 | + foreach ($list_img as $key => $img) { |
| 76 | + echo '<div class="col-lg-12">'; |
| 77 | + echo box_linkusage('Link Usage for ' . $txt_title[$key], $img . ' ' . $list_img_v6[$key]); |
| 78 | + echo '</div>'; |
| 79 | + } |
| 80 | + } |
| 81 | + } |
| 82 | + ?> |
| 83 | + </div> |
| 84 | + </section> |
| 85 | + </div> |
| 86 | + |
| 87 | + <!-- =============================================== --> |
| 88 | + <?php echo footer(); ?> |
| 89 | + <!-- =============================================== --> |
| 90 | + |
| 91 | +</div> |
| 92 | + |
| 93 | +<script src="plugins/jQuery/jquery-2.2.3.min.js"></script> |
| 94 | +<script src="bootstrap/js/bootstrap.min.js"></script> |
| 95 | +<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script> |
| 96 | +<script src="plugins/fastclick/fastclick.min.js"></script> |
| 97 | +<script src="plugins/jQueryUI/jquery-ui.min.js"></script> |
| 98 | +<script src="dist/js/app.min.js"></script> |
| 99 | + |
| 100 | +</body> |
| 101 | +</html> |
0 commit comments