diff --git a/cron.sh b/cron.sh index 13048c287a..8865ed867f 100755 --- a/cron.sh +++ b/cron.sh @@ -11,3 +11,4 @@ wget -O /var/sites/network.vostron.net/rrd/dill.vostron.net-mail_virus.rrd http: wget -O /var/sites/network.vostron.net/rrd/dill.vostron.net-mail.rrd http://dill.vostron.net/rrd/mailgraph.rrd wget -O /var/sites/network.vostron.net/rrd/dill.vostron.net-courier.rrd http://dill.vostron.net/rrd/couriergraph.rrd +./poll-billing.php diff --git a/html/.htaccess b/html/.htaccess index 4f36fb6c93..d50cfe3ef0 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -10,3 +10,6 @@ RewriteCond %{REQUEST_URI} !^(.*)\.png$ RewriteRule ^([a-z]+)$ ?page=$1 +RewriteRule ^bills/([0-9]+) ?page=bills&bill=$1 +RewriteRule ^device/([0-9]+) ?page=device&id=$1 + diff --git a/html/css/styles.css b/html/css/styles.css index 223750395d..9a685da2f7 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -13,13 +13,16 @@ A.green:visited, A.green, .green {color: #008C00;} A.blue:visited, A.blue, .blue {color: #0000ff;} A.orange:visited, a.orange, .orange {color: #FF7400;} - .pinkbg { background-color: #ffbbbb; } .redbg { background-color: #ff8585; } .bluebg { background-color: #aaaaff; } .greenbg { background-color: #aaffaa; } .greybg { background-color: #dddddd; } +.selector { + width:275px; +} + .page-h2 { font-size: 14px; font-weight: bold; diff --git a/html/graph.php b/html/graph.php index 472e28418e..161ba12179 100644 --- a/html/graph.php +++ b/html/graph.php @@ -10,6 +10,11 @@ include("../includes/functions.php"); include("includes/authenticate.inc"); + if($_GET['params']) { + list($_GET['host'], $_GET['if'], $_GET['from'], $_GET['to'], $_GET['width'], $_GET['height'], $_GET['title'], $_GET['vertical'], $_GET['type'], $_GET['interfaces']) = explode("||", mcrypt_ecb(MCRYPT_DES, $key_value, $_GET['params'], MCRYPT_DECRYPT)); + } + + if($_GET['host']) { $device_id = $_GET['host']; } elseif($_GET['device']) { @@ -28,7 +33,6 @@ $height = $_GET['height']; $title = $_GET['title']; $vertical = $_GET['vertical']; - $type = $_GET['type']; $graphfile = strgen() . ".png"; diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 0ec8b4c4df..6554044327 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -108,6 +108,9 @@ if($_SESSION['userlevel'] >= '10') { if($_SESSION['userlevel'] >= '5') { echo("
|