Commit graph

1034 commits

Author SHA1 Message Date
Jo-Philipp Wich
74a140e4b4 modules/admin-full: use luci.model.ipkg.find() to support searching packages by description 2012-11-15 20:59:09 +00:00
Jo-Philipp Wich
7933cad0fa modules/admin-full: fix broken XHTML on diagnostics page 2012-11-15 13:22:04 +00:00
Jo-Philipp Wich
71b595d4f3 modules/admin-full: fix wrong load number in realtime graph (#502) 2012-11-12 16:32:08 +00:00
Manuel Munz
69dbc27ce0 admin-full/diagnostics: Allow to use ping6 and traceroute6 when available, #487 2012-11-11 12:20:56 +00:00
Manuel Munz
7b7030629c Add some more datatype checks, patch by Eugene C., #499 2012-11-10 20:55:50 +00:00
Manuel Munz
4e04e353fe admin-full/network/hosts: Fix problem when arptable is empty, #482 2012-11-10 17:38:37 +00:00
Jo-Philipp Wich
36f88887c1 modules/admin-core, modules/admin-full: fix switch port status for devices with multiple switches 2012-11-01 20:03:36 +00:00
Daniel Golle
59af400346 wifi: add controls for noscan flag
OpenWrt contains a patch for hostapd which allows to override the channel-bandwidth decission
to always use 40MHz regardless of overlapping networks.
Though it does not conform with IEEE 802.11n-2009, this became the de-facto standard behaviour
of most off-the-shelf wifi routers.

Adding this option to LuCI makes it more accessible to users, which probably not everybody will
agree with to be a good idea. However, I didn't yet come across a single commercial product which
actually complies with 802.11n-2009 in that regard.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
2012-10-31 15:58:15 +00:00
Jo-Philipp Wich
00f8f2fbb0 modules/admin-full: disambiguate NTP client/server settings 2012-09-28 19:08:47 +00:00
Jo-Philipp Wich
14facbd91d modules/admin-full: cope with undefined scan list in wifi_join 2012-09-26 17:38:14 +00:00
Jo-Philipp Wich
02ac6686fe modules/admin-full: cope with undefined frequency lists 2012-09-26 17:34:58 +00:00
Daniel Golle
1dbb1da4d9 modules: add failsafe module
The failsafe module adds a minimal web-interface which is intended to
run on a very compact initramfs-based image intended only for flashing
firmware onto a device. This can be used as part of an installation method
or reside in a small partition on the device flash which can be booted
in case the checksum-test of the main kernel or rootfs fails.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
2012-09-20 02:16:51 +00:00
Manuel Munz
45d812dbb7 modules/freifunk: remove sorting function from widgets include in index view 2012-09-19 09:44:20 +00:00
Manuel Munz
613de9b48f modules/freifunk: include widgets in indexpage when available 2012-09-17 14:22:14 +00:00
Jo-Philipp Wich
4bd4002a3f modules/admin-full: small style fix in switch status 2012-09-11 15:52:01 +00:00
Jo-Philipp Wich
57e51eba60 modules/admin-full, modules/admin-core, themes/base: add port status indicators to switch config page 2012-09-11 14:18:28 +00:00
Manuel Munz
9e33e992c9 modules/freifunk: Add ipv6 options to community profile form 2012-08-20 11:14:13 +00:00
Jo-Philipp Wich
dce04bbcb2 modules/admin-core, modules/admin-full: implement display support for dnsmasq dhcpv6 leases 2012-08-17 15:06:46 +00:00
Jo-Philipp Wich
d88dc89f38 modules/admin-full: also require luci.tools.proto from parent cbi model 2012-08-17 08:24:24 +00:00
Daniel Golle
b70cdbdb7b support extant Antenna configuration 2012-08-15 16:31:41 +00:00
Jo-Philipp Wich
536d329503 modules/admin-full: fix typo in dhcp cbi model, patch by "BasicXP" <basicxp@ubuntu.com> 2012-08-14 15:09:11 +00:00
Jo-Philipp Wich
a1415d7430 modules: make most remaining hardcoded strings translatable, patch by "BasicXP" <basicxp@ubuntu.com> 2012-08-14 13:08:18 +00:00
Jo-Philipp Wich
6b128c0281 modules/admin-full: use format_wifi_encryption() in wifi_join.htm to make encryption translatable 2012-08-14 12:45:06 +00:00
Jo-Philipp Wich
396350aaf4 modules/admin-full: rework help text for network_netlist widget 2012-08-09 23:44:18 +00:00
Jo-Philipp Wich
92fc96f6fd modules/niu: remove usage of wifi.channels() 2012-08-08 20:25:00 +00:00
Jo-Philipp Wich
e183e134b8 modules/admin-full: remove usage of wifi.channels() 2012-08-08 20:22:15 +00:00
Jo-Philipp Wich
a521cddcf8 modules/freifunk: use getiwinfo() instead of getiwconfig() 2012-08-08 20:07:39 +00:00
Jo-Philipp Wich
30597efafb modules/admin-mini: use getiwinfo() instead of getiwconfig() 2012-08-08 20:07:36 +00:00
Jo-Philipp Wich
a7f05a3341 modules/admin-mini: use iwinfo to perform scans 2012-08-08 19:57:05 +00:00
Jo-Philipp Wich
adafc82819 modules/admin-full: remove an ancient cbi model that hasn't been used in years 2012-08-08 19:33:17 +00:00
Jo-Philipp Wich
f0a99dd6c7 modules/admin-full: use luci.sys.net.mac_hints() in wifi maclist config 2012-08-08 15:20:10 +00:00
Jo-Philipp Wich
bf7b19f33b modules/admin-full: remove session expiry workaround from setting 2012-08-08 10:11:00 +00:00
Jo-Philipp Wich
c8ffc897e3 modules/rpc: adapt rpc controller to sauth api changes 2012-08-08 09:48:53 +00:00
Jo-Philipp Wich
a58370ab74 Rework authentication system
The validity of authentication tokens was determined by the
mtime of respective authentication tokens on filesystem
stored in $sessionpath.
Talking about hardware without RTC or without a prior
connection to a time server, date/time usually around 1970 -
so is the mtime of the authentication token file in
$sessionpath.

When now configuring an internet connection via LuCI, the
system might fetch the current date/time (e.g. via ntp)
which invalidates the token, returns "403 Forbidden" and
kicks the user out of the interface.

This patch changes the authentication system to use time values
based on the uptime of the machine - rather than values based upon
gettimeofday() and {a|m}time values - and save them inside the token.
That way can always determine the difference between login
(last interaction respectively) and the current time, in-
dependant of the system clock jumping backwards/forwards.

Warning: This patch removes the clean() function and respective calls.
This means, invalid tokens will NOT be determined and removed from
filesystem automatically anymore.
Before, every HTTP-call caused a scan for invalid tokens,
which is quite expensive. Instead consider using a cron job
deleting all stalled files periodically.

Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
2012-08-07 19:11:56 +00:00
Jo-Philipp Wich
69aa218335 return "403 Forbidden" if authentication token was given, however is invalid
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
2012-08-07 19:11:52 +00:00
Jo-Philipp Wich
3c1c9d4400 modules/admin-full: copy bssid when joining a network as client (#455) 2012-07-24 11:37:38 +00:00
Jo-Philipp Wich
746a5be1a8 modules/admin-full: expose wmm option for mac80211 interfaces 2012-07-23 08:53:50 +00:00
Manuel Munz
d0a6fbf397 mod-freifunk: Fix problem with osm map, OpenLayers.Control.MouseDefaults() was removed in OpenLayers 2.12 2012-07-09 05:48:37 +00:00
Jo-Philipp Wich
13c3471eb3 modules/admin-full: fix frequency display on index status page 2012-07-06 01:21:27 +00:00
Daniel Golle
5be59e6ae7 Cosmetic changes to the terminology in the UI:
Replace references to the device running LuCI as being a "router", as that is
not necessarily the case.
2012-07-01 20:05:05 +00:00
Jo-Philipp Wich
d30109e350 modules/admin-full: sort networks by zone and name in overview 2012-06-27 10:12:20 +00:00
Jo-Philipp Wich
a99f570bf4 modules/admin-full: use get_wannet() and get_wan6net() to find wan networks on status page 2012-06-26 22:19:30 +00:00
Jo-Philipp Wich
c0451d8a72 modules/admin-full: remove support for configuring alias interfaces, they're useless now that ifaces can be part of multiple networks 2012-06-26 21:56:52 +00:00
Jo-Philipp Wich
254ad2dfd1 modules/admin-full: when deleting wifi-ifaces, remove all empty leftover networks, not only the first one 2012-06-26 21:49:27 +00:00
Jo-Philipp Wich
d52859b37e modules/admin-full: remove notice about iface exclusiveness when adding new networks 2012-06-26 21:49:21 +00:00
Jo-Philipp Wich
2e924f7aa5 modules/admin-full: extend wifi model to allow assigning multiple networks 2012-06-26 21:49:18 +00:00
Manuel Munz
92f0643e2c modules/freifunk: Add minlength datatype to location, #444 2012-06-25 10:02:53 +00:00
Daniel Golle
fb5d41c2a5 Only show the TX-power selector if the hardware supports more than one option.
Some mac80211 drivers (rt2x00) probably won't support limiting TX-power to a
user-defined value in the near future under certain conditions, so it makes
sense to not expose that option in order not to confuse the user.

See http://patchwork.openwrt.org/patch/2187/
to understand the situation.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
2012-06-18 19:42:39 +00:00
Jo-Philipp Wich
5ae5d3be63 modules/admin-full: allow to specify the DHCP pool start as IPv4 address (#420) 2012-06-05 14:05:03 +00:00
Jo-Philipp Wich
b3e5467ec6 modules/admin-full: check /etc/ethers and /var/dhcp.leases for existence before trying to read them 2012-05-23 22:22:22 +00:00