aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/bin
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/bin')
-rw-r--r--config/vnstat2/bin/diag_vnstat.abc2
-rw-r--r--[-rwxr-xr-x]config/vnstat2/bin/diag_vnstat2.abc2
-rw-r--r--config/vnstat2/bin/vnstat2_img.abc6
-rw-r--r--config/vnstat2/bin/vnstati.abc17
4 files changed, 25 insertions, 2 deletions
diff --git a/config/vnstat2/bin/diag_vnstat.abc b/config/vnstat2/bin/diag_vnstat.abc
index db683a15..afef3849 100644
--- a/config/vnstat2/bin/diag_vnstat.abc
+++ b/config/vnstat2/bin/diag_vnstat.abc
@@ -44,7 +44,6 @@ require("guiconfig.inc");
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
$pgtitle = gettext("Vnstat2 summary ");
-
if($_REQUEST['getactivity']) {
$text = `vnstat`;
$text .= "<p/>";
@@ -80,6 +79,7 @@ include("head.inc");
include("fbegin.inc");
if(strstr($pfSversion, "1.2"))
echo "<p class=\"pgtitle\">{$pgtitle}</p>";
+ echo "<a href=$myurl/pkg_edit.php?xml=vnstatoutput.xml&id=0>Go Back</a><br />";
if($savemsg) {
echo "<div id='savemsg'>";
print_info_box($savemsg);
diff --git a/config/vnstat2/bin/diag_vnstat2.abc b/config/vnstat2/bin/diag_vnstat2.abc
index e41f9dc1..e4ef0f21 100755..100644
--- a/config/vnstat2/bin/diag_vnstat2.abc
+++ b/config/vnstat2/bin/diag_vnstat2.abc
@@ -44,7 +44,6 @@ $aaaa = $config['installedpackages']['vnstat2']['config'][0]['vnstat_output_nic'
$bbbb = convert_real_interface_to_friendly_descr($aaaa);
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-
$pgtitle = gettext("Vnstat2 info for $bbbb ($aaaa)");
if($_REQUEST['getactivity']) {
@@ -90,6 +89,7 @@ else
include("fbegin.inc");
if(strstr($pfSversion, "1.2"))
echo "<p class=\"pgtitle\">{$pgtitle}</p>";
+ echo "<a href=$myurl/pkg_edit.php?xml=vnstatoutput.xml&id=0>Go Back</a><br />";
if($savemsg) {
echo "<div id='savemsg'>";
print_info_box($savemsg);
diff --git a/config/vnstat2/bin/vnstat2_img.abc b/config/vnstat2/bin/vnstat2_img.abc
new file mode 100644
index 00000000..85644309
--- /dev/null
+++ b/config/vnstat2/bin/vnstat2_img.abc
@@ -0,0 +1,6 @@
+<?php
+require_once("guiconfig.inc");
+$image = $_GET['image'];
+header("Content-type: image/png");
+readfile("/tmp/$image");
+?>
diff --git a/config/vnstat2/bin/vnstati.abc b/config/vnstat2/bin/vnstati.abc
new file mode 100644
index 00000000..aa76a4b3
--- /dev/null
+++ b/config/vnstat2/bin/vnstati.abc
@@ -0,0 +1,17 @@
+<?php
+require_once("guiconfig.inc");
+global $config;
+include("head.inc");
+include("fbegin.inc");
+$aaaa = $config['installedpackages']['vnstat2']['config'][0]['vnstat_interface'];
+$bbbb = convert_friendly_interface_to_real_interface_name($aaaa);
+$pgtitle = gettext("Vnstati info for $aaaa ($bbbb)");
+echo "<a href=$myurl/pkg_edit.php?xml=vnstati.xml&id=0>Go Back</a><br />";
+echo "<center><p class=\"pgtitle\">{$pgtitle}</p>";
+?>
+<center><img src="vnstat2_img.php?image=newpicture1.png" style="border:1px solid black; center;"><br />
+<center><img src="vnstat2_img.php?image=newpicture2.png" style="border:1px solid black; center;"><br />
+<center><img src="vnstat2_img.php?image=newpicture3.png" style="border:1px solid black; center;"><br />
+<center><img src="vnstat2_img.php?image=newpicture4.png" style="border:1px solid black; center;"><br />
+<?php include("fend.inc"); ?>
+