aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/vnstat2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/vnstat2.xml')
-rw-r--r--config/vnstat2/vnstat2.xml60
1 files changed, 58 insertions, 2 deletions
diff --git a/config/vnstat2/vnstat2.xml b/config/vnstat2/vnstat2.xml
index 2e86c989..27e25ca3 100644
--- a/config/vnstat2/vnstat2.xml
+++ b/config/vnstat2/vnstat2.xml
@@ -8,15 +8,30 @@
<faq>Currently there are no FAQ items provided.</faq>
<name>vnstat2</name>
<version>1.0</version>
- <title>vnstat2</title>
+ <title>Vnstat2</title>
<aftersaveredirect>/pkg_edit.php?xml=vnstat2.xml&amp;id=0</aftersaveredirect>
<include_file>/usr/local/pkg/vnstat2.inc</include_file>
<menu>
<name>vnstat2</name>
<tooltiptext></tooltiptext>
<section>Status</section>
- <url>/vnstat2</url>
+ <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>
+ <active/>
+ </tab>
+ <tab>
+ <text>Vnstati</text>
+ <url>/pkg_edit.php?xml=vnstati.xml&amp;id=0</url>
+ </tab>
+ <tab>
+ <text>Access vnstat php frontend</text>
+ <url>/vnstat2</url>
+ </tab>
+ </tabs>
<additional_files_needed>
<prefix>/usr/local/pkg/</prefix>
<chmod>0644</chmod>
@@ -32,6 +47,47 @@
<chmod>0644</chmod>
<item>http://www.pfsense.com/packages/config/vnstat2/bin/vnstat.conf</item>
</additional_files_needed>
+ <fields>
+ <field>
+ <description>Change rotate day of the month (by default set to 1)</description>
+ <fielddescr>MonthRotate</fielddescr>
+ <fieldname>monthrotate</fieldname>
+ <type>select</type>
+ <size>3</size>
+ <default_value>1</default_value>
+ <options>
+ <option><name>1</name><value>1</value></option>
+ <option><name>2</name><value>2</value></option>
+ <option><name>3</name><value>3</value></option>
+ <option><name>4</name><value>4</value></option>
+ <option><name>5</name><value>5</value></option>
+ <option><name>6</name><value>6</value></option>
+ <option><name>7</name><value>7</value></option>
+ <option><name>8</name><value>8</value></option>
+ <option><name>9</name><value>9</value></option>
+ <option><name>10</name><value>10</value></option>
+ <option><name>11</name><value>11</value></option>
+ <option><name>12</name><value>12</value></option>
+ <option><name>13</name><value>13</value></option>
+ <option><name>14</name><value>14</value></option>
+ <option><name>15</name><value>15</value></option>
+ <option><name>16</name><value>16</value></option>
+ <option><name>17</name><value>17</value></option>
+ <option><name>18</name><value>18</value></option>
+ <option><name>19</name><value>19</value></option>
+ <option><name>20</name><value>20</value></option>
+ <option><name>21</name><value>21</value></option>
+ <option><name>22</name><value>22</value></option>
+ <option><name>23</name><value>23</value></option>
+ <option><name>24</name><value>24</value></option>
+ <option><name>25</name><value>25</value></option>
+ <option><name>26</name><value>26</value></option>
+ <option><name>27</name><value>27</value></option>
+ <option><name>28</name><value>28</value></option>
+ </options>
+ </field>
+ </fields>
+ <custom_add_php_command>change_vnstat_conf();</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>