summaryrefslogtreecommitdiffstats
path: root/lib/format.lua
Commit message (Collapse)AuthorAgeFilesLines
* Moved non-ACF-specific libraries to acf-lib package, moved cfe_unpack ↵Ted Trask2009-12-311-512/+0
| | | | function to viewfunctions library.
* Added format.get_ini_entry to evaluate ini file entry value.Ted Trask2009-07-021-0/+27
|
* Revert mistaken bug fix to format.string_to_table and made corresponding ↵v0.6.1Ted Trask2009-06-301-6/+2
| | | | | | change to processinfo. Bumped version to 0.6.1. (reverted part of 9b934599d84f0b3dd32cda657790dc2c34bd95d8)
* Updates for alpine 1.9 apk tools and openrc. Bug fix for format.lua ↵Ted Trask2009-05-261-2/+6
| | | | string_to_table.
* 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
* use the lua module md5 rather than call external prog md5sumNatanael Copa2009-01-231-11/+0
| | | | 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-211-3/+9
| | | | | | 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
* 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 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 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
* Auditing functions in placeNathan Angelacos2008-09-291-16/+16
| | | | 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-291-1/+243
| | | | | | 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
* Cleanup of some libs.Ted Trask2008-09-261-15/+14
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1533 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
* Modified format library to operate on strings rather than files - makes it ↵Ted Trask2008-09-191-104/+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 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
* Added the full roles to the sessiondata.Mike Mason2008-02-051-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@696 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding the beingings of the authorization items. Also adding some of the ↵Mike Mason2008-02-041-1/+12
| | | | | | updates to the Autentication. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@689 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated the code to use md5sums in the acf passwd file. Made the ↵Mike Mason2008-01-301-1/+0
| | | | | | md5sum_string function(to go along with md5sum_file) in fs git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@665 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Change order of arguments inf table_to_string and string_to_tableNathan Angelacos2008-01-251-4/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@650 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changing password-model to use format. Adding function to format.Mike Mason2007-12-131-0/+13
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@423 ab2d0c66-481e-0410-8bed-d214d4d58bed
* More format libs like search_replace and such. All now documented on wikiMike Mason2007-12-061-19/+69
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@417 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Made validator functions useful after load, fixed a bug in format, changed ↵Mike Mason2007-12-051-0/+1
| | | | | | README to reflect changes git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@413 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added timezone information to date.lua. Added fs.file_write to be able to ↵Mike Mason2007-12-041-0/+9
| | | | | | add newlines at the end of the file(most strings don't have them) and also added a function to format.lua git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@408 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Put the cfe_unpack function in html. This helps with cfe troubleshooting. ↵Mike Mason2007-11-301-12/+0
| | | | | | | | | Should have been in html.lua in the first place. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@395 ab2d0c66-481e-0410-8bed-d214d4d58bed
* html.lua contains the cfe to specific html modules. Took out the table ↵Mike Mason2007-11-291-30/+1
| | | | | | function. html.lua being updated git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@388 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Lots of changes. fs.lua now only has file/filesystem functions. format.lua ↵Mike Mason2007-11-281-0/+119
added to be convert/sytle format changes. join.lua and split.lua put in format now. May delete later. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@385 ab2d0c66-481e-0410-8bed-d214d4d58bed