22 Commits

Author SHA1 Message Date
Stefan Schantl
44ea49fa75 traffic.cgi: Do not use hard-coded red interface name
If QMI is used the dial in mode has to be set as ppp dialin but the
interface name is red. In such a case the old code tried to display
the stats for the ppp0 interface which is wrong.

This patch fixes this issue by calling the handy function to get
the correct interface name for red.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2023-03-11 16:29:43 +00:00
Michael Tremer
3404ea7df8 traffic.cgi: Use new perl system functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 15:05:05 +01:00
Matthias Fischer
26a9784751 vnstat 2.7: Adjusted 'traffic.cgi' to display 5-minute graphs
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-25 09:44:53 +00:00
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00:00
Matthias Fischer
29f35b79c7 traffic.cgi: Changed time interval for vnstat graphs from 5 to 1 minute
This keeps the graphs a bit more "updated".

From 'man vnstat':
'-c (--cache-time) => Update output file only if at least *time* minutes
have passed since the previous file update.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-04-30 14:55:51 +00:00
Michael Tremer
5edc06b701 Remove IPAC stuff
This is unused for a very very very long time and serves
no purpose any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-10-02 15:13:55 +01:00
Arne Fitzenreiter
2b9b518aa8 traffic.cgi: remove work around for a fixed vnstat(i) bug. 2014-06-07 13:55:34 +02:00
Arne Fitzenreiter
da20529163 Workaround a bug in vnstati if vnstat give nan% 2008-05-26 23:10:15 +02:00
Arne Fitzenreiter
7b42e67733 Some fixes on traffic.cgi if no data is present (not translated yet) 2008-05-25 23:14:02 +02:00
Arne Fitzenreiter
6c33dc5c18 use vnstat for traffic statistic now 2008-05-22 22:07:19 +02:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
maniacikarus
cb5e9c6c64 Debuginformationen aus den CGIs entfernt
Hoffentlich die letzten Config Types bereinigt
Samba und SSHd init Skripte angepasst
Pakfire CGI optisch angepasst


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@779 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-17 16:00:01 +00:00
maniacikarus
268292e730 Viele CGIs geaendert, einige Proxy Dateien hinzugefuegt, iptables aus dem menu geschmissen
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@612 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-06 17:09:21 +00:00
maniacikarus
afbda81596 PPOE Skript sollte den kill, CGI Fixes
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@607 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-04 19:37:49 +00:00
maniacikarus
a56b5be417 kleine Aenderungen in der Gui und ein paar Dateien geloescht
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@603 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-02 17:03:20 +00:00
maniacikarus
d81292e0ec Net-Traffic aktualisiert
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@595 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-30 19:21:47 +00:00
maniacikarus
15f635cc82 Sprachdateien gefixt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@589 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-28 10:58:02 +00:00
maniacikarus
40d0c2ebac WOL Config Types angepasst, Nettraffic und Firewall Graphs Translations, Graph Directory auf 777
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@588 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-27 20:14:42 +00:00
maniacikarus
b05768be3b Graphen Hintergrundfarbe bei Standarttheme auf weiss gesetzt
Config Types in der Nettraffic angepasst
Erstellung der Week Month und Year Graphen nur noch bei Request


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@573 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-22 19:04:48 +00:00
maniacikarus
f2fdd0c1e9 Quasi fast alle cgis von den fixen header farben befreit
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@560 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-17 16:54:15 +00:00
ms
1be597891b Nettraffic aktualisiert.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@399 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-01-26 12:46:40 +00:00
ms
10a04d70a4 Hinzugefügt:
* Nochmal ein neues Shutdown-Bild.
  * Schnelle Profilauswahl in der index.cgi
  * Nettraffic.
  * Capiinfo.
Geändert:
  * Menü komplett neu sortiert.
  * Javascript-Option aus gui.cgi entfernt.
  * Pakfire-Fehler beseitigt.
  * Sämtliche /var/ipcop durch /var/ipfire ersetzt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@129 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-21 20:54:29 +00:00