From 2667649d3c5a2d92eab6fa31c639492980a3cd0a Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 6 Apr 2012 13:56:23 +0000 Subject: [PATCH] syntaxer run git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/addhost.inc.php | 1 + html/pages/adduser.inc.php | 2 +- html/pages/bill.inc.php | 5 -- html/pages/bill/actions.inc.php | 16 ++-- html/pages/bill/edit.inc.php | 9 +- html/pages/bill/pdf_history.inc.php | 28 +++--- html/pages/bill/reset.inc.php | 1 - html/pages/bills.inc.php | 6 +- html/pages/delhost.inc.php | 1 + html/pages/device.inc.php | 5 +- html/pages/device/apps/mailscanner.inc.php | 2 + html/pages/device/apps/mysql.inc.php | 1 + html/pages/device/apps/nginx.inc.php | 1 + html/pages/device/apps/ntp-client.inc.php | 2 + html/pages/device/apps/ntpd-server.inc.php | 2 + html/pages/device/apps/shoutcast.inc.php | 4 + html/pages/device/graphs.inc.php | 1 + html/pages/device/graphs/cpu.inc.php | 1 + .../device/graphs/fortigate-sessions.inc.php | 1 + html/pages/device/graphs/hrprocesses.inc.php | 1 + html/pages/device/graphs/hrusers.inc.php | 1 + html/pages/device/graphs/ipSytemStats.inc.php | 32 ++++--- html/pages/device/graphs/memory.inc.php | 1 + html/pages/device/graphs/netstats.inc.php | 11 +++ .../device/graphs/netstats_icmp_info.inc.php | 1 + .../device/graphs/netstats_icmp_stat.inc.php | 1 + html/pages/device/graphs/netstats_ip.inc.php | 2 + .../pages/device/graphs/netstats_snmp.inc.php | 2 + html/pages/device/graphs/netstats_tcp.inc.php | 1 + html/pages/device/graphs/netstats_udp.inc.php | 1 + .../device/graphs/screenos-sessions.inc.php | 1 + html/pages/device/graphs/screenos.inc.php | 1 + html/pages/device/graphs/wireless.inc.php | 1 + html/pages/device/health.inc.php | 1 + html/pages/device/latency.inc.php | 32 ++++--- html/pages/device/loadbalancer.inc.php | 3 + .../device/loadbalancer/ace_rservers.inc.php | 1 + .../device/loadbalancer/ace_vservers.inc.php | 1 - .../loadbalancer/netscaler_vsvr.inc.php | 8 +- html/pages/device/logs/eventlog.inc.php | 2 +- html/pages/device/nfsen.inc.php | 1 + html/pages/device/overview.inc.php | 5 +- html/pages/device/overview/c6kxbar.inc.php | 87 +++++++++---------- html/pages/device/packages.inc.php | 5 -- html/pages/device/port.inc.php | 3 +- html/pages/device/port/adsl.inc.php | 4 + html/pages/device/port/events.inc.php | 1 - html/pages/device/port/graphs.inc.php | 5 ++ html/pages/device/port/macaccounting.inc.php | 2 + html/pages/device/port/vlans.inc.php | 12 +-- html/pages/device/ports.inc.php | 1 + html/pages/device/ports/adsl.inc.php | 1 + html/pages/device/routing.inc.php | 3 + html/pages/device/routing/bgp.inc.php | 2 + html/pages/device/routing/vrf.inc.php | 1 + html/pages/device/toner.inc.php | 1 + html/pages/device/vlans.inc.php | 1 + html/pages/device/vm.inc.php | 1 + html/pages/eventlog.inc.php | 2 +- html/pages/front/default.php | 3 +- html/pages/front/demo.php | 1 + html/pages/graphs.inc.php | 29 ++++--- html/pages/iftype.inc.php | 3 + html/pages/packages.inc.php | 2 +- html/pages/ports.inc.php | 2 +- html/pages/ports/list.inc.php | 18 ++-- html/pages/routing/bgp.inc.php | 2 + html/pages/routing/overview.inc.php | 3 + html/pages/routing/vrf.inc.php | 4 + html/pages/services.inc.php | 1 + html/pages/syslog.inc.php | 1 + 71 files changed, 239 insertions(+), 162 deletions(-) diff --git a/html/pages/addhost.inc.php b/html/pages/addhost.inc.php index 7e561fd96..63b9a811a 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 72aff8da2..83e46f2af 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 67de5d2a5..95c187ea5 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 638a8024e..6a4e86eb6 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 75fc556d0..3a4ad31e4 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 -