diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 5732af8036..7c17ece954 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 0703ebc5dc..6a092d47ed 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;