diff --git a/html/pages/addhost.inc.php b/html/pages/addhost.inc.php index 7e561fd96f..63b9a811a5 100644 --- a/html/pages/addhost.inc.php +++ b/html/pages/addhost.inc.php @@ -3,6 +3,7 @@ if ($_SESSION['userlevel'] < 10) { include("includes/error-no-perm.inc.php"); + exit; } diff --git a/html/pages/adduser.inc.php b/html/pages/adduser.inc.php index 72aff8da23..83e46f2afe 100644 --- a/html/pages/adduser.inc.php +++ b/html/pages/adduser.inc.php @@ -9,7 +9,7 @@ if ($_SESSION['userlevel'] < '10') else { echo("

Add User

"); - + $pagetitle[] = "Add user"; if (auth_usermanagement()) diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php index 67de5d2a52..95c187ea55 100644 --- a/html/pages/bill.inc.php +++ b/html/pages/bill.inc.php @@ -63,17 +63,13 @@ if (bill_permitted($bill_id)) WHERE B.bill_id = ? AND P.interface_id = B.port_id AND D.device_id = P.device_id", array($bill_id)); - - echo("

Bill : " . $bill_data['bill_name'] . "

"); - print_optionbar_start(); echo("Bill » "); - if (!$vars['view']) { $vars['view'] = "quick"; } if ($vars['view'] == "quick") { echo(""); } @@ -118,7 +114,6 @@ if (bill_permitted($bill_id)) echo('
Back to Bills
'); - print_optionbar_end(); if ($vars['view'] == "edit" && $_SESSION['userlevel'] == "10") diff --git a/html/pages/bill/actions.inc.php b/html/pages/bill/actions.inc.php index 638a8024e5..6a4e86eb6f 100644 --- a/html/pages/bill/actions.inc.php +++ b/html/pages/bill/actions.inc.php @@ -49,10 +49,12 @@ if ($_POST['action'] == "delete_bill_port") } if ($_POST['action'] == "update_bill") { - - if(isset($_POST['bill_quota']) or isset($_POST['bill_cdr'])) { - if ($_POST['bill_type'] == "quota") { - if (isset($_POST['bill_quota_type'])) { + if (isset($_POST['bill_quota']) or isset($_POST['bill_cdr'])) + { + if ($_POST['bill_type'] == "quota") + { + if (isset($_POST['bill_quota_type'])) + { if ($_POST['bill_quota_type'] == "MB") { $multiplier = 1 * $config['billing']['base']; } if ($_POST['bill_quota_type'] == "GB") { $multiplier = 1 * $config['billing']['base'] * $config['billing']['base']; } if ($_POST['bill_quota_type'] == "TB") { $multiplier = 1 * $config['billing']['base'] * $config['billing']['base'] * $config['billing']['base']; } @@ -60,8 +62,10 @@ if ($_POST['action'] == "update_bill") $bill_cdr = 0; } } - if ($_POST['bill_type'] == "cdr") { - if (isset($_POST['bill_cdr_type'])) { + if ($_POST['bill_type'] == "cdr") + { + if (isset($_POST['bill_cdr_type'])) + { if ($_POST['bill_cdr_type'] == "Kbps") { $multiplier = 1 * $config['billing']['base']; } if ($_POST['bill_cdr_type'] == "Mbps") { $multiplier = 1 * $config['billing']['base'] * $config['billing']['base']; } if ($_POST['bill_cdr_type'] == "Gbps") { $multiplier = 1 * $config['billing']['base'] * $config['billing']['base'] * $config['billing']['base']; } diff --git a/html/pages/bill/edit.inc.php b/html/pages/bill/edit.inc.php index 75fc556d02..3a4ad31e44 100644 --- a/html/pages/bill/edit.inc.php +++ b/html/pages/bill/edit.inc.php @@ -49,9 +49,9 @@ if ($bill_data['bill_type'] == "cdr") {
- /> CDR 95th - /> Quota -