summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Auditing functions in placeNathan Angelacos2008-09-292-16/+50
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1536 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed getopts library and added functionality to format library as ↵Ted Trask2008-09-295-326/+244
| | | | | | opts_to_table, table_to_opts, parse_configfile2, update_configfile2, get_section, and set_section. New functions work on strings, not files. Modified all code using getopts to use format instead. Fixed nil string bugs in TCPProxy. Fixed forward only bug in DNSCache. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1535 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed the languages and most error descriptions from validator.lua.Ted Trask2008-09-261-72/+19
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1534 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleanup of some libs.Ted Trask2008-09-268-40/+25
| | | | 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-256-110/+103
| | | | | | 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
* Moved cfe into mvc.lua and removed cfe.lua.Ted Trask2008-09-254-18/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1518 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed unused libraries debugs, web_elements, privsep, ipcalc.Ted Trask2008-09-251-3/+0
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1517 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed unused libraries debugs, web_elements, privsep, ipcalc.Ted Trask2008-09-254-337/+0
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1516 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed split and join libraries. Join is handled by table.concat. Split ↵Ted Trask2008-09-254-66/+1
| | | | | | is handled by format.string_to_table. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1515 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Workaround in fs.lua for exception caused by posix.files when directory ↵Ted Trask2008-09-241-6/+8
| | | | | | doesn't exist. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1491 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added parse_configfile function to format.lua library.Ted Trask2008-09-241-0/+12
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1488 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 format library to operate on strings rather than files - makes it ↵Ted Trask2008-09-193-184/+160
| | | | | | more flexible. Removed dependencies and unnecessary _to_string functions - use table.concat instead. Changed remove_blanks_comments to parse_lines. Added parse_linesandwords, replace_line, insert_line, and get_line functions from parser.lua and removed parser.lua. Made slight changes to squid and devtools to reflect library changes. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1479 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added parser library. Display filecontent descr in filedetails.Ted Trask2008-09-182-0/+80
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1474 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added expand_bash_syntax_vars functionNathan Angelacos2008-09-171-0/+24
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1473 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 validator to not allow '/' characters when checking ↵Ted Trask2008-08-201-1/+1
| | | | | | is_valid_filename with a path restriction. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1387 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to use authenticator rather than directly access roles file. ↵Ted Trask2008-08-182-36/+49
| | | | | | This will facilitate moving roles and passwd to a database. Had to allow roles file to use : instead of = git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1384 ab2d0c66-481e-0410-8bed-d214d4d58bed