aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/vnstati.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/vnstati.xml')
-rw-r--r--config/vnstat2/vnstati.xml64
1 files changed, 64 insertions, 0 deletions
diff --git a/config/vnstat2/vnstati.xml b/config/vnstat2/vnstati.xml
new file mode 100644
index 00000000..6e779fe6
--- /dev/null
+++ b/config/vnstat2/vnstati.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
+<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
+<packagegui>
+ <copyright></copyright>
+ <description>Describe your package here</description>
+ <requirements>Describe your package requirements here</requirements>
+ <faq>Currently there are no FAQ items provided.</faq>
+ <name>vnstat2</name>
+ <version>1.0</version>
+ <title>Vnstat2</title>
+ <aftersaveredirect>/vnstati/newpicture.png</aftersaveredirect>
+ <include_file>/usr/local/pkg/vnstat2.inc</include_file>
+ <menu>
+ <name>vnstat2</name>
+ <tooltiptext></tooltiptext>
+ <section>Status</section>
+ <url>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</url>
+ </menu>
+ <tabs>
+ <tab>
+ <text>Config</text>
+ <url>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</url>
+ </tab>
+ <tab>
+ <text>Vnstati</text>
+ <url>/pkg_edit.php?xml=vnstati.xml&amp;id=0</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>Access vnstat php frontend</text>
+ <url>/vnstat2</url>
+ </tab>
+ </tabs>
+ <fields>
+ <field>
+ <fielddescr>Interface</fielddescr>
+ <fieldname>vnstat_interface</fieldname>
+ <description>Select interface</description>
+ <type>interfaces_selection</type>
+ </field>
+ <field>
+ <description>Select output type</description>
+ <fielddescr>Output Type</fielddescr>
+ <fieldname>output_type</fieldname>
+ <type>select</type>
+ <size>7</size>
+ <options>
+ <option><name>Output traffic for the last 24 hours</name><value>h</value></option>
+ <option><name>Output traffic for days</name><value>d</value></option>
+ <option><name>Output traffic for months</name><value>m</value></option>
+ <option><name>Output traffic summary</name><value>s</value></option>
+ <option><name>Output traffic summary including hourly data using a vertical layout</name><value>vs</value></option>
+ <option><name>Output traffic summary including hourly data using a horizontal layout</name><value>hs</value></option>
+ <option><name>Output all time top10 traffic days</name><value>t</value></option>
+ </options>
+ </field>
+ </fields>
+ <custom_php_global_functions></custom_php_global_functions>
+ <custom_add_php_command>create_vnstati_image();</custom_add_php_command>
+ <custom_php_resync_config_command></custom_php_resync_config_command>
+ <custom_php_install_command>vnstat_install_config();</custom_php_install_command>
+ <custom_php_deinstall_command>vnstat_install_deinstall();</custom_php_deinstall_command>
+</packagegui>