summaryrefslogtreecommitdiffstats
path: root/lib/modelfunctions.lua
Commit message (Collapse)AuthorAgeFilesLines
* Require modelfunctions setfiledetails and write_file_with_audit to take self ↵Ted Trask2012-04-241-17/+2
| | | | parameter
* Made modelfunctions capitalize the startstop options, and now no need for a ↵Ted Trask2012-02-231-0/+4
| | | | custom view
* Changed startstop to be a standard form by creating two model functions and ↵Ted Trask2012-02-221-13/+20
| | | | deleting the special controller function
* Modified require statements for acf.xTed Trask2012-01-211-3/+3
|
* Update modelfunctions and viewfunctions to allow specifying option value and ↵Ted Trask2010-10-281-2/+8
| | | | label.
* Fix modelfunctions.write_file_with_audit to keep file permissions and ownership.Ted Trask2010-02-231-0/+1
|
* Changed status to use openrc status, changed startstop to enable all actions ↵root2009-06-041-8/+19
| | | | regardless of status.
* Updates for alpine 1.9 apk tools and openrc. Bug fix for format.lua ↵Ted Trask2009-05-261-3/+3
| | | | string_to_table.
* Changed os.rename to fs.move_file.Ted Trask2009-05-151-2/+1
|
* Changed the way startstop works in core to add a list of allowed actions. ↵ttrask2009-03-171-4/+9
| | | | | | Modified all ACFs that don't use the standard functions to work with new library method. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1730 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunction write_file_with_audit to create directory if missing.Ted Trask2009-01-161-0/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1681 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified fs.lua to survive nil parameters. Added create_directory and used ↵Ted Trask2009-01-131-1/+1
| | | | | | 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/core/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified mvc to create a stack of self pointers as controllers are created. ↵release-0.4.12Ted Trask2008-11-171-44/+61
| | | | | | Modelfunctions write_file_with_audit uses the stack to find self for auditing. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1595 ab2d0c66-481e-0410-8bed-d214d4d58bed
* per-controller auditing now allowed via acf-hooks.luaNathan Angelacos2008-11-091-7/+27
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1582 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added rc controller to alpine-baselayout and rc functionality to processinfo ↵Ted Trask2008-10-111-7/+9
| | | | | | library. Changed status Enabled/Disabled to Running/Stopped. Added links to status pages to install package and schedule autostart. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1552 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunctions library to include validation in get/setfiledetails. ↵Ted Trask2008-10-071-15/+48
| | | | | | Modified all uses to validate the file name - this was a major security hole. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunctions to allow for different init.d and process names.Ted Trask2008-10-031-4/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1540 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Auditing functions in placeNathan Angelacos2008-09-291-0/+34
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1536 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleanup of some libs.Ted Trask2008-09-261-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1533 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Moved procps and daemoncontrol functionality into processinfo.lua and ↵Ted Trask2008-09-251-4/+2
| | | | | | deleted procps.lua and daemoncontrol.lua. This saves space on the server. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1519 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed missing library in modelfunctions.Ted Trask2008-09-221-0/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1481 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified startstop to return string rather than boolean.Ted Trask2008-08-281-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1436 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunctios to add setfiledetails and add validation to ↵Ted Trask2008-07-111-2/+23
| | | | | | getfiledetils. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1297 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added errtxt to viewfunctions command result and added some validation code ↵Ted Trask2008-07-071-0/+24
| | | | | | to modelfunctions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1285 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed expert page to work when prefix or controller has magic characters. ↵Ted Trask2008-07-041-8/+7
| | | | | | Added public getenabled function to modelfunctions and made controllerfunctions work with it. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1273 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified core to create model and controller function libraries and some ↵Ted Trask2008-07-021-0/+62
common html views. Moved cfe to a library. Modified redirect_to_referrer function - may break some pages. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1267 ab2d0c66-481e-0410-8bed-d214d4d58bed