Commit Graph

217 Commits

Author SHA1 Message Date
Stefan Schantl
b013822b99 Rename Locale::Country to Locale::Codes::Country in various scripts.
The new Locale-Country version needs to be loaded and used by specifing
Locale::Codes::Country since an upstream API change. Adjusting various perl
scripts to use the module in the proper way again.
2015-04-22 18:18:38 +02:00
Stefan Schantl
e6c4f090b6 Merge branch 'next-geoip' into core-90-geoip 2015-04-15 17:10:49 +02:00
Alexander Marx
5c3b3bd8e1 vpn-statistic: fix alignment of graph legend for n2n graphs 2015-04-10 17:20:43 +02:00
Stefan Schantl
93bfe63d55 Merge branch 'seventeen-geoip' into next-geoip 2015-03-15 11:38:45 +01:00
Michael Tremer
a71beeb234 lang.pl: Always fall back to English
Fixes #10769
2015-03-10 00:06:12 +01:00
Stefan Schantl
1dcd87157d geoip-functions.pl: A collection of functions dealing with GeoIP. 2015-02-08 18:23:01 +01:00
Michael Tremer
3906cf7e85 Merge remote-tracking branch 'amarx/vpn-statistic1' into next 2015-01-13 17:37:18 +01:00
Stefan Schantl
cc26ba71a1 header.pl: Increase maximum allowed size of hashes.
The "getcgihash" function only allowed hashes with a maximum size of 512kb, which
was to small for the new geoip-block.cgi. As a result of this some form data
were cut-off and couldn't be processed correctly.
2015-01-03 20:22:05 +01:00
Stefan Schantl
cebb1b7cb1 general-functions.pl: Add function to get full country name.
This function will return the full name a country specified by
it's country shortcut. It also will provide some additional names
which are not handled by the perl locale module but are parts of
ISO 3166.
2015-01-03 20:15:28 +01:00
Alexander Marx
c9ac8b8052 vpn-statistics: change graphs and datatypes of rrd 2014-10-21 07:29:06 +02:00
Alexander Marx
0d0ee70f3b Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into vpn-statistic1 2014-09-26 12:53:05 +02:00
Alexander Marx
5795fc1b55 vpn-statistic: added new statistic page for OpenVPN Roadwarrior 2014-09-18 16:29:10 +02:00
Michael Tremer
f5fe98fead Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x into install-raid 2014-09-16 20:45:35 +02:00
Michael Tremer
499e7fc33f general-functions.pl: Fix perl coding error 2014-09-06 18:45:43 +02:00
Michael Tremer
7bfaaa0d35 general-functions.pl: Fix syntax error 2014-09-06 18:45:39 +02:00
Michael Tremer
9f64c06d94 general-functions.pl: Subroutine getnetworkip() accepted multiple arguments 2014-09-06 18:45:35 +02:00
Michael Tremer
c14203248c general-functions.pl: Fix perl coding error 2014-09-06 18:44:50 +02:00
Michael Tremer
da05e07629 general-functions.pl: Fix syntax error 2014-09-04 11:13:41 +02:00
Michael Tremer
6a2a62cf25 general-functions.pl: Subroutine getnetworkip() accepted multiple arguments 2014-09-03 22:23:04 +02:00
Michael Tremer
b02ba841b3 webif: Find correct language file when locale is in format xx_XX.utf8 2014-08-30 21:10:32 +02:00
Axel Gembe
8ed77b039f general-functions.pl: validdomainname misinterprets RFC1035
The function validdomainname checks that each part of a domain name is at least
2 characters in length, but RFC1035 only makes a restriction on a "label" being
at most 63 characters in length. This change allows reverse DNS zones like
2.168.192.in-addr.arpa to be added to the DNS forward configuration, which was
incorrectly prevented before.

Signed-off-by: Axel Gembe <ago@multipixs.com>
2014-08-11 10:51:18 +02:00
Michael Tremer
4e9a2b5732 general-functions.pl: Replace lots of broken network code.
The state of some code especially in general-functions.pl
is in such a bad shape and faulty.
This is a first step that replaces some of the network
functions with those who have been tested and work for
undefined inputs.

