From 4d5380e2cc362db04e8e87f068b885ff158b7d9f Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 2 Aug 2010 22:19:18 +0000 Subject: [PATCH] clean up unused function, remove baseurl (yay relative urls) git-svn-id: http://www.observium.org/svn/observer/trunk@1626 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/bill.inc.php | 8 ++++---- includes/functions.php | 19 ------------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 5732af803..7c17ece95 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -57,14 +57,14 @@ if(bill_permitted($bill_id)) { if(!$_GET['optb']) { $_GET['optb'] = "details"; } if($_GET['optb'] == "details") { echo(""); } - echo("Details"); + echo("Details"); if($_GET['optb'] == "details") { echo(""); } if($_SESSION['userlevel'] == "10") { echo(" | "); if($_GET['optb'] == "edit") { echo(""); } - echo("Edit"); + echo("Edit"); if($_GET['optb'] == "edit") { echo(""); } } @@ -174,7 +174,7 @@ if(bill_permitted($bill_id)) { $yesterday = mysql_result(mysql_query("SELECT UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 1 DAY))"), 0); $rightnow = date(U); -# $di = ""; @@ -183,7 +183,7 @@ if(bill_permitted($bill_id)) { $di = $di . "&width=715&height=200&total=1'>"; -# $mi = ""; diff --git a/includes/functions.php b/includes/functions.php index 0703ebc5d..6a092d47e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -109,25 +109,6 @@ function getHostOS($device) if ($os) { return $os; } else { return "generic"; } } -function billpermitted($bill_id) -{ - global $_SESSION; - if ($_SESSION['userlevel'] >= "5") - { - $allowed = TRUE; - } - elseif (@mysql_result(mysql_query("SELECT count(*) FROM bill_perms WHERE `user_id` = '" . $_SESSION['user_id'] . "' AND `bill_id` = $bill_id"), 0) > '0') - { - $allowed = TRUE; - } - else - { - $allowed = FALSE; - } - - return $allowed; -} - function formatRates($rate) { $rate = format_si($rate) . "bps"; return $rate;