Commit graph

1404 commits

Author SHA1 Message Date
Jo-Philipp Wich
4bbd85fe42 libs/web: properly handle .default property for ListValue fields with integer keys 2011-01-13 20:54:57 +00:00
Jo-Philipp Wich
bd8ac05d56 libs/web: introduce width property for fields in tblsections 2011-01-13 20:02:16 +00:00
Jo-Philipp Wich
052f65950c libs: drop uvl and uvldoc 2011-01-02 19:26:37 +00:00
Jo-Philipp Wich
73578276af libs/lmo: skip all entries with identical key and value when generating lmo archives 2011-01-02 18:16:54 +00:00
Jo-Philipp Wich
330c013475 libs/sys: update zonedata to version 2010i 2011-01-02 17:54:12 +00:00
Jo-Philipp Wich
8ee6d915ee libs/core: fix some issues in network model 2010-12-24 21:39:44 +00:00
Jo-Philipp Wich
0f9f2a42a4 libs/core: bring get_first() boolean casting in line with get_bool() 2010-12-24 21:39:26 +00:00
Jo-Philipp Wich
f383dc0229 libs/lmo: apply FD_CLOEXEC on archive descriptors to avoid leaking i18n file fds into executed subprocesses 2010-12-24 20:28:00 +00:00
Jo-Philipp Wich
f68906c20f libs/web: fix error in wep key validation 2010-12-16 15:59:25 +00:00
Manuel Munz
6951da02ce modules/freifunk: Make status page update dynamically with javascript and small cosmetic changes. 2010-12-15 16:35:19 +00:00
Manuel Munz
4f65a01295 libs/sgi-uhttpd: move exectime inside handle_request 2010-12-15 01:04:38 +00:00
Manuel Munz
4e3cc9a886 libs/sgi-uhttpd: Add variable exectime to measure script execution time 2010-12-15 00:42:56 +00:00
Jo-Philipp Wich
39578a6b72 libs/web: change "module" variable to "modname" in dispatcher.lua, solves apidoc artefacts 2010-12-12 20:16:13 +00:00
Manuel Munz
99881d9cb6 libs/core: Create get_first() in uci model 2010-12-12 15:01:39 +00:00
Jo-Philipp Wich
8027502b35 libs/httpclient: fix cookie handling (#141) 2010-12-05 18:22:30 +00:00
Jo-Philipp Wich
99bf12fb63 libs/web: add field validation for add section name inputs 2010-12-05 17:37:59 +00:00
Jo-Philipp Wich
5dd3b57bbb libs/core: always use internal network ids for admin links to wifi networks (#172) 2010-12-05 03:57:29 +00:00
Jo-Philipp Wich
ea294f0b64 libs/core: ignore sit0 in network model 2010-12-05 03:21:52 +00:00
Jo-Philipp Wich
6c84824d79 libs/web: handle empty tables in Map.set() 2010-12-05 00:54:18 +00:00
Jo-Philipp Wich
090ce4f17e libs/web: add float and ufloat datatypes for field validation 2010-12-05 00:19:09 +00:00
Jo-Philipp Wich
2a0903bc50 libs/web: fix dynamic list handling 2010-12-03 12:41:12 +00:00
Jo-Philipp Wich
9d83aafb78 libs/core: fix nil access, implement luci.model.network.network.uptime() 2010-12-01 21:15:59 +00:00
Jo-Philipp Wich
de3ea4e956 libs/web: remove debug code from cbi.js 2010-12-01 20:59:36 +00:00
Jo-Philipp Wich
9abe328f9a libs/web: add %t format to String.format(), fix float formatting 2010-12-01 20:53:29 +00:00
Jo-Philipp Wich
a3207ded53 libs/web: fix filtering of overlong utf8 sequences 2010-11-28 20:25:03 +00:00
Jo-Philipp Wich
34ee162976 libs/web: render aggregated messages 2010-11-27 18:18:06 +00:00
Jo-Philipp Wich
6e97be1e92 libs/web: add the ability for maps to push error messages to the global page header 2010-11-27 18:17:15 +00:00
Jo-Philipp Wich
e291678012 libs/sys: protect iwinfo loading and return stub if module is not present 2010-11-27 16:57:39 +00:00
Jo-Philipp Wich
e8490c385f libs/sys: lazy load iwinfo 2010-11-27 16:29:33 +00:00
Jo-Philipp Wich
3b5123937e libs/sys: remove luci.sys.flash() 2010-11-25 08:14:10 +00:00
Jo-Philipp Wich
6d02d50d46 libs/web: fix IPv6 live validation 2010-11-23 23:19:40 +00:00
Manuel Munz
450bdd5a40 Add possibility to show execution time in the footer 2010-11-23 01:02:21 +00:00
Jo-Philipp Wich
9c3db58ee4 libs/web: combine apply actions of all maps on a page, prevents concurrent XHR 2010-11-22 00:32:54 +00:00
Jo-Philipp Wich
f72aa0c4c8 libs/web: implement "unspecified" option for netlist widget 2010-11-21 02:27:13 +00:00
Jo-Philipp Wich
7892bcec29 libs/web: add network_netinfo widget 2010-11-21 00:46:14 +00:00
Jo-Philipp Wich
6b3e6fb854 libs/web: add "back to overview" button to page actions if .redirect is set on the corresponding map 2010-11-21 00:21:49 +00:00
Jo-Philipp Wich
25754119d4 libs/web: expose cbi map redirect property to page templates 2010-11-21 00:14:03 +00:00
Jo-Philipp Wich
be385bfcc6 libs/web: better server side handling of DynList values 2010-11-20 18:35:44 +00:00
Jo-Philipp Wich
d79895c0c3 libs/web: fix DynList template for empty values 2010-11-20 18:24:17 +00:00
Jo-Philipp Wich
ff58e81d18 libs/web: skip empty values in DynList widget 2010-11-20 18:08:18 +00:00
Jo-Philipp Wich
7a7874d14e libs/web: give cbi tabcontainers a CSS class 2010-11-19 17:35:06 +00:00
Jo-Philipp Wich
8dde0803af libs/web: fix apply xhr for IE... 2010-11-18 03:07:21 +00:00
Jo-Philipp Wich
4121f34ac0 libs/web: make apply_xhr less aggressive, only rerequest status if previous response returned 2010-11-17 15:09:18 +00:00
Jo-Philipp Wich
c20dcb3612 libs/web: add range(min,max) datatype validator 2010-11-16 18:48:02 +00:00
Jo-Philipp Wich
b17848e82e libs/web: treat .rmempty like .optional for live field validation 2010-11-16 18:05:17 +00:00
Jo-Philipp Wich
1293c6ac24 libs/px5g: fix compilation on OpenWrt trunk 2010-11-16 16:30:07 +00:00
Jo-Philipp Wich
b304373297 libs/core: network model fixes 2010-11-15 22:03:45 +00:00
Jo-Philipp Wich
3ac93d53ea libs/core: make network model 6to4 aware 2010-11-15 12:30:26 +00:00
Jo-Philipp Wich
59e3062caf libs/web: add support for exclude property to ifacelist and netlist widgets 2010-11-15 12:28:25 +00:00
Jo-Philipp Wich
fa3b7ce070 libs/web: allow percent sign in urls 2010-11-13 20:50:20 +00:00
Jo-Philipp Wich
0aa85e7131 libs/web: stricter validation in build_url(), prevents some XSS 2010-11-13 13:50:54 +00:00
Jo-Philipp Wich
5a03beffcb libs/core: switch to C pcdata() implementation, its up to 7 times faster while also ensuring safe UTF-8 2010-11-13 12:16:51 +00:00
Jo-Philipp Wich
8ac568acb0 libs/web: fix sanitize_utf8(), passes all testcases now 2010-11-12 22:48:17 +00:00
Jo-Philipp Wich
09e71acf6b libs/web: add UTF-8 validation and pcdata escaping C routines to template parser 2010-11-12 22:37:50 +00:00
Jo-Philipp Wich
472ffe69a9 libs/core: restore original implementation of copcall() and coxpcall(), solves issues with RPC UCI endpoint 2010-11-09 19:43:13 +00:00
Jo-Philipp Wich
16262c2be0 libs/web: implement rawhtml property for DummyValue switches, allowes passing arbritary markup 2010-11-08 18:13:40 +00:00
Jo-Philipp Wich
b93adb7603 libs/core: restart miniupnpd when firewall is reloaded 2010-11-08 09:45:13 +00:00
Jo-Philipp Wich
d26ceda459 libs/web: support local destination in zonelist widget 2010-11-07 20:01:12 +00:00
Jo-Philipp Wich
561673c0a1 libs/web: add luci.http.write_json() 2010-11-07 19:27:15 +00:00
Jo-Philipp Wich
fcd9579fd4 libs/sys: fix logic fail in luci.sys.user.checkpasswd() (#152) 2010-11-05 22:05:11 +00:00
Jo-Philipp Wich
4ede70c0ce libs/web: introduce firewall_zoneforwards widget 2010-11-01 19:39:57 +00:00
Jo-Philipp Wich
75ccb1c5a8 libs/core: some firewall model enhancements 2010-11-01 19:39:02 +00:00
Jo-Philipp Wich
aab6378bc3 libs/core: several fixes for firewall model 2010-11-01 01:51:26 +00:00
Jo-Philipp Wich
5b63f544f5 libs/core: return ordered list in luci.model.network.get_interfaces() 2010-10-31 22:38:07 +00:00
Jo-Philipp Wich
3407c007d8 libs/core: fix bug in firewall model 2010-10-31 21:43:21 +00:00
Jo-Philipp Wich
ea81c6ad53 libs/web: use the value of the .enabled property in flag widget html 2010-10-31 21:41:57 +00:00
Jo-Philipp Wich
0a7bfa4f78 libs/web: support entering custom ifnames in iface list widget 2010-10-31 21:41:27 +00:00
Jo-Philipp Wich
0a8fa4e4a5 libs/core: support not-yet-existing interfaces in network model 2010-10-31 21:38:36 +00:00
Jo-Philipp Wich
b3b708a585 libs/web: add support for post commit redirects in cbi maps 2010-10-31 19:34:45 +00:00
Jo-Philipp Wich
141095fa7f libs/core: fix luci.model.firewall.rename_zone() 2010-10-30 18:26:46 +00:00
Jo-Philipp Wich
29f0b48ddc libs/web: fix type in datatypes.lua 2010-10-30 18:18:18 +00:00
Jo-Philipp Wich
4622241535 libs/web: introduce "uciname" datatype for cbi validation 2010-10-30 18:12:39 +00:00
Jo-Philipp Wich
fc5b9e27f0 libs/web: use imatch() in model related widgets, support multivalues in netlist widget 2010-10-30 17:57:49 +00:00
Jo-Philipp Wich
95886d4585 libs/core: use imatch() in firewall and network model 2010-10-30 17:56:06 +00:00
Jo-Philipp Wich
ddd1ba088e libs/core: introduce luci.util.imatch() 2010-10-30 17:54:25 +00:00
Jo-Philipp Wich
4f2248fadb libs/web: add placeholder support to DynamicList widgets 2010-10-30 17:21:27 +00:00
Jo-Philipp Wich
1208895c18 libs/core: remove luci.model.uci.bind 2010-10-30 04:50:04 +00:00
Jo-Philipp Wich
c0f5518bdb libs/core: reuse existing uci context in network model if possible. fix some bugs 2010-10-30 04:48:55 +00:00
Jo-Philipp Wich
08dfc28786 libs/core: rework firewall model 2010-10-30 04:47:37 +00:00
Jo-Philipp Wich
82b7e4e72b libs/web: add html5 placeholder attribute support to cbi options 2010-10-30 02:51:15 +00:00
Jo-Philipp Wich
2b7ba80b8a libs/core: fix various bugs in network model 2010-10-30 02:33:06 +00:00
Jo-Philipp Wich
bc78f7e08d libs/web: implement forcewrite attribute for cbi options 2010-10-30 02:30:09 +00:00
Jo-Philipp Wich
85a5d628ec libs/web: live validation fixes 2010-10-30 01:03:20 +00:00
Jo-Philipp Wich
595020f919 libs/web: convert cbi widgets to new network model 2010-10-30 00:42:58 +00:00
Jo-Philipp Wich
df01f3e431 libs/core: merge luci.model.wireless into luci.model.network 2010-10-30 00:40:07 +00:00
Jo-Philipp Wich
33378709a9 libs/core: rework network model 2010-10-28 18:30:15 +00:00
Jo-Philipp Wich
21de97b235 libs/core: implement substate() in uci model for creating bound state cursors 2010-10-28 17:26:48 +00:00
Jo-Philipp Wich
70706cf388 libs/web: rework DynamicList widget 2010-10-25 17:04:03 +00:00
Jo-Philipp Wich
63089ef8be libs/web: annotate form object with cbi state when using section add/remove buttons 2010-10-21 20:51:32 +00:00
Jo-Philipp Wich
98b4da49b0 libs/web: fix ip6addr js validation, fixes for live validation 2010-10-21 20:50:18 +00:00
Jo-Philipp Wich
5e45e4107b libs/web: fix tab highlighting with multiple tabs 2010-10-20 22:43:29 +00:00
Jo-Philipp Wich
687861c498 libs/core: fix network counting in luci.model.wireless 2010-10-19 04:13:33 +00:00
Jo-Philipp Wich
1a3533cb86 libs/web: add String.serialize() and String.format() to cbi.js 2010-10-19 04:06:46 +00:00
Jo-Philipp Wich
db46443478 libs/web: support different caption for button widgets 2010-10-19 04:03:36 +00:00
Jo-Philipp Wich
cca45d0bdb libs/sys: resolve pseudo ifaces in luci.sys.wifi.getiwinfo() 2010-10-19 03:56:53 +00:00
Jo-Philipp Wich
dd2abf2ea4 libs/web: move XHR apply callback into subtemplate 2010-10-15 21:56:44 +00:00
Jo-Philipp Wich
f7ab1fbc56 libs/web: add export() to template namespace, allows templates to export symbols to the calling view namespace, this is useful for includes defining shared procedures or variables 2010-10-15 16:12:07 +00:00
Jo-Philipp Wich
fbaabd7d93 libs/web: cbi: add new on_before_save and on_after_save hook, implement :reset_values() for options supporting :value() 2010-10-14 23:21:25 +00:00
Jo-Philipp Wich
8038cbf004 libs/web: fix various issues in cbi option error handling, call validator for missing options to obtain error message 2010-10-14 00:18:28 +00:00
Jo-Philipp Wich
17575b4d75 libs/web: rework cbi field validation, let validators return custom error messages, properly handle errors in multiple sections 2010-10-12 23:08:54 +00:00
Jo-Philipp Wich
551224f51c libs: remove uci folder 2010-10-12 05:29:12 +00:00
Jo-Philipp Wich
5c2000a157 libs: merge libs/uci into libs/core 2010-10-12 05:28:49 +00:00
Jo-Philipp Wich
2472cd5613 libs: remove http folder 2010-10-12 05:23:00 +00:00
Jo-Philipp Wich
b6358aaea4 libs: merge libs/http into libs/web 2010-10-12 05:22:38 +00:00
Jo-Philipp Wich
719fd249aa libs: remove obsolete iwinfo, its independant now 2010-10-12 05:19:10 +00:00
Jo-Philipp Wich
aff68f5375 libs: remove cbi folder 2010-10-12 05:17:08 +00:00
Jo-Philipp Wich
ede4aca4b9 libs: merge libs/cbi into libs/web 2010-10-12 05:15:32 +00:00
Jo-Philipp Wich
051186345c libs/sys: implement luci.sys.user.getpasswd() 2010-10-11 23:22:25 +00:00
Jo-Philipp Wich
a5e34813e3 libs/uci: prevent concurrent luci-reload instances, write currently processed init script to status file 2010-10-11 22:56:58 +00:00
Jo-Philipp Wich
f735ef30bd libs/cbi: don't run apply on render, this is a quick hack and will be reworked soon 2010-10-11 22:55:49 +00:00
Jo-Philipp Wich
2c22ea7b77 libs/cbi: interface with service control backend to trigger service reload asynchronously 2010-10-11 22:54:35 +00:00
Steven Barth
05a61e4632 nixio: Add set_verify_locations for TLS 2010-06-10 07:46:36 +00:00
Steven Barth
ad2ff61191 nixio: Add nixio.gettimeofday() per user request 2010-05-23 16:35:59 +00:00
Jo-Philipp Wich
4dc420efd3 libs/cbi: fix crash with tabless sections 2010-04-27 07:25:20 +00:00
Jo-Philipp Wich
eca5a0abf0 libs/cbi:
- skip client side field validation if corrsponding field was removed due to dependencies
	- human readable error strings in uci section summary
	- implement field validation for dnyamic lists
	- render optional fields when section has tabs
2010-04-27 00:27:37 +00:00
Jo-Philipp Wich
f1ebca9388 libs/cbi: add wep and wpa key datatype validators 2010-04-26 22:37:09 +00:00
Jo-Philipp Wich
e75cb4f5ba libs/cbi: drop UVL, introduce server side datatype validation 2010-04-26 22:27:18 +00:00
Jo-Philipp Wich
ee36ef4170 libs/cbi: implement realtime client side input validation for Value and DynamicList fields 2010-04-26 21:42:10 +00:00
Jo-Philipp Wich
8e590d6650 libs/cbi: always reset class name in validation handler 2010-04-26 00:00:33 +00:00
Jo-Philipp Wich
dcf53bd886 libs/cbi: add field validation handlers 2010-04-25 23:50:25 +00:00
Jo-Philipp Wich
5879873fca libs/cbi: add datatype validators for upcoming client side field validation 2010-04-25 23:34:24 +00:00
Jo-Philipp Wich
3cb299dc10 libs/cbi: try to load fully qualified model path first, drop support for .lua.gz models 2010-04-21 19:41:46 +00:00
Jo-Philipp Wich
4c4d9b869b libs/web: don't fail if no langauge is set in luci config 2010-04-16 19:05:05 +00:00
Jo-Philipp Wich
74f118ab5c libs/nixio: save uhttpd certs as well 2010-04-05 17:38:05 +00:00
Jo-Philipp Wich
9dbc3a879b libs/lucid: make lucid work without nixio tls support 2010-04-03 18:53:35 +00:00
Steven Barth
53f812b11a nixio: Fix interface data for layer 3+ interfaces 2010-03-28 19:42:09 +00:00
Jo-Philipp Wich
c0d0953bd7 libs/nixio: make TLS support optional 2010-03-27 19:16:54 +00:00
Jo-Philipp Wich
be8a41822c libs: add uhttpd gateway interface 2010-03-21 17:59:37 +00:00
Jo-Philipp Wich
0799c5f9ea libs/uvl: convert luci.uvl.validation to new luci.uvl.error api 2010-03-18 22:39:48 +00:00
Jo-Philipp Wich
30f7206c59 libs/uvl: convert luci.uvl.dependencies to new luci.uvl.error api 2010-03-18 22:36:59 +00:00
Jo-Philipp Wich
1661add529 libs/uvl: local symbol error shadows error class declaration, drop it 2010-03-18 17:25:25 +00:00
Jo-Philipp Wich
c91c64b927 libs/uvl: fix syntax error introduced with r5861 2010-03-18 17:03:14 +00:00
Jo-Philipp Wich
e301256632 libs/cbi: change usage of uvl error api after r5861 2010-03-18 17:00:23 +00:00
Jo-Philipp Wich
3d426e48d4 libs/uvl: rework error handling to prevent triggering lvm issues 2010-03-18 16:58:58 +00:00
Jo-Philipp Wich
2fede7361f libs/core: disable runtime byte code stripping, it causes lvm errors (OpenWrt #6235, LuCI #110) 2010-03-18 15:19:11 +00:00
Jo-Philipp Wich
9a6d72238d trunk: remove libs/lpk and libs/luanet 2010-03-15 15:23:50 +00:00
Jo-Philipp Wich
7b276a5f48 libs/sys: fix unwanted invocation of initscripts when probing index of rcS 2010-03-08 18:56:03 +00:00
Jo-Philipp Wich
538af500a6 libs/uci: reload luci-statistics when changing system properties 2010-03-08 02:43:58 +00:00
Jo-Philipp Wich
2269eb3ef0 libs/ipkg: call opkg with --autoremove 2010-03-08 01:47:10 +00:00
Jo-Philipp Wich
928f16618e libs/uci: purge luci_ethers and luci_hosts from ucitrack 2010-03-08 01:23:31 +00:00
Jo-Philipp Wich
6a02931893 libs/sys: workaround for Lua number overflow in ipv6 route metrics 2010-03-08 00:49:39 +00:00
Jo-Philipp Wich
59b3711e70 libs/ipkg: add overlay_root(), determines the overlay used by opkg 2010-03-07 21:51:45 +00:00
Jo-Philipp Wich
fe8e9abc0f libs/ipkg: pass some force flags to opkg invokations for non interactive mode 2010-03-07 20:14:07 +00:00
Jo-Philipp Wich
cb0718b9f7 libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles 2010-03-06 19:10:30 +00:00
Jo-Philipp Wich
8338e5e8f5 libs/ipkg: add callback based list_all() and list_installed() 2010-02-28 23:38:22 +00:00
Jo-Philipp Wich
859f99845e libs/nixio: fix uninitialized variable warning on Darwin in splice.c 2009-12-29 17:55:10 +00:00
Jo-Philipp Wich
74630d6814 libs/lucid-http: fix regressions with recent git uci 2009-12-29 17:50:35 +00:00
Jo-Philipp Wich
6ea063dc11 libs/nixio: properly cast len argument for OS X sendfile() 2009-12-28 23:07:04 +00:00
Jo-Philipp Wich
6ffdb72a4d libs/nixio: fix compile on OS X 2009-12-28 22:03:42 +00:00
Jo-Philipp Wich
0ddedc638c libs/cbi: don't filter bridge ports in firewall zone widget 2009-12-26 00:09:47 +00:00