require_once '../ipv6status/auth.php' ; mysql_connect('localhost', $db_user, $db_password) or die("Cannot connect to the database:".mysql_error()) ; mysql_select_db($db_db) ; if (isset($_REQUEST['site']) and $_REQUEST['site'] != '') { $site = mysql_real_escape_string(trim($_REQUEST['site'])) ; $filter = "where site = '$site' " ; } else $filter = '' ; $show_ip = (isset($_REQUEST['show_ip'])) ? $_REQUEST['show_ip'] : '' ; $result = mysql_query("select * from broken_address $filter") or die("Cannot get results: ".mysql_error()) ; ?>
if (mysql_num_rows($result) == 0) print("No ASN were broken yesterday.
") ; else { print("
Autonomous System | ") ; if ($show_ip) print("IP Address | ") ; print("
$line[asn] | ") ; if ($show_ip) print("$line[address] | ") ; print("
") ; } ?>