fixes to billing

git-svn-id: http://www.observium.org/svn/observer/trunk@1605 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-01 17:09:13 +00:00
parent 02509b9638
commit 1c7b486e7c
2 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ if($_GET['debug']) {
include("../includes/defaults.inc.php");
include("../config.php");
include("includes/functions.inc.php");
include("../includes/common.php");
include("../includes/rewrites.php");
include("includes/authenticate.inc.php");
@@ -17,7 +18,7 @@ if($_GET['debug']) {
if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
if(isset($_GET['device_id'])){
if(is_numeric($_GET['device_id'])){
$ports = mysql_query("SELECT * FROM ports WHERE device_id = '".$_GET['device_id']."'");
while($interface = mysql_fetch_array($ports)) {