summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
Commit message (Collapse)AuthorAgeFilesLines
* Remove all calls to 'module' in preparation for move to Lua 5.2Ted Trask2013-10-211-23/+25
| | | | | Use mymodule parameter for module definition. This was also helpful in revealing places where the code relied on the global environment.
* Change use of require to work with Lua 5.2Ted Trask2013-10-091-4/+4
|
* Removed unneeded views by updating CFE for autoviewTed Trask2012-10-271-4/+4
|
* Use authenticator.get_subauth function rather than public auth variableTed Trask2012-10-261-8/+14
|
* Removed call to redirect_to_referrerTed Trask2012-08-151-7/+13
|
* Fixed bug with SRV records having Priority and Weight swappedTed Trask2012-06-211-1/+1
|
* Updated for handle_form now passing self to get and set functionsTed Trask2012-04-281-3/+3
|
* Started work on updating for acf-core-0.15Ted Trask2012-04-181-5/+9
| | | | | | Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
* Standalone A-entry should not be called 'Alias'. 'Alias' is generallyTimo Teräs2011-04-131-4/+4
| | | | used for CNAME records so that would be confusing.
* Modified permissions to work with acf-core-0.11.0Ted Trask2010-10-081-12/+8
|
* Sort the permissions alphabetically.Ted Trask2010-03-151-0/+2
|
* Sort domains.Ted Trask2010-03-041-0/+1
|
* Fixed bug displaying perms result, made auth field by prefix..controller.Ted Trask2010-01-041-9/+8
| | | | Plus, removed role sorting.
* Change processname to match prefix - this allows multiple instances without ↵Ted Trask2009-12-251-0/+6
| | | | editing.
* UI fix, bumped to 0.3.2v0.3.2Ted Trask2009-12-101-0/+6
|
* Finished support for SRV and NAPTR records. Bumped to 0.3.1v0.3.1Ted Trask2009-11-111-3/+3
|
* Added support for SRV and NAPTR records, some UI cleanup.Ted Trask2009-11-101-0/+4
|
* More work to remove unnecessary popen calls.Ted Trask2009-01-261-3/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1696 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added escapespecialcharacters to format.lua to escape shell special ↵Ted Trask2009-01-211-1/+1
| | | | | | 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/tinydns/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed tinydns bug caused by 1596 with write_file_with_audit, fixed bug in ↵Ted Trask2009-01-161-4/+3
| | | | | | creating file when directory missing. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1680 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified fs.lua to survive nil parameters. Added create_directory and used ↵Ted Trask2009-01-131-3/+3
| | | | | | 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/tinydns/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed access to APP from tinydns.Ted Trask2008-11-171-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1596 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Slight change to tinydns to be more flexible with naming.Ted Trask2008-11-101-8/+8
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1589 ab2d0c66-481e-0410-8bed-d214d4d58bed
* superuser commiting the conf.d stuff generates an auditNathan Angelacos2008-11-091-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1585 ab2d0c66-481e-0410-8bed-d214d4d58bed
* editor roles allow editing existing domains, but not creation of new domainsNathan Angelacos2008-11-091-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1584 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Minor change to roles code and major change to roles. Replaced ALL, CREATE, ↵Ted Trask2008-10-241-3/+4
| | | | | | 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/tinydns/trunk@1563 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified TinyDNS to include more intelligence. Changed listfiles and ↵Ted Trask2008-10-211-1/+4
| | | | | | newfile to not display / require directory. Made edit function in controller to allow control independent from expert. Modified edit to limit entries to the domain indicated by the file name. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1557 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified modelfunctions library to include validation in get/setfiledetails. ↵Ted Trask2008-10-071-18/+2
| | | | | | Modified all uses to validate the file name - this was a major security hole. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified format library. parse_configfile2, update_configfile2, ↵Ted Trask2008-10-031-2/+2
| | | | | | 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/tinydns/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified authenticator to make sub-authenticator visible rather that ↵Ted Trask2008-09-301-8/+8
| | | | | | redefining the functions twice. Modified roles and tinydns to reflect change. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1537 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed getopts library and added functionality to format library as ↵Ted Trask2008-09-291-3/+2
| | | | | | 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/tinydns/trunk@1535 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removed the languages and most error descriptions from validator.lua.Ted Trask2008-09-261-3/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1534 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified tinydns to fix an exception when saving file, fix scrolling to line ↵Ted Trask2008-09-031-1/+1
| | | | | | number, and HTML escape the filecontent. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1444 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed tinydns validation bugTed Trask2008-08-211-2/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1390 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Simply tinydns change to reflect change to roles library.Ted Trask2008-08-161-2/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1383 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified tinydns to add in role-based permissions.Ted Trask2008-07-251-10/+66
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1321 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Tinydns bug fixTed Trask2008-07-251-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1319 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified tinydns to remove dnsfiles from session and replace with calls to ↵Ted Trask2008-07-251-25/+90
| | | | | | authenticator. Added in pages for managing tinydns permissions. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1318 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified tinydns to implement access control.Ted Trask2008-07-231-25/+45
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1316 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modifed tinydns view to combine all record types, except for locations, and ↵Ted Trask2008-07-171-27/+14
| | | | | | display together. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1313 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified tinydns to use controllerfunctions, modelfunctions, common lsp ↵Ted Trask2008-07-081-79/+21
| | | | | | files, and new view without action functionality. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1290 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated tinydns as follows: Renames status to view and basicstatus to ↵Ted Trask2008-06-241-34/+39
| | | | | | | | status. Added ability to view individual config file / domain. Added link from view to edit actual line. Modified view. Updated jQuery to latest 1.2.6 git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1253 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified dns edit page to use javascriptTed Trask2008-06-191-3/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1220 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrite of tinydns to simplify code and use new cfe model.Ted Trask2008-06-181-521/+147
| | | | | | Added js to filter records. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1219 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Graphical bugfix - Modifying path to images.v0.2.3Mika Havela2008-05-221-15/+0
| | | | | | version bump on Makefiles git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1175 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Rewrote getopts.getoptsfromfile function to handle more complicated config ↵Ted Trask2008-05-071-4/+3
| | | | | | files and removed getopts.getoptsfromfile_onperline function git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Now you can delete config-files that you no longer want.Mika Havela2008-04-281-0/+14
| | | | | | Validation is done so you can't remove wrong files (but you can remove any file within /etc/tinydns/) git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1050 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Saving work for today.Mika Havela2008-04-261-0/+22
| | | | | | | | Create new configfile starts working. Delete configfile (work in progress - still not working). Added information on filesize/modifydate on each configfile. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1048 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaned up code. Added start/stop/restart buttons.Mika Havela2008-04-091-0/+9
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@979 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaning up the code.v0.1.1Mika Havela2008-04-081-218/+105
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@954 ab2d0c66-481e-0410-8bed-d214d4d58bed