The old functions have been left in place as stubs
and must be removed at some time.
2014-07-27 22:46:20 +02:00
Arne Fitzenreiter
b21618696d webif: hide main-menu if gpl was not accepted. 2014-07-16 17:26:14 +02:00
Stefan Schantl
4cb523d462 general-functions.pl: Add function to get the used interface on red. 2014-07-10 12:35:05 +02:00
Michael Tremer
d6c50a8591 Merge remote-tracking branch 'amarx/10538' into next 2014-07-05 22:42:32 +02:00
Alexander Marx
1be398ae38 General-functions.pl: rewrite getnetworkip without inet_aton 2014-06-19 12:11:47 +02:00
Alexander Marx
ab92dc0c84 General-functions.pl: rewrite IpInSubnet replace inet_ntoa 2014-06-19 12:11:24 +02:00
Alexander Marx
29f238b239 BUG 10538: Routes may only added once and should not be part of an internal network 2014-06-16 09:45:59 +02:00
Michael Tremer
b3b33f8586 modem-lib.pl: Check if character device exists before trying to connect to it. 2014-06-12 16:44:07 +02:00
Arne Fitzenreiter
d4af74b78a modem-status: add more ttyUSB and ttyACM ports. 2014-06-06 10:45:59 +02:00
Michael Tremer
03d0b8c7e8 Merge branch 'master' into next
Conflicts:
	doc/language_issues.nl
	doc/language_issues.tr
2014-05-09 01:31:43 +02:00
Alexander Marx
7490b22e9d Firewall: BUG 10528 - allow subnets greater than /8 2014-04-23 15:08:47 +02:00
Michael Tremer
c5e3d520e9 Add modem status page.
On this page, much useful information is displayed about
the hardware and the status of an LTE/3G or other kinds
of modems that respond to AT commands.
2014-04-16 16:05:12 +02:00
Arne Fitzenreiter
af433268e0 graphs.pl: fix links position in chrome for android. 2014-03-23 17:39:47 +01:00
Michael Tremer
7e7788ea0b Merge remote-tracking branch 'amarx/BETA3' into next 2014-03-13 15:32:00 +01:00
Michael Tremer
9d870c49eb entropy graph: Remove trend line. 2014-03-13 15:29:53 +01:00
Alexander Marx
4d81e0f381 VPN Checksubnets: Now the remote subnets (OpenVPN/IPSec) are checked. If they are defined elsewhere, there's a warningmessage displayed 2014-03-13 15:09:01 +01:00
Alexander Marx
e55334753d graphs.pl : fixed layout on Nexus 7 devices "hour-Day-week-month-year" now on top of graph 2014-03-10 12:54:06 +01:00
Michael Tremer
a2b3eba9f5 general-functions.pl: Fix wrong perl syntax. 2014-03-01 18:23:52 +01:00
Alf Høgemark
e06986e853 qos and process graphs: avoid random colors
For the graphs for qos classes, and for process
count and memory usage, the colors change on
each page reload, since the colors are currently
totally random.

This change uses defined color indexes, 15 different
ones, that should be enough for qos at least, and is
enough for processes on my setup. This makes
the colors consistent between page loads, so it makes
it easier to monitor changes.

Perhaps one should define 30 different colors meant
to be used for graphing, then one could avoid random
colors also for the sensor graphs, and make it less
likely to get color collision for the process graphs
as well. Defining 30 such colors is not part of this
change.
2014-02-26 18:48:05 +01:00
Alf Høgemark
491957ac2d qos.cgi: Use Language string for legend in graph 2014-02-15 15:43:56 +01:00
Michael Tremer
c0e8224d1c network-vlans: Provide a better configuation file.
As suggested by Bernhard Bitsch, #10470.
2014-02-05 13:15:31 +01:00
Michael Tremer
15b023b979 Add an entropy graph. 2014-02-02 14:32:15 +01:00
Michael Tremer
ad9799d20c header.pl: Remove "Connection: close".
Don't require us to re-establish a new connection every time
we send a request.
2014-01-19 14:27:09 +01:00
Alexander Marx
52ca3c8093 fifteen-theme: made tables in dhcp-server themeable 2014-01-07 10:22:22 +01:00
Michael Tremer
935f311ed9 Add an alternative default theme with rounded corners. 2014-01-05 21:07:41 +01:00
Michael Tremer
802d795488 header.pl: Include required perl module. 2014-01-05 19:06:08 +01:00
Michael Tremer
1dc4447136 general-functions.pl: Format output of age().
The output of the age() function was a bit messy with
some translations. It was now much simplified and it
now shows the time in a standardized format.
2014-01-05 02:42:21 +01:00
Alexander Marx
6ee9053548 Firewall: Fixed portfw-converter (rules where not converted correctly) And Standard network "IPsec RW" now has brackets around the Ip (when set) 2013-11-14 11:44:11 +01:00
Alexander Marx
68f6312ac5 Firewall: Show IP-Adresses in NAT-Source dropdown 2013-10-30 13:41:33 +01:00