mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
show ports/sensors on the device list page. add option to use php-snmp functions for snmp_get()s
git-svn-id: http://www.observium.org/svn/observer/trunk@1716 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
$bill_id = mres($_GET['opta']);
|
||||
|
||||
include("bill/actions.inc.php");
|
||||
if($_SESSION['userlevel'] == "10")
|
||||
{
|
||||
include("pages/bill/actions.inc.php");
|
||||
}
|
||||
|
||||
if(bill_permitted($bill_id)) {
|
||||
|
||||
@@ -68,6 +71,11 @@ if(bill_permitted($bill_id)) {
|
||||
if($_GET['optb'] == "edit") { echo("<strong>"); }
|
||||
echo("<a href='bill/".$bill_id."/edit/'>Edit</a>");
|
||||
if($_GET['optb'] == "edit") { echo("</strong>"); }
|
||||
|
||||
echo(" | ");
|
||||
if($_GET['optb'] == "delete") { echo("<strong>"); }
|
||||
echo("<a href='bill/".$bill_id."/delete/'>Delete</a>");
|
||||
if($_GET['optb'] == "delete") { echo("</strong>"); }
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
@@ -79,7 +87,11 @@ if(bill_permitted($bill_id)) {
|
||||
|
||||
include("pages/bill/edit.inc.php");
|
||||
|
||||
}elseif($_GET['optb'] == "details") {
|
||||
} elseif($_GET['optb'] == "delete" && $_SESSION['userlevel'] == "10") {
|
||||
|
||||
include("pages/bill/delete.inc.php");
|
||||
|
||||
} elseif($_GET['optb'] == "details") {
|
||||
|
||||
|
||||
echo("<h3>Billed Ports</h3>");
|
||||
|
Reference in New Issue
Block a user