Steven Barth
ee690abb0f
CBI Delegators (Wizards)
...
Example CBI-Map:
d = Delegator()
d.allow_back = true -- Back-button
d:add("step1", load("mywizard/form1")) -- model/cbi/mywizard/form1
d:add("step2", load("mywizard/form2"))
return d
2009-05-24 17:17:53 +00:00
Steven Barth
8c4f847ea5
GSoC Commit #1 : LuCId + HTTP-Server
2009-05-23 17:21:36 +00:00
Jo-Philipp Wich
7590cd25f4
- Add support for hostap driver
...
- Retrieve channels from all available wireless interfaces
- Add channel "auto" to channel list
Thanks Vasilis Tsiligiannis
2009-05-21 21:33:24 +00:00
Jo-Philipp Wich
ce6aec0a91
i18n: remove obsolete lua i18n files
2009-05-19 02:35:25 +00:00
Jo-Philipp Wich
7bf803250b
build: integrate po files in the build system
2009-05-19 02:18:28 +00:00
Jo-Philipp Wich
62fade5709
libs/core: make sure that bitlib is loaded, fixes some sdk problems
2009-05-17 01:56:15 +00:00
Jo-Philipp Wich
f2e4a6665b
libs/sys: fix checking for empty table
2009-05-13 18:50:12 +00:00
Jo-Philipp Wich
4856c1ea23
libs/sys: fix typo in last commit
2009-05-13 18:45:13 +00:00
Jo-Philipp Wich
98996e380a
libs/sys: implement luci.sys.wifi.channels()
...
modules/admin-full: only display available channels
2009-05-13 18:42:53 +00:00
Jo-Philipp Wich
64600a27ee
libs/luanet: add wifi channel enumeration
2009-05-09 17:55:24 +00:00
Steven Barth
67fbe1b33c
Remove Luasocket - obsoleted by nixio
...
Remove old luasocket based LuCI Httpd - obsoleted by lucittpd
Remove lpeg - not in use
Rewrite luci-splashd using nixio
2009-05-01 11:28:34 +00:00
Steven Barth
cd4fa227cc
httpclient: Send the correct Host-Header if we are following a redirect
2009-04-30 12:58:04 +00:00
Steven Barth
d81b3548a9
nixio:
...
Added binding for getifaddrs(): List network interfaces, their flags,
addresses and statistics
Cleanups
2009-04-26 19:10:36 +00:00
Steven Barth
a2b916ab73
Merge nixio 0.2
2009-04-21 16:26:45 +00:00
Jo-Philipp Wich
383cac453b
libs/cbi: workaround git deficiencies
2009-04-16 10:36:29 +00:00
Jo-Philipp Wich
38a52d9a29
libs/sys: sync zoneinfo to tzdata 2009d
2009-04-10 19:32:00 +00:00
Steven Barth
0acedfff3e
Fix some fallout
2009-04-09 13:59:50 +00:00
Jo-Philipp Wich
859a3fee88
libs/web: fix file caches in dispatcher, broke when introducing lua-gz support
2009-04-08 00:08:38 +00:00
Jo-Philipp Wich
9835296ba2
trunk: prepare LuCI to handle .lua.gz files
2009-04-04 22:54:16 +00:00
Steven Barth
f3deef9ec5
Backport Skip-Button support
2009-04-03 18:08:25 +00:00
Steven Barth
0ef46dc967
Import luanet library
...
Relicensed with author's permission
Thanks John
2009-03-30 11:27:43 +00:00
Jo-Philipp Wich
0c7effc0c0
libs/cbi: properly handle uvl errors without childs
2009-03-29 22:13:26 +00:00
Steven Barth
8fdb12c4d1
Introduce noheader and nofooter CBI-Dispatcher config
2009-03-27 00:10:17 +00:00
Steven Barth
8368432a63
Fix last commit
2009-03-26 12:39:43 +00:00
Steven Barth
b9fbed39ca
Correctly set status FORM_PROCEED instead of FORM_CHANGED if user
...
creates / deletes a field or section
2009-03-26 12:37:26 +00:00
Steven Barth
5de4878257
nixio: solaris does not recognize LOG_PERROR
2009-03-16 13:40:22 +00:00
Steven Barth
13767f5d1a
Fix a possible stack corruption
2009-03-16 13:34:46 +00:00
Steven Barth
e5a34b512c
Added missing file
2009-03-16 13:29:06 +00:00
Steven Barth
452442d1d0
nixio: added syslog support
2009-03-16 13:28:47 +00:00
Jo-Philipp Wich
fc62fe46d0
libs/web:
...
- improve handling of low level runtime errors
- wrap access to luci.main into assert()
2009-03-14 01:16:03 +00:00
Steven Barth
ee4852a5ad
Sync nixio
2009-03-13 18:29:23 +00:00
Steven Barth
edda19be9a
nixio: More sockopts
2009-03-13 12:10:33 +00:00
Steven Barth
5fa29b1c5a
nixio: +socket options SO_DONTROUTE, SO_BINDTODEVICE
2009-03-13 11:53:12 +00:00
Steven Barth
9bf88087f4
nixio: chdir()
2009-03-12 21:44:11 +00:00
Steven Barth
82858a8e8f
nixio: add setsid()
2009-03-12 21:31:57 +00:00
Steven Barth
2c7a30708d
httpclient: handle redirects more graceful
2009-03-12 20:14:55 +00:00
Steven Barth
6aa6fb88ab
FreeBSD compatibility #3
2009-03-12 15:09:12 +00:00
Steven Barth
04eb9de74e
nixio: FreeBSD compatibility #2
2009-03-12 14:53:52 +00:00
Steven Barth
35f40376c3
nixio: FreeBSD compatibility #1
2009-03-12 13:06:19 +00:00
Jo-Philipp Wich
e401b4a620
libs/sys: update zoneinfo to version 2009b
2009-03-12 07:47:11 +00:00
Steven Barth
8eadc262d0
Drop XML i18n files
2009-03-11 15:21:59 +00:00
Steven Barth
a125a64a15
Be nice()
2009-03-10 20:59:56 +00:00
Steven Barth
68a95e6806
nixio: Implement protable behaviour of signal(), export more error
...
constants
2009-03-09 22:19:47 +00:00
Steven Barth
2e79c969c0
httpclient: Added missing import
...
nixio: waitpid() returns 0 with WNOHANG and no terminated childs
2009-03-09 20:06:36 +00:00
Steven Barth
7b5d67305e
Allow SimpleForm handler to set CBI status
2009-03-09 14:28:55 +00:00
Steven Barth
73607dbd7d
Improved httpclient
2009-03-09 14:02:34 +00:00
Steven Barth
6129d031b0
nixio: reenable splice() for linux
2009-03-09 13:17:44 +00:00
Steven Barth
4aa848533e
Cicrumvent possible segfaults in axTLS
...
More compatibility
2009-03-09 11:38:29 +00:00
Steven Barth
589e680970
Make nixio compile on OpenSolaris
2009-03-09 09:37:08 +00:00
Steven Barth
30b7bc7c62
Fixed last commit
2009-03-07 16:28:27 +00:00
Steven Barth
25da62f8ff
Don't compare cstate if there is none
2009-03-07 16:24:05 +00:00
Steven Barth
1ed9be270b
Fix debugging output
2009-03-07 13:21:27 +00:00
Steven Barth
ad57125f41
Allow combination of SimpleForms as Forms into pages with Maps
...
Allow subsequent changes of Table data
2009-03-07 11:30:41 +00:00
Steven Barth
eb6f9c6192
Fixed last commit
2009-03-06 17:20:42 +00:00
Steven Barth
22a9815e3e
Fixed last commit
2009-03-06 17:20:38 +00:00
Steven Barth
ec29107ede
bla
2009-03-06 17:18:45 +00:00
Steven Barth
96d988abb0
httpclient: Improved callback support
2009-03-06 17:17:44 +00:00
Steven Barth
09a18c2c31
nixio util:
...
Don't shutdown TLS connection on close()
This could lead to problems when calling close on a forked socket
sink() also shutdown connection if close is requested and possible
2009-03-06 16:34:26 +00:00
Steven Barth
0b8a61a536
httpclient: callback can abort download
2009-03-05 23:52:54 +00:00
Steven Barth
f151bb804f
nixio: Export more constants, introduce {g,s}et{g,u}id, getpid, getppid
2009-03-05 19:20:40 +00:00
Steven Barth
f1b667fc6f
nixio: Fix generation of private key for axtls
2009-03-04 18:30:56 +00:00
Steven Barth
fc45514531
Still not working...
2009-03-04 17:53:25 +00:00
Steven Barth
f94538dda3
Fix nixio postinst
2009-03-04 17:41:55 +00:00
Steven Barth
b92e6532a0
nixio: Autogenerate private key on installation if we have axtls
...
support, make the TLS provider configurable in the build menu
2009-03-04 17:17:30 +00:00
Steven Barth
a5ae3959b5
Set /etc/private.rsa as default key for axTLS contexts
...
More openssl - axTLS fixes
2009-03-04 13:09:32 +00:00
Steven Barth
e38c438771
nixio:
...
Use POSIX file functions
introduce dup()
introduce fork() wait() kill()
more signal interrupt wrappers
more POSIX / UNIX standard compliance
2009-03-03 22:44:26 +00:00
Steven Barth
a3079828b4
Fix header generator
2009-03-02 20:18:29 +00:00
Steven Barth
eb64affa39
Set method to POST if we have postdata and no other method is set
2009-03-02 19:45:07 +00:00
Steven Barth
62a914555e
httpclient: default content-type for post data is
...
"application/x-www-form-urlencoded"
2009-03-02 19:41:32 +00:00
Steven Barth
33fe5b57d7
More splicing stuff
2009-02-28 21:21:52 +00:00
Steven Barth
7196b2cd84
nixio: Fixes, use POSIX calls for file i/o
...
httpclient: resume support, splice() support, cookie support
2009-02-27 14:51:37 +00:00
Steven Barth
30421d38dd
Introduce luci.dispatcher.get(...) which works like node(...) but does
...
not disable the autocreated flag and does not overwrite the target
controller so that call()-targets won't loose their binding to their
controller
2009-02-26 17:08:41 +00:00
Steven Barth
3b7bb9c82f
Enable stack tracebacks for 500 errors
2009-02-26 16:45:01 +00:00
Steven Barth
ff2bc9081b
nixio: Finetuning of TLS-support
...
httpclient: HTTPS support
axTLS: enable diagnostic mode
2009-02-24 17:54:48 +00:00
Steven Barth
1eec55dd47
Fix option dependencies, this was lost in some IE fixing stuff
2009-02-23 22:53:42 +00:00
Steven Barth
6b104b9a45
nixio:
...
Reogranize TLS headers
Fix TLS receive buffer workaround for axTLS
Add support for flock()
2009-02-23 17:21:14 +00:00
Steven Barth
65b50a8f8a
More compat fixes
2009-02-22 23:45:49 +00:00
Steven Barth
06450d3fe3
Remove some crap
...
Add compatiblity for older uclibc versions
2009-02-22 23:37:35 +00:00
Steven Barth
d730c12633
Add axTLS sourcecode
2009-02-22 23:19:25 +00:00
Steven Barth
d2b11117f2
NIXIO: TLS-Support, bugfixes
2009-02-22 22:49:23 +00:00
Steven Barth
360479b5a5
Fixes UVLdoc generation, thanks ffrrrr ( closes #49 )
2009-02-20 11:47:03 +00:00
Steven Barth
cbc49a3b53
More nixio fixes, initial httpclient
2009-02-18 21:46:55 +00:00
Jo-Philipp Wich
e062ec6981
libs/ipkg: use -force-defaults to ensure non-interactive execution
2009-02-17 01:37:18 +00:00
Steven Barth
695361877c
More nixio fixes
2009-02-15 13:59:30 +00:00
Steven Barth
157cc2b896
nixio: +performance
2009-02-14 14:39:12 +00:00
Steven Barth
aa0cee169f
nixio: added sendfile(), return false instead of nil for EWOULDBLOCK
2009-02-14 10:42:48 +00:00
Steven Barth
5ff898e624
nixio next
...
splice() still does not work correctly
2009-02-12 19:48:06 +00:00
Steven Barth
4327f9250e
nixio + io = nix2io
2009-02-10 17:35:07 +00:00
Jo-Philipp Wich
b5026e65c0
libs/web: don't send Status: 500 in error500() if header is already sent
...
modules/admin-core: include template header only once
2009-02-09 13:17:26 +00:00
Steven Barth
8dbb8a0ad3
Use poll() instead of select()
...
Reintroduce nanosleep()
2009-02-08 20:57:36 +00:00
Steven Barth
56d142a1a1
nixio linux IO/socket api (incomplete / WIP)
2009-02-08 14:01:48 +00:00
Jo-Philipp Wich
f52ec22717
modules/admin-full: implement iptables status page
...
i18n/english: resync xml, add strings for iptables page
libs/sys/iptparser: implement chain() and is_custom_target()
2009-02-08 03:56:50 +00:00
Jo-Philipp Wich
e3c8b9a10b
libs/sys/iptparser: remove typo, bump copyright year
2009-02-08 00:50:25 +00:00
Jo-Philipp Wich
474a617268
libs/sys/iptparser: import required functions
2009-02-08 00:48:21 +00:00
Jo-Philipp Wich
a9f58b0c52
libs/sys/iptparser:
...
- rewrite inline documentation to luadoc
- utilize luci.ip for source and destination comparisations
2009-02-08 00:45:13 +00:00
Jo-Philipp Wich
43844ccc0d
libs/sys: import missing symbol
2009-02-02 17:35:51 +00:00
Jo-Philipp Wich
4b9f7db1ce
libs/sys: extend luci.sys.hostname() to allow setting a new name
...
modules/admin-{full,mini}: update the hostname at runtime
2009-02-01 17:08:40 +00:00
Steven Barth
ab18c3ba10
Fix autodetection for extended language identifiers
2009-01-30 15:29:14 +00:00
Jo-Philipp Wich
b0abe4aa08
libs/core: further fixes for luci.util.pcdata(), fix wrong character range and drop invalid control chars entirely
2009-01-25 13:03:17 +00:00
Jo-Philipp Wich
e226a77b24
libs/core: rework luci.util.pcdata() to also escape ascii control chars
2009-01-25 12:29:37 +00:00
Jo-Philipp Wich
fc1e5cbe4d
libs/lucittpd: fix format strings in luaplugin.c and log.c
2009-01-21 13:50:24 +00:00
Steven Barth
05da6913dd
urldecode path_info before using it
2009-01-20 19:40:14 +00:00
Steven Barth
514a9bfec7
Add utime to luci.fs
2009-01-20 10:18:45 +00:00
Jo-Philipp Wich
eedf535996
libs/cbi: remove workaround for libuci
2009-01-20 00:51:01 +00:00
Jo-Philipp Wich
10ab31ef5f
libs/cbi:
...
- add workaround for libuci-lua bug when writing list values
- compare values against keyllist not vallist when validating StaticList
-> fixes StaticList and DynamicList widgets
2009-01-20 00:05:18 +00:00
Jo-Philipp Wich
b204c9ec8d
libs/uci: implement get_bool() to retrive uci variables as boolean value
2009-01-19 13:39:54 +00:00
Jo-Philipp Wich
14c485e117
libs/uvl: update inline documentation
2009-01-18 00:02:13 +00:00
Jo-Philipp Wich
9ee2ef5623
libs/uvl:
...
- allow overriding the config directory in luci.uvl
- support --configdir for uvl verify too
2009-01-17 23:50:32 +00:00
Steven Barth
a6159010a8
Purge abandonend brands
2009-01-17 17:56:43 +00:00
Jo-Philipp Wich
89c8f98b12
build: add mkversion.sh helper script
...
contrib: (re-)generate version.lua at build time
libs/core: use version.lua
themes: adept header to version.lua, fix css for openwrt.org
2009-01-17 16:35:02 +00:00
Steven Barth
4957144262
Autoapplying on creation / deletion of sections is annoying, disable it.
2009-01-17 13:06:18 +00:00
Steven Barth
d0d1fe0a28
Automatic language detection
2009-01-14 23:47:56 +00:00
Jo-Philipp Wich
c730262d14
libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the id column in table layouts
2009-01-12 17:31:19 +00:00
Jo-Philipp Wich
dfbd41b2dc
libs/cbi: also set id attribute for hidden fields
2009-01-11 15:45:34 +00:00
Jo-Philipp Wich
fb7aea55e8
libs/cbi: add support for hidden form fields in sections
2009-01-11 03:44:04 +00:00
Steven Barth
85f780f576
Resolve dependencies when a combobox is updated.
2009-01-09 10:57:28 +00:00
Steven Barth
cc4e2d4943
Introduce active (pulling) JSON-Decoder
2009-01-04 20:08:45 +00:00
Steven Barth
f911758bc2
Add extended dispatching targets, optimize dispatching behaviour
2009-01-04 15:45:57 +00:00
Jo-Philipp Wich
870397a3cd
libs/ip: return a copy of given tables in __mask16() to avoid destroying them later
2008-12-27 01:42:34 +00:00
Steven Barth
014d971eab
Fix urltoken passing on several pages
2008-12-22 21:54:20 +00:00
Jo-Philipp Wich
0c3f77a397
libs/core: implement fs.isdirectory()
2008-12-19 12:08:51 +00:00
Steven Barth
57cfc2ee26
Fixed REQUEST_URI
2008-12-17 19:52:50 +00:00
Steven Barth
1ee5ba632a
Refined urltokens and XSRF protection
2008-12-15 10:40:45 +00:00
Steven Barth
271c53a4af
Implement URL tokens
...
Add basic XSRF protection
2008-12-14 21:43:10 +00:00
Steven Barth
8b978f79fc
Added luci.sauth.kill, sanitize luci.sauth even more
2008-12-14 21:42:59 +00:00
Jo-Philipp Wich
f7a3e34955
prevent package upgrade failures caused by sloppy postinstalls
2008-12-09 00:03:08 +00:00
Steven Barth
77ac7cfcad
Start LuCIttpd in background
2008-12-07 20:09:46 +00:00
Steven Barth
dd74b986a0
Make luci.sys.wifi.getiwconfig more compatible
2008-12-07 19:38:22 +00:00
Steven Barth
506822ee70
Make LuCIttpd work OOTB
2008-12-07 11:47:59 +00:00
Jo-Philipp Wich
cbdc5af52e
build: generate timezone offsets too in zoneinfo2lua.pl
...
libs/http: drop zoneinfo information in luci.http.protocol.data, use luci.sys.zoneinfo instead
libs/sys: refresh zoneinfo information
2008-12-06 03:18:14 +00:00
Steven Barth
7540f86d40
Reload luci.config for each thread
2008-12-05 15:36:44 +00:00
Jo-Philipp Wich
46bb17c2d2
modules/admin-full: whitesapce cleanup in routes.lua
...
libs/sys: code changes in routes6() and defaultroute6()
2008-11-30 19:12:58 +00:00
Steven Barth
cd8e12d72a
Don't fail if we do not have v6 support
2008-11-30 18:43:10 +00:00
Steven Barth
5734545388
Optimized conntrack (thanks to Joe Burpee)
2008-11-30 17:22:48 +00:00
Steven Barth
b33943a6e8
Merge LuCIttpd
2008-11-30 13:19:45 +00:00
Steven Barth
0b34ab07d4
Scope compatibility fixes
2008-11-29 21:58:39 +00:00
Jo-Philipp Wich
a4fcc13388
libs/web: reformat code in dispatcher.lua that confuses luadoc
2008-11-29 21:21:43 +00:00
Jo-Philipp Wich
dda65d2b94
libs/core/ip: optmizations
...
libs/sys: implement defaultroute6(), change return values of routes() and routes6()
modules/admin-full: adept route config page to new api
modules/freifunk: adept overview page to new routes api
2008-11-29 20:46:26 +00:00
Steven Barth
6b6359a7ef
Enable rmempty by default
2008-11-27 22:03:50 +00:00
Jo-Philipp Wich
5b48beff18
libs/sys: whitespace fix
2008-11-27 00:17:36 +00:00
Jo-Philipp Wich
ddccf47328
libs/sys: fix regexp pattern in routes6()
2008-11-27 00:07:17 +00:00
Jo-Philipp Wich
3793244fcb
libs/sys: whitespaces fixes
2008-11-26 22:59:11 +00:00
Jo-Philipp Wich
950825d323
libs/sys: implement luci.sys.net.routes6()
2008-11-26 22:57:57 +00:00
Jo-Philipp Wich
18b4c1f6b6
libs/core/ip: fix host() method
2008-11-26 22:57:26 +00:00
Jo-Philipp Wich
fda52c6fec
libs/core/ip: fix prefix length handling in Hex() constructor
2008-11-26 22:29:14 +00:00
Steven Barth
408e9d289d
Fixed last commit
2008-11-20 21:16:02 +00:00
Steven Barth
8d2c8c131d
Remove luci.cutil: does not affect performance
2008-11-20 21:14:58 +00:00
Steven Barth
a3cf596d37
More luci.cutil
2008-11-20 19:39:40 +00:00
Steven Barth
9c260769a5
More C-Functions (luci.cutil.instanceof, luci.cutil.pcdata)
2008-11-20 19:22:05 +00:00
Steven Barth
9a203c52dd
Integrate core C implementation
2008-11-20 15:15:50 +00:00