diff --git a/html/includes/billing.php b/html/includes/billing.php index 1c345f5f0..47ee7e531 100644 --- a/html/includes/billing.php +++ b/html/includes/billing.php @@ -174,7 +174,7 @@ echo(" -if($_GET['bill'] && billpermitted($_GET['id'])){ +if($_GET['bill'] && billpermitted($_GET['bill'])){ $bill_id = $_GET['bill']; printReport($bill_id); diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 865382849..bfb842214 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -116,10 +116,12 @@ if($errored) { echo("
  • Errored ($errored)
  • "); } +if($config['enable_billing']) { echo("
  • Traffic Bills
  • "); $ifbreak = 1;} + + if($_SESSION['userlevel'] >= '5') { echo("

  • "); if($config['int_customers']) { echo("
  • Customers
  • "); $ifbreak = 1;} - if($config['enable_billing']) { echo("
  • Traffic Bills
  • "); $ifbreak = 1;} if($config['int_l2tp']) { echo("
  • L2TP
  • "); $ifbreak = 1; } if($config['int_transit']) { echo("
  • Transit
  • "); $ifbreak = 1; } if($config['int_peering']) { echo("
  • Peering
  • "); $ifbreak = 1; }