summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Modified roles and authenticator to delete all data fields when deleting a ↵Ted Trask2008-08-163-14/+58
| | | | | | role or user. Modified all roles code to pass self for future move from text file to database. Roles cannot use authenticator unless or until roles file syntax is changed. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1382 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified roles to list views that don't have actions in the list of ↵Ted Trask2008-08-091-1/+10
| | | | | | available permissions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1374 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified getopts to allow writing to blank files and adding in a missing ↵Ted Trask2008-08-041-2/+7
| | | | | | section. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1371 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified authenticator to allow reading/writing role-based options. ↵Ted Trask2008-07-253-5/+64
| | | | | | Modified viewfunctions to display multi values that are not in options. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1320 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Another rewrite of validator to remove dnsfiles and add a generic way for ↵Ted Trask2008-07-243-98/+128
| | | | | | other controllers to save user-based settings. Also added fs.create_file function. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1317 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated validator to make change_setting work.Ted Trask2008-07-231-6/+5
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1315 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Split common code out of authenticator-plaintext into authenticator.lua in ↵Ted Trask2008-07-223-300/+321
| | | | | | preparation for adding SQL authentication. Rewrote authentication functions to use cfe's. Made corresponding changes to roles and logon. Added dnsfiles field to userdata for tinydns access control. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1314 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added getsection and setsection functions to getopts library.Ted Trask2008-07-161-0/+82
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1310 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified apk.lua to maintain a repository, saving time when multiple calls ↵Ted Trask2008-07-141-42/+108
| | | | | | are made. Changed function names and added repository and is_installed functions. Available also compares installed versus repository versions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1300 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed redirect_to_referrer with GET data. Moved handling of multi select ↵Ted Trask2008-07-121-16/+45
| | | | | | from acf_www-controller to controllerfunctions. Fixed form ids containing '.'. Added new handle_clientdata function to controllerfunctions. Modified password-controller to use handle_clientdata for multi select to work.k git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1299 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 finishingorder to displayform in viewfunctions to specify fields that ↵Ted Trask2008-07-102-2/+24
| | | | | | go at the end. Fixed bug in getopts that ignored the last line if no trailing carriage return. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1294 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added errtxt to viewfunctions command result and added some validation code ↵Ted Trask2008-07-072-1/+27
| | | | | | to modelfunctions. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1285 ab2d0c66-481e-0410-8bed-d214d4d58bed