Commit graph

1286 commits

Author SHA1 Message Date
Jo-Philipp Wich
199c8cbc4c luci-base: switch to ubus sessions
Remove luci.sauth session storage implementation and offload the session
management to the rpcd ubus backend. Also depend on rpcd due to this.
2015-01-15 11:09:05 +01:00
Jo-Philipp Wich
eb8560061a luci-base: add luci.util.ubus()
Add luci.util.ubus() convenience wrapper which establishes a connection on
the first call.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15 11:03:31 +01:00
Jo-Philipp Wich
e55b23c6ac luci-mod-admin-full: fix luci-bwc compilation
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-11 16:22:20 +01:00
Christian Schoenebeck
42757cb549 Modified dependencies
Module luci-base
- libubus-lua not needed

Module luci-mod-admin
- libubus-lua needed

Collection luci
- luci-lib-nixio not needed, already in luci-base

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-10 22:33:43 +01:00
Jo-Philipp Wich
9a81d8ff32 luci-base: handle missing translations in template engine
Previously the template engine did not interpolate translation macros if no
translation catalogue could be loaded due to a missing i18n directory.

Change the offending code to return the original string in any error case.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-10 21:19:54 +01:00
Jo-Philipp Wich
1380c7b07d luci-base: add depends on libubus-lua and luci-lib-nixio as well
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-10 19:58:06 +01:00
Jo-Philipp Wich
26aefe4f69 luci-base: depend on libuci-lua
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-10 19:54:05 +01:00
Jo-Philipp Wich
c97011fd97 luci-base: fix dependency on lua ()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-10 13:42:42 +01:00
Jo-Philipp Wich
3afecbd8ab luci-base: depend on Lua ()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-09 16:35:23 +01:00
Jo-Philipp Wich
db653649ff luci-mod-admin-full: fix build dep spec in previous commit ()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 22:24:25 +01:00
Jo-Philipp Wich
80c06a773d luci-mod-admin-full: add build dependency on libiwinfo
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 22:17:36 +01:00
Jo-Philipp Wich
4cb3aed0ca Remove obsolete .mk files
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:49:42 +01:00
Jo-Philipp Wich
fa84ca05d5 luci-base: luci.util: rewrite threadlocal code to not confuse minifier
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00
Karl Palsson
65d42ae75a luci.http.protocol: Allow posts to contain more than a single chunk
The ltn12.pump.step() loop in parse_message_body was incorrectly testing
for EOF, and returning after the first chunk, even if further chunks
were available.  The loop in parse_message_header made the correct
check, and test code making raw ajax json posts now succeeds for posts
>= 2048 bytes.

Signed-off-by: Karl Palsson <karlp@remake.is>
2014-11-21 18:18:51 +00:00
Matthias Schiffer
7bd68db7d7 modules/base: ltn12: source.file() should terminate when an empty chunk is read
The read method of nixio's file and socket objects both return an empty string
when they reach EOF, not nil, causing the consumer to loop endlessly as
source.file() never terminates.

As there is no other situation in which an empty chunk is read, just change it
to nil to terminate the consumer's loop.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-11-17 14:35:24 +01:00
Hannu Nyman
36357529a0 Update timezone info to 2014i (from 2011n)
Timezone information embedded in Luci is updated to 2014i.
Afaik, the old data was from version 2011n.

I used build/zoneinfo2lua.pl to pull data from my Ubuntu 14.10 buildhost
that contains 2014i version of the timezone data.

2014j has been released this week, but is not yet embedded in Ubuntu and
Turks&Caicos is the only affected country/zone.
2014i: http://mm.icann.org/pipermail/tz-announce/2014-October/000026.html
2014j: http://mm.icann.org/pipermail/tz-announce/2014-November/000027.html

