Daniel Dickinson [Wed, 2 Dec 2015 04:02:38 +0000 (23:02 -0500)]
luci-base: Make default for FileUpload 'safe'
Some files and pointers to files are not safe to remove without a replacement
file and config pointing to the file. For instance for uhttpd application in
the works, removing the certificate or key config or files without having the
replacements in places renders the WeUI inaccessible.
The only other place where FileUpload is currently used is for wifi certificates
for which the 'safe' handling is also preferred. Therefore make the default for
the FileUpload widget the safe handling and add a property self.unsafeupload that
allows for the old unsafe handling should it prove useful in some case.
Also allow to specify a file already on router instead of uploading a file.
Signed-off By: Daniel Dickinson <openwrt@daniel.thecshore.com>
Jo-Philipp Wich [Tue, 15 Dec 2015 22:08:17 +0000 (23:08 +0100)]
Merge pull request #564 from cshore/pull-request-app-firewall-timedate
Pull request app firewall timedate
Jo-Philipp Wich [Tue, 15 Dec 2015 21:56:47 +0000 (22:56 +0100)]
Merge pull request #562 from cshore/pull-request-upload-dir
modules/luci-base: Move LuCI FileUpload directory to /etc/luci-upload…
Hannu Nyman [Tue, 15 Dec 2015 12:37:46 +0000 (14:37 +0200)]
CONTRIBUTING.md: clarify signed-off-by advice
Clarify the signed-off-by advice in CONTRIBUTING.md.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Daniel Dickinson [Wed, 2 Dec 2015 05:52:37 +0000 (00:52 -0500)]
applications: firewall: Add time and date for rules and redirects
UCI config for the firewall has the option of specifying time and date
limitations; add these options the UI.
Daniel Dickinson [Wed, 2 Dec 2015 04:43:18 +0000 (23:43 -0500)]
luci-base: Add time and data datatypes for use with firewall app
Adding LuCI configuation of the firewall time and data uci options
is in progress and this adds the necessary datatypes for validating
those fields.
Daniel Dickinson [Wed, 2 Dec 2015 02:36:30 +0000 (21:36 -0500)]
modules/luci-base: Move LuCI FileUpload directory to /etc/luci-uploads and save across sysupgrade
/lib/uci/upload is a rather odd place for configuration files
Also the files were not saved across sysupgrade, which is somewhat
counter-productive for configuration files.
Signed-off By: Daniel Dickinson <openwrt@daniel.thecshore.com>
Jo-Philipp Wich [Wed, 9 Dec 2015 15:51:48 +0000 (16:51 +0100)]
luci-app-olsr: use public interface of luci.model.network.wifinet (#569)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Wed, 9 Dec 2015 14:53:26 +0000 (15:53 +0100)]
luci-base: rewrite luci.sys.net.conntrack()
The new function is twice as fast as the old implementation and properly
summarizes outgoing and incoming byte and packet counters.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Hannu Nyman [Wed, 9 Dec 2015 09:43:36 +0000 (11:43 +0200)]
Merge pull request #567 from inTagger/ip-addr-view-update
luci-mod-admin-full: update IPv4/IPv6 list views
Alexander Logger [Tue, 8 Dec 2015 18:20:11 +0000 (21:20 +0300)]
luci-mod-admin-full: update IPv4/IPv6 list views
For better view of 'Interface Overview' IPv4/IPv6 addresses for
interfaces should be displayed as lists, but not as comma separated
strings.
Signed-off-by: Alexander Logger <intagger@gmail.com>
Hannu Nyman [Sun, 6 Dec 2015 11:23:38 +0000 (13:23 +0200)]
i18n: sync translations
Sync translations.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Jo-Philipp Wich [Fri, 4 Dec 2015 19:04:55 +0000 (20:04 +0100)]
Merge pull request #461 from marcel-sch/patch-1
package/community-profiles: add freifunk cottbus profile
Jo-Philipp Wich [Thu, 3 Dec 2015 15:42:58 +0000 (16:42 +0100)]
Merge pull request #559 from Arnie97/add-openvpn-proto
luci-app-openvpn: Add udp6 and tcp6 to proto
Arnie97 [Fri, 27 Nov 2015 03:20:26 +0000 (11:20 +0800)]
luci-app-openvpn: Add udp6 and tcp6 to proto
Signed-off-by: Yifeng Zhang <arnie97@gmail.com>
Jo-Philipp Wich [Wed, 2 Dec 2015 12:57:05 +0000 (13:57 +0100)]
Merge pull request #565 from yousong/l2tp-server
Allow host:port value for l2tp `server` option
Yousong Zhou [Wed, 18 Nov 2015 05:34:24 +0000 (13:34 +0800)]
luci-proto-ppp: l2tp: allow specifying port in "server" option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Yousong Zhou [Wed, 25 Nov 2015 14:39:27 +0000 (22:39 +0800)]
luci-base: fix escaping lua string to js repr
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Jo-Philipp Wich [Wed, 2 Dec 2015 10:13:18 +0000 (11:13 +0100)]
luci-base: add hostport and ipaddrport validation types
Add two new types 'hostport' and 'ipaddrport' to validate strings in the form
'sub.example.org:1234' and '0.0.0.0:80'. The 'hostport' accepts hostnames or
IP addresses followed by a colon and a port number while the 'ipaddrport' type
accepts numeric IP addresses only, followed by a colon and a port.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Wed, 2 Dec 2015 09:44:10 +0000 (10:44 +0100)]
Merge pull request #561 from cshore/pull-request-fstab-improvements
Pull request fstab improvements
Daniel Dickinson [Wed, 2 Dec 2015 04:47:42 +0000 (23:47 -0500)]
luci-base: Add function for shell single-quote parameter escaping
When using os.execute or luci.sys.call the shell is called with the
command line which means that standard shell interpretation of strings
occurs. To allow to use these commands more easily we add functions
for properly escaping single-quoted strings used on the command line
Daniel Dickinson [Wed, 2 Dec 2015 05:23:04 +0000 (00:23 -0500)]
luci-mod-admin-full: fstab: Add ability to redo the detection of block devices
Adds a button that does block detect and write the new configuration
to /etc/config/fstab.
Daniel Dickinson [Wed, 2 Dec 2015 05:21:36 +0000 (00:21 -0500)]
luci-mod-admin-full: fstab: Add ability to set global options like anonymous mounts
Previously the global configuration options were missing the the LuCI configuration,
however these options are useful, so make them available to the UI.
Daniel Dickinson [Wed, 2 Dec 2015 05:19:47 +0000 (00:19 -0500)]
luci-mod-admin-full: Don't show jail bind mounts
The user is unlikely to care about the plethora of jail bind mounts
when using jails, so don't display them in this app.
Daniel Dickinson [Wed, 2 Dec 2015 05:17:52 +0000 (00:17 -0500)]
luci-mod-admin-full: fstab: Add ability to unmount non-system mounts
Add an unmount button for non-system mounts which will unmount
the corresponding file system.
Jo-Philipp Wich [Mon, 30 Nov 2015 06:58:22 +0000 (07:58 +0100)]
luci-app-openvpn: add route_nopull (#560)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Thu, 26 Nov 2015 22:23:15 +0000 (23:23 +0100)]
Merge pull request #534 from yousong/add-luci-proto-pppossh
Add luci proto pppossh
Jo-Philipp Wich [Thu, 26 Nov 2015 11:30:53 +0000 (12:30 +0100)]
luci-mod-admin-full: limit SSID to 32 characters (#558)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Sat, 21 Nov 2015 12:53:33 +0000 (13:53 +0100)]
luci-mod-admin-full: fix script regression after
152ba9ab228ad4ea4c1748f29fe4ffa5f8f74ac6
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Fri, 20 Nov 2015 23:31:06 +0000 (00:31 +0100)]
luci-base: use board.json to infer switch netdev
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Fri, 20 Nov 2015 23:29:55 +0000 (00:29 +0100)]
luci-base: switch to luci-lib-jsonc
Add dependency on luci-lib-jsonc and use it to
reimplement luci.util.serialize_json().
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Fri, 20 Nov 2015 22:44:43 +0000 (23:44 +0100)]
luci-mod-admin-full: make mirror port settings depend on mirror enable
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Hannu Nyman [Fri, 20 Nov 2015 20:01:27 +0000 (22:01 +0200)]
Merge pull request #554 from bittorf/better_neigh.sh
freifunk-common: neigh.sh - show hostnames
Bastian Bittorf [Fri, 20 Nov 2015 19:46:55 +0000 (20:46 +0100)]
freifunk-common: neigh.sh - show hostnames
if nameservice-plugin is configured, we read
in all locally known hostnames and show them
in the output:
root@stuttgarter-core:~# neigh.sh
Local Remote vTime LQ NLQ Cost Host
10.230.105.241 10.230.105.246 138851 1.000000 1.000000 1024 stuttgarter-rhnk.olsr
10.230.105.241 10.230.105.247 135717 1.000000 1.000000 1024 stuttgarter-emma.olsr
10.230.105.241 10.230.105.244 138309 1.000000 1.000000 1024 stuttgarter-sued.olsr
10.230.105.241 10.230.105.245 136001 1.000000 1.000000 1024 stuttgarter-west.olsr
10.230.105.241 10.230.105.242 134818 1.000000 1.000000 1024 stuttgarter-nord.olsr
10.230.105.241 10.230.105.243 137187 1.000000 1.000000 1024 stuttgarter-ost.olsr
10.230.105.241 10.230.105.250 139984 1.000000 1.000000 1024 stuttgarter-hof2.olsr
10.230.105.241 10.230.105.251 138294 1.000000 1.000000 1024 stuttgarter-stra2.olsr
Local Remote vTime LQ NLQ Cost Host
2001:bf7:820:901::1 2001:bf7:820:950::1 139703 1.000000 1.000000 1024 stuttgarter-rhnk.olsr
2001:bf7:820:901::1 2001:bf7:820:960::1 139541 1.000000 1.000000 1024 stuttgarter-emma.olsr
2001:bf7:820:901::1 2001:bf7:820:990::1 140415 1.000000 1.000000 1024 stuttgarter-hof2.olsr
2001:bf7:820:901::1 fde6:24f1:a388::1 141338 1.000000 1.000000 1024
the filenames for the olsrd hosts-file is taken from uci
and falls back to sane defaults.
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
Jo-Philipp Wich [Thu, 19 Nov 2015 09:02:41 +0000 (10:02 +0100)]
luci-mod-admin-full: revert accidential button type change in
20fdac1ac4a126ceebde13fb627a9f88bba0e2b3
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
marcel-sch [Wed, 18 Nov 2015 15:38:05 +0000 (16:38 +0100)]
update profile
Manuel Munz [Wed, 18 Nov 2015 11:34:06 +0000 (12:34 +0100)]
contrib/package/freifunk-policyrouting: remove rc.d symlink
Jo-Philipp Wich [Tue, 17 Nov 2015 16:42:22 +0000 (17:42 +0100)]
luci-mod-admin-full: allow empty mac in interface status
Also adjust for changed IP address format emitted by iface_status call.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 17 Nov 2015 16:36:00 +0000 (17:36 +0100)]
luci-mod-admin-full: use :ipaddrs() and :ip6addrs() helper for iface_status
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 17 Nov 2015 16:35:02 +0000 (17:35 +0100)]
luci-base: eliminate use of uci state vars in luci.model.network
Also implement :ipaddrs() and :ip6addrs() helper for network instances.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Mon, 16 Nov 2015 13:30:13 +0000 (14:30 +0100)]
luci-mod-admin-full: prevent submit with interface delete button (#549)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Mon, 16 Nov 2015 11:36:29 +0000 (12:36 +0100)]
luci-base: fix uci documentation issue (#538)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Christian Schoenebeck [Sun, 15 Nov 2015 20:36:11 +0000 (21:36 +0100)]
Merge pull request #548 from chris5560/master
luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
Christian Schoenebeck [Sun, 15 Nov 2015 10:42:43 +0000 (11:42 +0100)]
luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
- support for new options "lookup_host", "param_enc" and "param_opt"
- rewritten ddns provider handling to only show/check needed options "domain", "username", etc.
- modified version check/handling incl. using new ipkg.compare_versions function
- modified map.title and map.description generation
- changed XHR.poll interval to 15 seconds on system status page
- using new value_parse function for testing and later implementation into cbi.lua
- some optimizations
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Jo-Philipp Wich [Wed, 11 Nov 2015 09:15:33 +0000 (10:15 +0100)]
Merge pull request #396 from fanthos/master
luci-app-qos: Add custom QOS classes to luci dropdown list
Jo-Philipp Wich [Wed, 11 Nov 2015 09:14:34 +0000 (10:14 +0100)]
Merge pull request #535 from saik0/redirect-root-if-empty-signed
Redirect to root on empty path (signed off)
Christian Schoenebeck [Mon, 9 Nov 2015 20:48:07 +0000 (21:48 +0100)]
Merge pull request #545 from chris5560/master
luci-app-radicale: remove map.title hack
Christian Schoenebeck [Mon, 9 Nov 2015 20:46:01 +0000 (21:46 +0100)]
luci-app-radicale: remove map.title hack
remove map.title hack; no longer needed
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Christian Schoenebeck [Mon, 9 Nov 2015 20:41:13 +0000 (21:41 +0100)]
Merge pull request #544 from chris5560/master
luci-app-privoxy: remove map.title hack
Christian Schoenebeck [Mon, 9 Nov 2015 20:39:50 +0000 (21:39 +0100)]
luci-app-privoxy: remove map.title hack
remove map.title hack; no longer needed
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Hannu Nyman [Fri, 6 Nov 2015 07:53:36 +0000 (09:53 +0200)]
Merge pull request #542 from eamars/master
Fix a typo mistake in UI string (mount/fstab extroot advice)
Ran Bao [Thu, 5 Nov 2015 23:48:47 +0000 (12:48 +1300)]
fix a typo error in command script shown to users
Signed-off-by: Ran Bao <worksev@gmail.com>
Hannu Nyman [Thu, 5 Nov 2015 08:54:33 +0000 (10:54 +0200)]
luci-mod-admin-full: limit interface name length to 15 chars
Limit the name of a new interface to 15 characters.
Add a note about the maximum length and the automatic protocol/bridge
prefixes (br-, 6in4-, pppoe- etc.).
Reference to:
https://dev.openwrt.org/ticket/20380
https://github.com/openwrt/luci/issues/507
There is a 15 character limit to the "real" interface name,
enforced both in the firewall and dnsmasq. The real interface name
includes the possible prefix "br-", "6in4-" etc. Example of an error:
interface name `br-lan_protected' must be shorter than IFNAMSIZ (15)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Joel Pedraza [Fri, 30 Oct 2015 15:22:15 +0000 (11:22 -0400)]
Redirect to root on empty path
* Prevents an empty Location header
* Useful in environments where build_url() could return an empty string (such as http server rewrites requests to /cgi-bin/luci)
Signed-off-by: Joel Pedraza <github@saik0.net>
Yousong Zhou [Fri, 30 Oct 2015 08:26:04 +0000 (16:26 +0800)]
luci-proto-ppp: add support for pppossh
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Yousong Zhou [Tue, 3 Nov 2015 06:20:03 +0000 (14:20 +0800)]
luci-base: add support for DynamicList with FileBrowser
Two new arguments url, defpath were added to cbi_dynlist_init() for
initializing the brower button.
An example of usage
identity = section:taboption("general", DynamicList, "identity",
translate("List of SSH key files for auth"))
identity.datatype = "file"
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Yousong Zhou [Tue, 26 Aug 2014 03:02:16 +0000 (11:02 +0800)]
luci-base: urlencode: encode all except unreserved characters.
As per http://tools.ietf.org/html/rfc3986#section-2.3
Characters that are allowed in a URI but do not have a reserved
purpose are called unreserved. These include uppercase and lowercase
letters, decimal digits, hyphen, period, underscore, and tilde.
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Christian Schoenebeck [Sun, 1 Nov 2015 16:59:35 +0000 (17:59 +0100)]
Merge pull request #532 from chris5560/master
documentation/CBI.md fixed markdown formating
Christian Schoenebeck [Sun, 1 Nov 2015 16:57:08 +0000 (17:57 +0100)]
documentation/CBI.md fixed markdown formating
CBI.md: fixed markdown formating
ModulesHowTo.md: fixed to make link inside CBI.md work.
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Christian Schoenebeck [Sun, 1 Nov 2015 16:19:26 +0000 (17:19 +0100)]
Merge pull request #528 from nmav/no-vpn
ocserv: removed unnecessary option and add proxy arp option
Christian Schoenebeck [Sun, 1 Nov 2015 15:38:05 +0000 (16:38 +0100)]
Merge pull request #531 from chris5560/master
template cbi/value.htm implement documented property maxlength
Christian Schoenebeck [Sun, 1 Nov 2015 15:36:29 +0000 (16:36 +0100)]
template cbi/value.htm implement documented property maxlength
template cbi/value.htm implement already documented property maxlength
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Christian Schoenebeck [Sun, 1 Nov 2015 14:34:17 +0000 (15:34 +0100)]
Merge pull request #529 from chris5560/master
cbi: Implement "readonly" property for "Value"
Nikos Mavrogiannopoulos [Sun, 1 Nov 2015 09:15:49 +0000 (10:15 +0100)]
ocserv: added proxy arp option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 31 Oct 2015 10:53:41 +0000 (11:53 +0100)]
luci-app-ocserv: removed unecessary option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Christian Schoenebeck [Sat, 31 Oct 2015 22:09:40 +0000 (23:09 +0100)]
cbi.lua: Implement "readonly" property for "Value"
cbi.lua: Implement "readonly" property for "Value"
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Christian Schoenebeck [Sat, 31 Oct 2015 21:54:25 +0000 (22:54 +0100)]
template cbi/value.htm: add "readonly" property
template cbi/value.htm: add "readonly" property
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Christian Schoenebeck [Sat, 31 Oct 2015 20:43:41 +0000 (21:43 +0100)]
Merge pull request #526 from chris5560/master
cbi.lua: Implement Flag.validate function
Christian Schoenebeck [Fri, 30 Oct 2015 17:42:38 +0000 (18:42 +0100)]
cbi.lua: Implement Flag.validate function
cbi.lua
- Implement Flag.validate function to be overwritable
- rewritten if clause for easier reading ;-)
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Hannu Nyman [Thu, 29 Oct 2015 09:59:30 +0000 (11:59 +0200)]
luci-app-voice-core and -diag: mark broken
Mark luci-app-voice-core and luci-app-voice-diag @BROKEN as their only functionality
is to create menu structure to be filled by items from luci-app-diag-devinfo,
which is currently broken due to missing dependencies.
References:
Initial commit creating all three packages:
https://github.com/openwrt/luci/commit/
820f11932f548182ebb32704e1df83b78e69b19e
Explanation why luci-app-diag-devinfo is currently broken:
https://github.com/openwrt/luci/commit/
ec6ccf1cd3225b51b958b38c7439f1dea8c28457
If luci-app-diag-devinfo gets its dependencies fixed, these two voice packages
might be re-activated. Combining the three packages would increase clarity.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Wed, 28 Oct 2015 11:07:47 +0000 (13:07 +0200)]
luci-app-firewall: limit zone name length to 11 characters
Change the maximum length of a firewall zone name from 14 to 11 characters.
Longer names break iptables rule generation (max. 29 chars are allowed).
XT_EXTENSION_MAXNAMELEN = 29
29 - sizeof("postrouting_") - sizeof("_rule") - sizeof("\0") = 11
References to:
https://github.com/openwrt/luci/issues/507
https://dev.openwrt.org/ticket/20380
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Wed, 28 Oct 2015 10:40:16 +0000 (12:40 +0200)]
Merge pull request #494 from ollie27/strings
fix string "UPNP" -> "UPnP"
Oliver Middleton [Sun, 27 Sep 2015 23:50:37 +0000 (00:50 +0100)]
fix string "UPNP" -> "UPnP"
Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
Hannu Nyman [Tue, 27 Oct 2015 15:30:24 +0000 (17:30 +0200)]
Merge pull request #509 from neheb/master
resources/icons: Use gifsicle to save a few bytes.
Jo-Philipp Wich [Tue, 27 Oct 2015 13:11:11 +0000 (14:11 +0100)]
luci-base: eliminiate use of uci state vars in luci.sys
Rewrite `luci.sys.wifi.getiwinfo()` to use the ubus wireless state instead of
depreacated uci state vars in order to map abstract network notation to
wireless ifnames.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 27 Oct 2015 12:24:09 +0000 (13:24 +0100)]
Add link to API reference
Jo-Philipp Wich [Tue, 27 Oct 2015 12:09:03 +0000 (13:09 +0100)]
Move libubus-lua dependency to luci-base
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Hannu Nyman [Tue, 27 Oct 2015 07:57:57 +0000 (09:57 +0200)]
luci-app-diag-devinfo: mark broken due to dependencies
Mark luci-app-diag-devinfo @BROKEN as it has several failing dependencies:
Four dependencies from "oldpackages":
httping, mac-to-devinfo, smap-to-devinfo, netdiscover-to-devinfo
One dependency from "abandoned":
smap
(netdiscover is currently ok in trunk, but not in 15.05.)
Reference to Luci issue #523.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Sun, 25 Oct 2015 08:19:26 +0000 (10:19 +0200)]
luci-app-statistics: Adjust ping graphs to show target hosts separately
Ping statistics plugin allows the user to define multiple ping targets.
The graphs have so far shown multiple hosts in a stacked way.
Adjust graphs to show the target hosts separately (overlay=true).
Clarify the plugin definition with some additional line spacing.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Sun, 25 Oct 2015 08:11:35 +0000 (10:11 +0200)]
luci-app-statistics: improve scaling of the associated stations graph
Improve scaling of the associated stations graph on the wireless page.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Hannu Nyman [Sat, 24 Oct 2015 06:33:42 +0000 (09:33 +0300)]
Merge pull request #522 from LuttyYang/master
luci-theme-material: fix some style bugs
Lutty Yang [Sat, 24 Oct 2015 02:14:11 +0000 (10:14 +0800)]
luci-theme-material: fix some style bugs
Signed-off-by: Lutty Yang <lutty@wcan.in>
Hannu Nyman [Fri, 23 Oct 2015 17:21:01 +0000 (20:21 +0300)]
Merge pull request #521 from LuttyYang/master
luci-theme-material: Synchronized to the LUCI version
f9e590a
Hannu Nyman [Fri, 23 Oct 2015 17:16:04 +0000 (20:16 +0300)]
Revert "luci-theme-material: do not infer login state from url (#520)"
This reverts commit
f9e590aa4741bf337029be3f374a33543cc3f37b
in order to enable a clean merge of the PR #521 from the theme author.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Lutty Yang [Fri, 23 Oct 2015 12:51:12 +0000 (20:51 +0800)]
luci-theme-material: try find current position by using lua code
thanks for jow
Signed-off-by: Lutty Yang <lutty@wcan.in>
Lutty Yang [Fri, 23 Oct 2015 04:51:07 +0000 (12:51 +0800)]
luci-theme-material: Synchronized to the LUCI version
f9e590a
Signed-off-by: Lutty Yang <lutty@wcan.in>
Jo-Philipp Wich [Thu, 22 Oct 2015 19:07:40 +0000 (21:07 +0200)]
luci-theme-material: do not infer login state from url (#520)
Checking for `;` in the url is no good indicator whether a user is logged in,
instead query the dispatcher and set a `logged-in` CSS class on the `<body>`
element if a session exists.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Thu, 22 Oct 2015 10:20:09 +0000 (12:20 +0200)]
luci-mod-admin-full: fix invalid markup in packages.htm (#518)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Thu, 22 Oct 2015 06:35:34 +0000 (08:35 +0200)]
luci-mod-admin-full: restructure and fix backup, restore and sysuprade (#517)
Do not use standard post security checking for actions that require file upload
since reading the token value will trigger parsing of the http message body
before the file upload handler has been set, which causes LuCI to buffer the
entire request body in memory.
In order to simplify the code and logic flow, split action_flashops() into
separate handlers for reset, backup, restore and sysupgrade.
Let the backup restore and sysupgrade handlers use the new test_post_security()
method in luci.dispatcher to perform token checking *after* setting the upload
handler.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Thu, 22 Oct 2015 06:30:29 +0000 (08:30 +0200)]
luci-base: dispatcher expose test_post_security()
Allows external code to perform POST and token checking manually.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Wed, 21 Oct 2015 14:45:48 +0000 (16:45 +0200)]
luci-base: ensure that base url is emitted with trailing slash
Now that we don't have an url token anymore, '/cgi-bin/luci' becomes a valid
url while cookies are restricted to only '/cgi-bin/luci/' and below.
In order to ensure that the first request after login refers to a path
covered by the authentication cookie, change build_url() to always append
a trailing slash if we're referring to the base url.
This should fix the login problems mentioned in #516.
While we're touching the dispatcher, also remove remaining url token code.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Wed, 21 Oct 2015 14:42:39 +0000 (16:42 +0200)]
luci-mod-admin-full: do not access dispatcher.context.urltoken in logout
The urltoken table is going to be removed.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:31:27 +0000 (00:31 +0200)]
luci-base: remove security token from urls
Now that sensitive urls require post requests and only accept them if a valid
security token is sent along the request, we can drop the global random url
token to improve LuCI usability.
The main improvement is the ability to use multiple tabs with the same login
session, but also deep linking to specific urls without the need for another
login becomes feasible, e.g. for documentation purposes.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:11:28 +0000 (00:11 +0200)]
luci-app-upnp: protect lease delete call with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:09:55 +0000 (00:09 +0200)]
luci-app-splash: protect admin status call with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:03:56 +0000 (00:03 +0200)]
luci-app-radicale: protect start/stop actions with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:03:03 +0000 (00:03 +0200)]
luci-app-privoxy: protect start/stop actions with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 22:00:55 +0000 (00:00 +0200)]
luci-app-ocserv: protect disconnect action with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 21:58:01 +0000 (23:58 +0200)]
luci-app-ddns: protect start/stop actions with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Jo-Philipp Wich [Tue, 20 Oct 2015 20:27:39 +0000 (22:27 +0200)]
luci-mod-admin-full: protect iptables counter reset and restart with token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>