aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/www/vnstat2_img.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/www/vnstat2_img.php')
-rw-r--r--config/vnstat2/www/vnstat2_img.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/vnstat2/www/vnstat2_img.php b/config/vnstat2/www/vnstat2_img.php
new file mode 100644
index 00000000..85644309
--- /dev/null
+++ b/config/vnstat2/www/vnstat2_img.php
@@ -0,0 +1,6 @@
+<?php
+require_once("guiconfig.inc");
+$image = $_GET['image'];
+header("Content-type: image/png");
+readfile("/tmp/$image");
+?>