This update should fix Openwrt bugs  and .

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-11-14 17:06:30 +02:00
Jo-Philipp Wich
ef444d511d modules/admin-full: make wifi enabling/disabling more reliable
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-11-11 22:33:43 +01:00
Steven Barth
a7b44a1b4b Add odhcpd to ucitrack of dhcp 2014-11-09 19:41:14 +01:00
Jo-Philipp Wich
5916f762f6 modules/admin-full: add CDATA comments to wireless_modefreq.htm script tag
This should fix non-wellformed page errors with XHTML themes.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-31 12:48:24 +01:00
Jo-Philipp Wich
2826426c6a base: trigger page reload with cbi reset button
Many complex widgets do not reset properly with traditional form reset,
therfore simply reload the page.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-26 18:20:22 +01:00
Jo-Philipp Wich
89f270466c modules/admin-full: rework hwmode/htmode/channel selection
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-26 17:46:05 +01:00
Jo-Philipp Wich
ecb0c2f11b modules/base: work around wireless status changes
The latest netifd updates changed the ubus wireless status reporting in a
way that breaks the current LuCI integration. Work around the changed
format by translating the extended UCI section syntax back to the plain one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-21 23:39:08 +02:00
Jo-Philipp Wich
ff65318ba5 modules/base: attempt to work around Firefox autocomplete bugs
Ref: https://dev.openwrt.org/ticket/18176

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-20 19:45:28 +02:00
Jo-Philipp Wich
52326c28ef Merge pull request from Wedmer/openvpnfix_dtfix_watchcatfix
applications/luci-openvpn: fixes for current openWRT openvpn packages.
2014-10-11 12:07:35 +02:00
Álvaro Fernández Rojas
0c3398c4b6 modules/admin-full: fix support for broadcom-wl modes
This adds N modes support for proprietary Broadcom WiFi driver and adds a/b/g modes detection.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2014-10-10 18:46:15 +02:00
Vladimir Ulrich
c33af582f0 Added device tree model support
Signed-off-by: Vladimir Ulrich <admin@evl.su>
2014-10-10 19:59:35 +04:00
Jo-Philipp Wich
bb388f0873 modules/admin-full: add support for configuring mirror port
This adds the LuCI support for setting a mirror port on AR8327 switches.
Patch provided by Colin Leitner <colin.leitner@gmail.com>

Ref: https://dev.openwrt.org/attachment/ticket/10202

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-10 15:56:42 +02:00
Hannu Nyman
2a0e842d00 wifi.lua: Add support for toggling WPS button.
The patch checks the existence of the needed files for the WPS support and if they are present, shows the option to toggle WPS pushbutton settings.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-10-10 15:48:54 +03:00
Stephan Günther
da022f9157 modules/admin-full: fix wifi channel selection on multiple STA networks
Besides several AP networks, I have configured two STA networks on my
openwrt box - both on the same radio and thus on the same channel.
This was done via LuCI.

However after both STA networks were set up, I am unable to edit the
channel on neither network. When editing the one STA network, LuCI
tells me that the channel is locked by the other STA network. Same for
the other STA network.

Looks like a bug to me, so I made a patch.

Signed-off-by: Stephan Günther <steph.guenther@googlemail.com>
2014-10-10 01:04:28 +02:00
Jo-Philipp Wich
d2c1882786 luci: initial 802.11ac support
While working with 802.11ac (ath10k) I've noticed the web interface
configuration missing basic support for 11ac devices - unable to set VHT
(htmode) and 11ac (hwmode).

This patch adds initial support for luci admin-full page and 802.11ac
MAC80211 devices.

v2:
* replace obsolete 11nac mode with 11a + vhtmode (jow in ticket: )

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
[jow: fix typo in get_i18n()]
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-04 09:38:10 +00:00
Jo-Philipp Wich
371355c0f6 modules/admin-full: decouple enable/disable button state from assoc state
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 17:28:23 +00:00
Jo-Philipp Wich
4fcb6d56bc modules/base: provide disable state in luci.tools.status.wifi_network()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 17:28:21 +00:00
Jo-Philipp Wich
cee38c1177 modules/admin-full: fix assoc state check for sta mode in wifi overview
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-03 13:34:56 +00:00
Manuel Munz
3d3fdcbd59 modules/freifunk: fix map.html when using https, thanks cholin 2014-09-24 17:40:02 +00:00
Jo-Philipp Wich
a16c0c3200 http: ensure .content() works by default
filehandler was always set, so the default handler was never being
called.  This led to calls to http.content() always returning nil.

