mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes to billing
git-svn-id: http://www.observium.org/svn/observer/trunk@1605 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -50,7 +50,7 @@ if(bill_permitted($bill_id)) {
|
||||
$unixto = mysql_result(mysql_query("SELECT UNIX_TIMESTAMP('$dateto')"), 0);
|
||||
|
||||
echo("<font face=\"Verdana, Arial, Sans-Serif\"><h2>
|
||||
" . $bill_name . "</h2>");
|
||||
Bill : " . $bill_name . "</h2>");
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
@@ -60,17 +60,20 @@ if(bill_permitted($bill_id)) {
|
||||
echo("<a href='".$config['base_url']."/bill/".$bill_id."/details/'>Details</a>");
|
||||
if($_GET['optb'] == "details") { echo("</strong>"); }
|
||||
|
||||
echo(" | ");
|
||||
if($_GET['optb'] == "edit") { echo("<strong>"); }
|
||||
echo("<a href='".$config['base_url']."/bill/".$bill_id."/edit/'>Edit</a>");
|
||||
if($_GET['optb'] == "edit") { echo("</strong>"); }
|
||||
|
||||
if($_SESSION['userlevel'] == "10")
|
||||
{
|
||||
echo(" | ");
|
||||
if($_GET['optb'] == "edit") { echo("<strong>"); }
|
||||
echo("<a href='".$config['base_url']."/bill/".$bill_id."/edit/'>Edit</a>");
|
||||
if($_GET['optb'] == "edit") { echo("</strong>"); }
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
echo("<table width=715 border=0 cellspace=0 cellpadding=0><tr><td>");
|
||||
|
||||
|
||||
if($_GET['optb'] == "edit") {
|
||||
if($_GET['optb'] == "edit" && $_SESSION['userlevel'] == "10") {
|
||||
|
||||
include("pages/bill/edit.php");
|
||||
|
||||
|
Reference in New Issue
Block a user