summaryrefslogtreecommitdiff
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* luci-0.11: merge r9648, r9649 and r96540.11.1Jo-Philipp Wich2013-01-272-19/+27
|
* luci-0.11: merge r9571 - r9622Jo-Philipp Wich2013-01-183-36/+21
|
* luci-0.11: merge r9559 - r9569Jo-Philipp Wich2012-12-253-6/+4
|
* luci-0.11: merge r9560Jo-Philipp Wich2012-12-191-2/+2
|
* luci-0.11: merge outstanding trunk changesJo-Philipp Wich2012-12-1828-1409/+1277
|
* Fix nixio exece()Jo-Philipp Wich2012-10-291-4/+4
| | | | | | | | | | | | | | | | | | I had occasion to use nixio.exece() recently and I could not figure out what it wanted for the third argument (the environment) as no matter what sort of table I passed, even nixio.getenv(), would fail with bad argument #3 to 'exece' (invalid environment). What it should expect is a table full of string values for keys and something that can be converted to a string as a value, however it inverts the value of lua_type() and compares it against a type, which will never evaluate to true. Getting past this, the code inserts the KEY=VALUE string before the arg userdata, and then forgets to take the env userdata into account when collecting the arguments back into a C char**. This patch addresses all these issues and provides a working nixio.exece(). [Fixes #500]
* libs/web: relax validation for hostnames to allow names like ↵Jo-Philipp Wich2012-10-062-4/+4
| | | | _kerberos._udp.EXAMPLE.COM
* libs/web: transparently handle userdata in write_json()Jo-Philipp Wich2012-09-151-1/+1
|
* libs/core: explicitely load luci.i18n in network modelJo-Philipp Wich2012-09-151-17/+17
|
* libs/core: adapt luci.model.network for wifi-iface instances which are ↵Jo-Philipp Wich2012-09-151-12/+43
| | | | members of multiple networks
* libs/core: remove route enabled check in network model after netifd update ↵Jo-Philipp Wich2012-09-131-1/+1
| | | | in OpenWrt trunk
* libs/web: merge luci.http.protocol fix from FonosferaJo-Philipp Wich2012-08-291-12/+10
| | | | | See http://trac.fonosfera.org/fon-ng/changeset/2102/trunk/luci/libs/http .
* [PATCH] nixio HAS_SHADOW test link errorJo-Philipp Wich2012-08-291-1/+1
| | | | | | | | | | | The nixio library can mistakenly build without shadow password support due to the compile-time test failing. Because the test for HAS_SHADOW in the nixio Makefile uses the default CC flags, the test may attempt to cross-compile with different VFP abi than libc does and will therefore not link. Passing CCFLAGS on the command line builds the test correctly and will enable HAS_SHADOW if available.
* libs/nixio: add missing parameter to alarm resetJo-Philipp Wich2012-08-271-1/+1
|
* libs/nixio: cancel pending alarm after successfully returning from getnameinfo()Jo-Philipp Wich2012-08-271-0/+3
|
* libs/sys: use 100ms timeouts for name resolution of host hintsJo-Philipp Wich2012-08-271-8/+8
|
* libs/nixio: implement optional timeout for getnameinfo() on LinuxJo-Philipp Wich2012-08-271-1/+43
|
* libs/core: also add gre0 to default interface ignore patternJo-Philipp Wich2012-08-171-1/+1
|
* libs/web: export translatef() into templatesJo-Philipp Wich2012-08-141-0/+1
|
* libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target ↵Jo-Philipp Wich2012-08-141-0/+1
| | | | network is not yet committed to uci
* libs/web: rework unspecified/create logic for checkboxes in network_netlist ↵Jo-Philipp Wich2012-08-091-2/+7
| | | | widget
* libs/web: support placeholder attribute for comboboxes, fix validation ↵Jo-Philipp Wich2012-08-092-1/+7
| | | | quirks with input->select transition in comboboxes
* libs/sys: remove _parse_delimitted_table() and incorperate /etc/config/dhcp ↵Jo-Philipp Wich2012-08-091-34/+36
| | | | leases into mac_hints()
* libs/sys: remove wifi.channels()Jo-Philipp Wich2012-08-081-33/+0
|
* libs/sys: remove wifi.getiwconfig() and wifi.getiwscan()Jo-Philipp Wich2012-08-081-50/+0
|
* libs/sys: introduce net.mac_hints(), net.ipv4_hints() and net.ipv6_hints() ↵Jo-Philipp Wich2012-08-081-2/+141
| | | | functions to obtain lists of peers from various sources (e.g. ethers, leases, arp cache)
* libs/web: add missing css class to cbi simpleform templateJo-Philipp Wich2012-08-081-1/+1
|
* libs/web: adapt dispatcher to sauth api changesJo-Philipp Wich2012-08-081-5/+3
|
* libs/web: rework luci.sauthJo-Philipp Wich2012-08-081-44/+47
| | | | | | - perform decoding/encoding transparently in read() and write() - remove decode() and encode() helpers - introduce reap() to kill expired sessions
* Rework authentication systemJo-Philipp Wich2012-08-071-40/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* libs/web: support creating networks in checkbox network widget (#457)Jo-Philipp Wich2012-07-241-2/+2
|
* libs/sys: workaround broken entries in /proc/net/ipv6_route, observed on ↵Jo-Philipp Wich2012-07-181-28/+35
| | | | brcm-2.4
* libs/core: only consider enabled routes when finding wan interfaceJo-Philipp Wich2012-06-291-1/+1
|
* libs/sys: fix login with empty password after previous commitJo-Philipp Wich2012-06-271-5/+6
|
* libs/sys: fix luci.sys.checkpasswd() semanticsJo-Philipp Wich2012-06-271-4/+3
|
* libs/core: improve luci.util.imatch() to not create temporary strings when ↵Jo-Philipp Wich2012-06-261-8/+20
| | | | iterating non-string values
* libs/core: implement get_wandev(), get_wan6dev(), get_wannet() and ↵Jo-Philipp Wich2012-06-261-0/+38
| | | | get_wan6net() in luci.model.network
* libs/core: fix network is_empty() check for wifi-ifaces which are part of ↵Jo-Philipp Wich2012-06-261-3/+6
| | | | multiple networks
* libs/web: extend network_ifacelist widget to display all networks an iface ↵Jo-Philipp Wich2012-06-261-1/+7
| | | | is member of
* libs/core: allow ifaces to be part of multiple networks in luci.model.networkJo-Philipp Wich2012-06-261-23/+31
|
* libs/web: implement minlength(), maxlength() and rangelength() datatypesJo-Philipp Wich2012-06-252-1/+62
|
* libs/core: fix various problems in the network modelJo-Philipp Wich2012-06-171-2/+4
|
* libs/core: fix ubus corner cases in network modelJo-Philipp Wich2012-05-311-36/+32
|
* libs/core: use ubus to fetch interface and device status information, depend ↵Jo-Philipp Wich2012-05-311-63/+79
| | | | on libubus-lua
* move luci specific index.html from package 'sgi-cgi' to 'admin-core'Jo-Philipp Wich2012-05-061-10/+0
| | | | | | Contributed by T-Labs, Deutsche Telekom Innovation Laboratories Signed-off-by: Mirko Vogt <mirko.vogt@external.telekom.de>
* libs/sys: fix luci.sys.init.index() (#399)Jo-Philipp Wich2012-05-061-1/+1
|
* Fix JSON NaNJo-Philipp Wich2012-04-161-1/+6
| | | | | | | | | | Hi, The attached patch fixes the JSON generation when dealing with NaN (not a number), this makes the JSON parsing in the web browser succeed (before it would get a "nan" which is not a valid JS value) Chris
* libs/web: fix html output for complex datatypes containing apostrophesJo-Philipp Wich2012-04-151-3/+3
|
* libs/sys: introduce luci.sys.init.start() and luci.sys.init.stop(), also ↵Jo-Philipp Wich2012-04-151-17/+31
| | | | execute all init action with an empty environment
* libs/datatypes: Fix typoManuel Munz2012-04-131-1/+1
|