Signed-off-by: Karl Palsson <karlp@remake.is>
2014-09-18 09:29:30 +00:00
Jo-Philipp Wich
f16df257b8 modules/admin-full: dynamically order lines in connection live status
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-09-04 11:35:23 +00:00
Jo-Philipp Wich
8fab048554 libs/web: add support for string templates to luci.template module
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:15 +00:00
Jo-Philipp Wich
35eaa9f85f libs/web: add support for string templates to the template parser
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:09 +00:00
Jo-Philipp Wich
84de0fbe02 libs/web: remove strange 'static' on variable declaration
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:35:04 +00:00
Jo-Philipp Wich
f8f558291a libs/web: rename template_parser field "mmap" to the more generic "data"
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2014-09-04 11:34:27 +00:00
Jo-Philipp Wich
5aa46cbf58 add missing cbi-button class to nsection.htm
Hello,
I opened an issue in trac but it doesn't let me attach the patch (it
complains about cookies not enabled, which isn't true), and I cannot see
it to try again since it's awaiting moderation (moderated submission
) so here's the patch (against 0.11, but I see that trunk has the
same problem).

Bye
--
Luca
2014-08-12 10:42:14 +00:00
Jo-Philipp Wich
649227308f added readonly property to TextValue (tvalue.htm) template
A textarea has a readonly property which is currently not supported by the TextValue template ( tvalue.htm )
Here the patch to add it to tvalue.htm

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-08-12 10:39:45 +00:00
Manuel Munz
5c311e3e78 modules/freifunk: fix wifi overview on public status page 2014-08-10 15:27:23 +00:00
Manuel Munz
6f8daab6eb luci/po: spelling and grammar fixes by Alex Henrie 2014-08-05 10:21:03 +00:00
Patrick Grimm
a31e805696 freifunk fix profile expert fs write function. 2014-08-03 19:39:24 +00:00
Jo-Philipp Wich
6324fc0caa modules/base: restore /lib/uci/upload directory
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-13 12:36:00 +00:00
Jo-Philipp Wich
89678917bd modules/admin-full: rework luci-bwc/libiwinfo integration
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-30 10:54:24 +00:00
Jo-Philipp Wich
8451dfdf2a modules/base: remove accidentally duplicated root directory
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-13 08:25:03 +00:00
Jo-Philipp Wich
055daf2d50 modules/base: readd missing /etc/config/luci 2014-06-12 13:48:57 +00:00
Jo-Philipp Wich
d4dc08dcb2 Fix wrong directory in luci-base 2014-06-11 14:00:09 +00:00
Jo-Philipp Wich
7043c30e0e build: introduce luci-base
Merges libs/core, libs/ipkg, libs/web, libs/sys, libs/sgi-cgi, libs/sgi-uhttpd,
modules/admin-core, themes/base and protcols/core into modules/base and renames
luci-lib-core to luci-base.
2014-06-11 13:29:05 +00:00
Jo-Philipp Wich
91b97bc9f6 Remove unmaintained components: lucid, fastindex, niu 2014-06-11 12:37:19 +00:00
Steven Barth
07109bb3f3 Allow toggling local IPv6 addressmanagement 2014-06-03 08:51:33 +00:00
Jo-Philipp Wich
c9f7282d98 modules/admin-full: further simplify wifi config
Drop 11b support since its not properly supported by mac80211 anyway.
Rename 'hwmode' option to 'Band' and remove dependencies from 'htmode' field.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-05-24 12:40:11 +00:00
Jo-Philipp Wich
4496419e1d modules/admin-full: fix wifi config compatibility with current trunk
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-05-19 18:54:06 +00:00
Jo-Philipp Wich
0b5861d6bf modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus 2014-04-23 12:15:40 +00:00
Jo-Philipp Wich
2e9b25330c Revert "modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus"
This reverts commit 57481b0e94b1d4be944c623ffa8334cbd4d53cbb, it contains some accidentally commited changes.
2014-04-23 12:15:02 +00:00
Jo-Philipp Wich
c5b324148d modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus 2014-04-23 12:14:07 +00:00
Jo-Philipp Wich
4ade761227 trunk: Merge fix from luci-0.11 2014-02-13 12:06:47 +00:00
Steven Barth
6c45ccec6a Remove stale IPv6 menu entry 2014-01-18 19:55:51 +00:00
Steven Barth
493b7d4ee9 Adapt IPv6 interface to new architecture 2014-01-17 15:46:56 +00:00
Jo-Philipp Wich
2812cb14c5 modules/admin-full: replace another instance of legacy wifi calls with network reloads 2013-12-08 20:30:51 +00:00
Jo-Philipp Wich
a654b40366 modules/admin-full: use ubus call network reload after enabling, disabling or deleting wifi networks 2013-12-08 16:46:55 +00:00
Jo-Philipp Wich
2aad24cec1 modules/admin-full: add DSL status to index page () 2013-10-09 11:17:55 +00:00
Manuel Munz
3701d2ffbc core/sysauth: Redirect to https on login page if possible, 2013-09-03 17:40:55 +00:00
Manuel Munz
c16cbd527c system/applyreboot: Use the correct protocol, 2013-09-01 16:39:55 +00:00
Jo-Philipp Wich
46c61acd06 modules/admin-full: fix extroot and fsck availability check (https://dev.openwrt.org/ticket/13837) 2013-07-09 09:33:22 +00:00
Steven Barth
ca65b9a4b7 Fix a typo in IPv6 configuration page 2013-05-24 05:50:55 +00:00
Manuel Munz
82267099ae modules/freifunk: Allow to enable/disable VAP in community profiles 2013-05-23 14:07:23 +00:00
Steven Barth
5200eb1577 Add support for stateful DHCPv6 2013-05-23 10:14:20 +00:00
Steven Barth
d5d63e2cc5 Update and simplify IPv6 RA & DHCPv6 configuration 2013-05-23 10:14:10 +00:00
Jo-Philipp Wich
ae2e8c99b1 modules/admin-full: also increase number of ports if cpu port is 8 2013-04-11 17:32:24 +00:00
Jo-Philipp Wich
c5557fc90b modules/admin-full: attempt to determine switch cpu port from /proc/switch/eth0/cpuport in order to properly support newer broadcom models 2013-04-11 13:36:22 +00:00
Jo-Philipp Wich
7ba8d31df7 Add LuCI support for newly introduced IPv6 options 2013-04-09 09:38:33 +00:00
Jo-Philipp Wich
fdf7d6618d modules/admin-full: notify crond after writing crontab () 2013-03-22 12:42:48 +00:00
Jo-Philipp Wich
21aba9c483 modules/admin-full: allow special value "ignore" for static lease ip address () 2013-03-20 15:25:38 +00:00
Manuel Munz
6cd01c013a modules/freifunk: Remove olsrd infos from status.json 2013-03-16 18:37:24 +00:00
Jo-Philipp Wich
7021120936 modules/admin-full: use firewall reload action 2013-03-07 12:17:43 +00:00
Daniel Golle
fb9bed8a0c correct spelling on luci startup page
https://dev.openwrt.org/ticket/13083
2013-02-26 18:50:36 +00:00
Daniel Golle
36986ee5fe modules/admin-full: generalize field descriptions in system status page
LuCI is not only used on routers. When running on a NAS or you-name-it
non-router hardware, refering to "Router Name" and "Router Model" in the
system information page was confusing to some users.
2013-02-26 13:21:54 +00:00
Patrick Grimm
90aca063ae modules/freifunk: Fix time var. change in r9666 2013-02-11 09:35:29 +00:00
Manuel Munz
e2b8e5efa7 modules/freifunk: Fix default route display for virtual interfaces. while at it, rework and simplify the code for the status page 2013-02-09 16:50:55 +00:00
Manuel Munz
5b129819cc modules/admin-full: Add swap info to admin_status page if swap is available, 2013-01-30 13:36:20 +00:00
Jo-Philipp Wich
58b252456c Add support for changing ULA prefix 2013-01-26 18:37:55 +00:00
Jo-Philipp Wich
314eebce98 modules/admin-full: add some additional option depends to the ra/dhcpv6 configuration page 2013-01-22 12:22:17 +00:00
Jo-Philipp Wich
a4f3f52d1c New IPv6 integration 2013-01-22 10:44:16 +00:00
Manuel Munz
7023f33223 diagnostics: Replace 2 more &nbsp; 2013-01-13 19:06:32 +00:00
Manuel Munz
c46d1c22e9 admin-full: Fix javascript error when no proto select box is shown, add hint to install iputils-traceroute6 for ipv6 traceroutes 2013-01-09 18:39:29 +00:00
Manuel Munz
a9c2fc65b6 modules/freifunk: Add homepage(s) field to contact information 2013-01-09 11:22:15 +00:00
Jo-Philipp Wich
c69c3f01a7 modules/admin-full: slightly change html of diagnostics page 2013-01-04 19:55:50 +00:00
Jo-Philipp Wich
45312520ab modules/admin-full: display iwinfo hardware name in wifi overview 2013-01-04 16:25:13 +00:00
Jo-Philipp Wich
7a531b4add modules/admin-full: make mac addresses optional in static lease configuration 2013-01-02 15:31:59 +00:00
Jo-Philipp Wich
8cfa5cc7c5 don't use symlink to /lib/functions.sh
Signed-off-by: Luka Perkov <luka@openwrt.org>
2012-12-20 15:01:04 +00:00
Jo-Philipp Wich
bf25765406 modules/admin-full: fix "unsupported protocol" vs. "no interface assigned" errors for protocols without ifname property, e.g. 6in4 2012-12-19 10:11:03 +00:00
Jo-Philipp Wich
fb9d3ce2b6 modules/admin-full: several white-space fixes for Bootstrap 2012-12-02 14:20:42 +00:00
Manuel Munz
cad7245af2 modules/freifunk: simplify colors in map, add a legend 2012-11-30 23:55:35 +00:00
Jo-Philipp Wich
e689fa8900 modules/admin-full: filter localhost<->localhost connections live connection graph 2012-11-27 14:16:42 +00:00
Jo-Philipp Wich
848e43a5b4 remove .i18n annotations from controller files 2012-11-26 12:53:43 +00:00
Jo-Philipp Wich
7399e07593 modules/admin-full: remove leftover setTimeout() call in load graph 2012-11-21 19:34:13 +00:00
Jo-Philipp Wich
69ac1031b7 applications/luci-commands, applications/luci-upnp, modules/admin-core, modules/admin-full, modules/freifunk: clean up argument handling of leaf nodes 2012-11-21 19:29:47 +00:00
Jo-Philipp Wich
9aad27f48e modules/admin-full: fix word wrapping in wifi overview page when using bootstrap theme 2012-11-21 17:04:12 +00:00
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 () 2012-11-12 16:32:08 +00:00
Manuel Munz
69dbc27ce0 admin-full/diagnostics: Allow to use ping6 and traceroute6 when available, 2012-11-11 12:20:56 +00:00
Manuel Munz
7b7030629c Add some more datatype checks, patch by Eugene C., 2012-11-10 20:55:50 +00:00
Manuel Munz
4e04e353fe admin-full/network/hosts: Fix problem when arptable is empty, 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 () 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, 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 () 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
Jo-Philipp Wich
16ffd14cc2 move luci specific index.html from package 'sgi-cgi' to 'admin-core'
Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt <mirko.vogt@external.telekom.de>
2012-05-06 18:57:18 +00:00
Jo-Philipp Wich
1ec71bbefe modules/admin-full: add mac address suggestions to mac filter settings 2012-05-06 18:04:45 +00:00
Jo-Philipp Wich
a27481f35c modules/admin-full: filter init scripts without START in startup model 2012-05-06 09:48:06 +00:00
Jo-Philipp Wich
86e17aa657 modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead 2012-04-22 13:35:58 +00:00
Manuel Munz
9bde4204cf modules/freifunk: Fix model/system confusion in public_status 2012-04-04 15:40:01 +00:00
Jo-Philipp Wich
1291f1dbb7 admin-full: allow to use translations for 'Not connected' state
This allows to use translated version of the 'Net connected' string in
the Status/Overview/Network section.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2012-04-02 22:50:26 +00:00
Jo-Philipp Wich
c3aff0c622 modules/admin-full: since switch port numbers depend on model and current solar cycle, give up on making the human readable but just give the raw index 2012-03-19 21:04:15 +00:00
Jo-Philipp Wich
785f71ebaf modules/admin-full: reorder compiler flags for luci-bwc, fixes build on Ubuntu 11.x 2012-03-13 21:10:18 +00:00
Jo-Philipp Wich
b22f022f2c modules/admin-full: add DNS resolution to connections status page, order connections descending by traffic 2012-03-04 18:36:05 +00:00
Jo-Philipp Wich
e6bf801bad modules/admin-full: scan three times to catch more networks in wifi join setup 2012-03-04 18:35:13 +00:00
Jo-Philipp Wich
c77a8b1647 modules/admin-full: revert r8324 2012-03-04 15:28:18 +00:00
Jo-Philipp Wich
7918380683 modules/admin-core: autofocus password field in login form 2012-03-04 15:03:05 +00:00
Jo-Philipp Wich
9de7ff8e69 modules/admin-full: reverse time labels in realtime stats () 2012-03-04 14:06:30 +00:00
Jo-Philipp Wich
7b402d1964 modules/admin-full: remove per connection transfer stats, not exposed anymore in recent kernels 2012-03-03 13:10:33 +00:00
Jo-Philipp Wich
0453e50932 modules/admin-full: display wifi rates in assoclist tables 2012-02-23 17:15:50 +00:00
Jo-Philipp Wich
c07e6a6976 modules/admin-full: filter IPv6 linklocal IPs in iface overview 2012-02-15 22:49:56 +00:00
Jo-Philipp Wich
8d2af100a8 modules/admin-full: remove inline style for inface boxes 2012-02-15 16:01:07 +00:00
Jo-Philipp Wich
7bda8d6da3 modules/admin-full: use new button classes in iface overview template 2012-02-15 15:12:10 +00:00
Jo-Philipp Wich
639f58d404 modules/admin-full: add client_cert option in wifi configuration 2012-01-24 20:57:54 +00:00
Jo-Philipp Wich
4bf31a8792 modules/admin-full: redirect init script output in startup model actions 2012-01-12 12:15:21 +00:00
Jo-Philipp Wich
c043db6518 modules/admin-full: set password of logged in user instead of unconditionally using root, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com> 2012-01-06 16:42:02 +00:00
Jo-Philipp Wich
1e0e458ff3 modules/admin-full: fix wireless interface removal if not network was assigned to the iface, thanks Viktar Palstsiuk <viktar.palstsiuk@promwad.com> 2012-01-06 16:28:54 +00:00
Jo-Philipp Wich
ef65fbd9dc modules/admin-full: make luci-bwc dlopen() libiwinfo.so instead of lua/iwinfo.so 2012-01-01 17:20:16 +00:00
Jo-Philipp Wich
706eb828ad modules/admin-full: allow space separated lists of macs in static lease form () 2012-01-01 14:43:56 +00:00
Jo-Philipp Wich
28426c25fc modules/admin-full: fix crypto depends for ad-hoc and static wds modes () 2011-12-21 22:41:44 +00:00
Jo-Philipp Wich
45d604fea3 modules/admin-core: use luci.model.uci.apply() in service control to restart dependencies of the current config as well 2011-12-20 19:04:04 +00:00
Jo-Philipp Wich
79231d68be modules/admin-core: fix apply actions for configs with hyphens or underscore in the name 2011-12-20 18:31:47 +00:00
Jo-Philipp Wich
abb201ab57 modules/admin-full: reuse sysupgrade facilities to create backup archive 2011-12-20 17:35:50 +00:00
Jo-Philipp Wich
3bccd25281 modules/admin-full: probe for EAP support in wpad/hostapd/wpa_supplicant and offer wpa/wpa2 only if it is present 2011-12-13 15:57:32 +00:00
Jo-Philipp Wich
3d2468cf34 modules/admin-full: fix System -> Administration menu if dropbear is not installed 2011-12-08 03:35:27 +00:00
Jo-Philipp Wich
5e83af45ae modules/admin-full, po: s/libiwinfo/libiwinfo-lua/ 2011-12-06 11:00:33 +00:00
Jo-Philipp Wich
9fa385a7ec modules/admin-full: fix removal of wireless networks if radio is disabled 2011-12-05 19:34:47 +00:00
Jo-Philipp Wich
2221b44d98 modules/admin-core: expose txpower offset in wifi json status 2011-12-05 18:35:00 +00:00
Jo-Philipp Wich
c47e0596dd modules/admin-full: use new iwinfo capabilities to display shifted tx power values 2011-12-05 18:29:04 +00:00
Manuel Munz
c5329d85d5 applications/splash: Fix blacklisting mechanism, expose status on public freifunk page, add json output and autoupdate. 2011-11-30 05:50:43 +00:00
Jo-Philipp Wich
33bb31838d modules/admin-full: allow bssid for sta wds as well 2011-11-15 15:47:46 +00:00
Jo-Philipp Wich
743296d42c modules/admin-full: bssid is valid in mac80211 sta mode too 2011-11-15 15:44:01 +00:00
Jo-Philipp Wich
0ecbaa400e modules/admin-full: don't make cipher mandatory 2011-11-13 21:03:06 +00:00
Jo-Philipp Wich
52f6514541 modules/admin-full: prepare uci changelog template for revised libuci-lua changelog format to properly expose add_list operations 2011-11-12 14:31:31 +00:00
Manuel Munz
c67d7b2a43 admin-full: When creating the ntp timeserver section also add the default ntp servers 2011-11-10 13:44:22 +00:00
Manuel Munz
525da459d7 admin-full: Better fix for the last change (timeserver setup), add button to add the missing section 2011-11-10 12:57:13 +00:00
Manuel Munz
a196198fb9 admin-full: Add timeserver section if it doesn't already exist in /etc/config/system () 2011-11-10 12:25:58 +00:00
Manuel Munz
ffdeb77e84 admin-full: Expose bogusnxdomain setting in DHCP / DNS configuration () 2011-11-10 11:40:18 +00:00
Jo-Philipp Wich
13f98b6d99 modules/admin-full: fix another html escape issue on interface overview page 2011-11-08 23:12:38 +00:00
Jo-Philipp Wich
f8a2f2c059 modules/admin-full: fix html escaping on interface overview page 2011-11-08 22:35:24 +00:00
Manuel Munz
6a3640cee2 modules/freifunk: Fix display of warning about diversity 2011-11-08 09:34:09 +00:00
Jo-Philipp Wich
6907d1f2cd modules/admin-full: do not hide toplevel network menu items, yet 2011-11-07 10:44:20 +00:00
Jo-Philipp Wich
905e682bb7 modules/admin-full: speed up network controller by using inreq flag 2011-11-07 10:38:41 +00:00