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 = '' ; $result = mysql_query("select * from broken_user_agent $filter") or die("Cannot get results: ".mysql_error()) ; ?>
if (mysql_num_rows($result) == 0) print("No user-agent were broken yesterday.
") ; else { print("
User-Agent string |
$line[user_agent] |
") ; } ?>