mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user