summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed obsolete functions displayinfo and displaymanagement from viewfunctions.Ted Trask2009-07-101-85/+0
| | | | Functions only used in acf-gnats, which is also obsolete.
* Added format.get_ini_entry to evaluate ini file entry value.Ted Trask2009-07-021-0/+27
|
* Removed uncessary (since openrc) sleep that was slowing down many pages.Ted Trask2009-07-021-1/+0
|
* Revert mistaken bug fix to format.string_to_table and made corresponding ↵v0.6.1Ted Trask2009-06-302-8/+4
| | | | | | change to processinfo. Bumped version to 0.6.1. (reverted part of 9b934599d84f0b3dd32cda657790dc2c34bd95d8)
* Bumped revision to 0.5.0v0.5.0root2009-06-041-0/+2
|
* Changed status to use openrc status, changed startstop to enable all actions ↵root2009-06-043-22/+23
| | | | regardless of status.
* Modified copy_file and move_file to overwrite existing file, only fail if ↵Ted Trask2009-05-271-4/+4
| | | | existing directory.
* Updates for alpine 1.9 apk tools and openrc. Bug fix for format.lua ↵Ted Trask2009-05-264-70/+77
| | | | string_to_table.
* Changed os.rename to fs.move_file.Ted Trask2009-05-151-2/+1
|
* Added fs.move_file function because os.rename only works on same device.Ted Trask2009-05-151-0/+22
|
* Set permissions 600 on passwd and roles file if creating them.ttrask2009-03-191-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1734 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed the way startstop works in core to add a list of allowed actions. ↵ttrask2009-03-173-14/+21
| | | | | | 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
* Reverted 1710 and 1712 mistaken updates to core. Release never used.v0.4.21ttrask2009-02-271-4/+0
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1714 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed bug in parse_configfile.ttrask2009-02-261-0/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1710 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed bug in fs.find_files_as_array.Ted Trask2009-01-301-3/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1698 ab2d0c66-481e-0410-8bed-d214d4d58bed
* More work to remove unnecessary popen calls.Ted Trask2009-01-261-5/+18
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1696 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Started process of removing as many io.popen calls as possible. Not complete.Ted Trask2009-01-244-61/+68
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1695 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modifed fs.lua to remove unnecessary calls to io.popen.Ted Trask2009-01-231-19/+8
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1694 ab2d0c66-481e-0410-8bed-d214d4d58bed
* use posix.mkdir() to create dirs recursivelyNatanael Copa2009-01-231-4/+7
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1693 ab2d0c66-481e-0410-8bed-d214d4d58bed
* use the lua module md5 rather than call external prog md5sumNatanael Copa2009-01-232-13/+3
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1690 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added escapespecialcharacters to format.lua to escape shell special ↵release-0.4.19Ted Trask2009-01-217-21/+37
| | | | | | characters. Reviewed all calls to io.popen and os.execute to escape special characters. Fixed file uploads in openssl and ipsectools with viewfunctions.lua. Tried to fix openssl renew when subject contains special characters, but not done yet. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Tested by removing expected packages, files, and directories. Fixed ↵Ted Trask2009-01-161-1/+1
| | | | | | resulting bugs. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1683 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 html.lua and viewlibrary.lua and all html files to html_escape ↵Ted Trask2009-01-152-31/+34
| | | | | | variables before displaying them. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified fs.lua to survive nil parameters. Added create_directory and used ↵Ted Trask2009-01-135-22/+50
| | | | | | 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 several pages to replace contenteditable with readonly. Added ↵Ted Trask2009-01-121-2/+2
| | | | | | readonly to html.lsp and .css files. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1676 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Further modifications to session.lua to prevent writing session if session ↵Ted Trask2008-12-311-21/+31
| | | | | | data didn't change. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1657 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Workaround in session.lua for simultaneous access with same session id ↵Ted Trask2008-12-311-6/+24
| | | | | | resulting in clearing the session data. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1656 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format string_to_table so didn't crash when passed nil.release-0.4.17Ted Trask2008-12-271-16/+18
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1653 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format.lib to pass in comment characters to parse_lines, ↵release-0.4.14Ted Trask2008-11-251-22/+24
| | | | | | parse_linesandwords, and parse_configfile. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1610 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified processinfo to fix problem with detecting pid file. It now also ↵release-0.4.13Ted Trask2008-11-201-1/+13
| | | | | | checks for matching proc directory. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1604 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added a missing require("fs") to processinfoNatanael Copa2008-11-201-0/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1602 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
* Fixed bug in authenticator-plaintext that erased user data from other fields ↵Ted Trask2008-11-111-2/+8
| | | | | | when saving user data. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1594 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaned up package path code in roles.Ted Trask2008-11-111-3/+3
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1593 ab2d0c66-481e-0410-8bed-d214d4d58bed
* roles in permissions needed to look for _ in controllers as wellNathan Angelacos2008-11-111-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1592 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Allow controllers to have digits in their namesNathan Angelacos2008-11-111-6/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1591 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified processinfo to make pidof check for a .pid file in /var/run.Ted Trask2008-11-101-1/+12
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1588 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format to add escapemagiccharacter functions to escape Lua magic ↵Ted Trask2008-11-101-0/+4
| | | | | | characters in a string. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1587 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to allow '_' in controller names.Ted Trask2008-11-101-6/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1586 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
* Minor change to roles code and major change to roles. Replaced ALL, CREATE, ↵Ted Trask2008-10-242-34/+37
| | | | | | READ, UPDATE, and DELETE with GUEST, USER, EDITOR, EXPERT, and ADMIN. Changed all roles files and modified some html files to hide options without permissions. Determine default roles from roles files, rather than hard-coded, and added ability to modify default roles by adding permissions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1563 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed minor bug with displayformitem in viewfunctions.Ted Trask2008-10-231-4/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1562 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified viewfunctions displaycommandresults to not delete the error results ↵Ted Trask2008-10-221-5/+10
| | | | | | of a form so the form can still display it. Modified a bunch of views to display the results of component forms. Also added code to displayform and displayformstart to automatically generate the action if passed page_info. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1561 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified viewfunctions to split displayform, creating displayformstart and ↵Ted Trask2008-10-222-12/+38
| | | | | | 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/core/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added rc controller to alpine-baselayout and rc functionality to processinfo ↵Ted Trask2008-10-112-10/+87
| | | | | | 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
* Modified format library. parse_configfile2, update_configfile2, ↵Ted Trask2008-10-031-38/+26
| | | | | | get_section, and set_section became parse_ini_file, update_ini_file, get_ini_section, and set_ini_section. Updated all code that used these functions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified authenticator to make sub-authenticator visible rather that ↵Ted Trask2008-09-302-115/+17
| | | | | | redefining the functions twice. Modified roles and tinydns to reflect change. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1537 ab2d0c66-481e-0410-8bed-d214d4d58bed