summaryrefslogtreecommitdiffstats
path: root/dhcp-model.lua
Commit message (Collapse)AuthorAgeFilesLines
* Change listfiles filesize to size, size and mtime not user-friendly, use ↵Ted Trask2015-12-301-3/+4
| | | | posix.stat over fs.stat, use new format functions
* Changes to use new htmlviewfunctions functionsTed Trask2014-04-101-2/+2
|
* Remove all calls to 'module' in preparation for move to Lua 5.2Ted Trask2013-10-181-32/+34
| | | | | Use mymodule parameter for module definition. This was also helpful in revealing places where the code relied on the global environment.
* Change use of require to work with Lua 5.2Ted Trask2013-10-091-1/+1
|
* Removed unneeded views by updating CFE for autoviewTed Trask2012-10-281-18/+20
|
* Made changes for new handle_form style, remove redirect_to_referrer, and fix ↵Ted Trask2012-07-021-15/+30
| | | | fs library references
* Updated for handle_form now passing self to get and set functionsTed Trask2012-04-281-9/+9
|
* Started work on updating for acf-core-0.15Ted Trask2012-04-181-4/+7
| | | | | | Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
* Added ability to edit conf.d file, bumped to 0.4.2v0.4.2Ted Trask2009-08-251-3/+16
|
* Revert previous change because aports changed to use dhcpd init.d script nameTed Trask2009-07-201-1/+1
|
* Modified init.d script from dhcpd to dhcp. Bumped to 0.4.1v0.4.1Ted Trask2009-07-131-1/+1
|
* Modified fs.lua to survive nil parameters. Added create_directory and used ↵Ted Trask2009-01-131-10/+10
| | | | | | within create_file and write_file. Reviewed each read_file call to make sure handles nil return value. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified dhcp to add required ddns-update-style parameter to globals.Ted Trask2008-12-081-10/+20
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1624 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified viewfunctions to split displayform, creating displayformstart and ↵Ted Trask2008-10-221-0/+2
| | | | | | displayformend, to provide flexibility while still using the library. Also added support for hidden fields - including a common redir field. Removed redirectOnSuccess from controllerfunctions handle_form, and replaced it with the redir field. Removed redirectOnSuccess from controllers that used it and added handlecommandresults and redir entries to links and forms throughout many views. This will cause a redirect to the originating view when a form is successfully completed. acf_www-controller now includes orig_action in page_info to report the original action launched by the user. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunctions library to include validation in get/setfiledetails. ↵Ted Trask2008-10-071-2/+1
| | | | | | Modified all uses to validate the file name - this was a major security hole. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed dhcp validation bugTed Trask2008-08-211-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1391 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified dhcp to add host support.Ted Trask2008-08-121-6/+183
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1376 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrite of dhcp to modify existing config file rather than just generate a ↵Ted Trask2008-08-091-857/+470
| | | | | | new one. Still need to add support for hosts, currently only supports globals and subnets. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1373 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaning up the code.Mika Havela2008-04-091-28/+7
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@968 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding a 'status' tab that shows some basic information.Mika Havela2008-04-031-0/+64
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@909 ab2d0c66-481e-0410-8bed-d214d4d58bed
* cleaned up generation for the first releasev0.3Andreas Brodmann2008-03-051-0/+16
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@819 ab2d0c66-481e-0410-8bed-d214d4d58bed
* migrated service control to mhavela's daemoncontrolAndreas Brodmann2008-03-051-11/+7
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@815 ab2d0c66-481e-0410-8bed-d214d4d58bed
* use procps.pidofNatanael Copa2008-01-111-11/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@552 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaned up the dhcp config generation code in a way that the twoAndreas Brodmann2007-11-201-66/+24
| | | | | | | | | | | | files dhcpd.preconfig / dhcpd.postconfig are not copied into the config but the config now contains an "include" statement; this way the dhcpd will read them himself. Those two files can be used by the admin to place custom configurations not possible using the gui. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@347 ab2d0c66-481e-0410-8bed-d214d4d58bed
* 1) Modified the generation processAndreas Brodmann2007-11-201-90/+128
| | | | | | | | | | 2) Moved dynamic host configuration from the subnet scope to global. Reason: in isc-dhcp host declarations are always global. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@344 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: added global pre/post config generation input for proprietary ↵Andreas Brodmann2007-11-191-9/+65
| | | | | | config code by the user git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@337 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: properly enable/disable dynamic hosts window and advanced windowAndreas Brodmann2007-11-191-10/+13
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@336 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: beta: implemented advanced (non validated stuff) per subnetAndreas Brodmann2007-11-171-9/+41
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@331 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: added static/dynamic host behaviour on a per subnet basisAndreas Brodmann2007-11-161-75/+229
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@326 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: make sure the special hosts file is removed when its subnet ↵Andreas Brodmann2007-11-161-2/+3
| | | | | | pendant is removed git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@317 ab2d0c66-481e-0410-8bed-d214d4d58bed
* /acf/dhcp: integrated special hosts (fixed ip's, known mac's, etc.)Andreas Brodmann2007-11-151-17/+193
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@311 ab2d0c66-481e-0410-8bed-d214d4d58bed
* working beta release of dhcp config - special hosts config yet missingAndreas Brodmann2007-11-131-28/+158
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@300 ab2d0c66-481e-0410-8bed-d214d4d58bed
* fixed stdout/stderr redirection for popen / daemon controlAndreas Brodmann2007-11-121-2/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@299 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added global settings configuration to dhcpAndreas Brodmann2007-11-121-4/+88
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@298 ab2d0c66-481e-0410-8bed-d214d4d58bed
* in dhcp: removed any useage of luafilesystem and replaced it by luaposixAndreas Brodmann2007-11-111-3/+3
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@297 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added dependancy check to dhcp (config dir, daemon and init scripts checked)Andreas Brodmann2007-11-111-9/+44
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@294 ab2d0c66-481e-0410-8bed-d214d4d58bed
* updates daily work on dhcpAndreas Brodmann2007-11-091-9/+9
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@292 ab2d0c66-481e-0410-8bed-d214d4d58bed
* validator code partially integrated in dhcpAndreas Brodmann2007-11-091-1/+108
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@290 ab2d0c66-481e-0410-8bed-d214d4d58bed
* updated /acf/dhcp - subnets are now dynamically looked upAndreas Brodmann2007-11-081-1/+16
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/dhcp@277 ab2d0c66-481e-0410-8bed-d214d4d58bed
* initial import of /acf/dhcpv1.0_alpha1Andreas Brodmann2007-11-081-0/+142
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp@274 ab2d0c66-481e-0410-8bed-d214d4d58bed