diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-21 17:23:10 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-21 17:23:10 +0000 |
commit | 83f91021bea9203fa8fe0877846a299c296df97d (patch) | |
tree | 725c9e70a7b69da2ea655ebb4df511288286db98 /tinydns-controller.lua | |
parent | 5484e1fff4c4a8c9c2ae557a5c322f50299aae60 (diff) | |
download | acf-tinydns-83f91021bea9203fa8fe0877846a299c296df97d.tar.bz2 acf-tinydns-83f91021bea9203fa8fe0877846a299c296df97d.tar.xz |
Modified TinyDNS to include more intelligence. Changed listfiles and 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
Diffstat (limited to 'tinydns-controller.lua')
-rw-r--r-- | tinydns-controller.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tinydns-controller.lua b/tinydns-controller.lua index aa85efc..bcaffa4 100644 --- a/tinydns-controller.lua +++ b/tinydns-controller.lua @@ -37,6 +37,10 @@ function listfiles(self) return cfe({ type="list", value=config, label="Config files" }) end +function edit(self) + return editfile(self) +end + function editfile(self) config = controllerfunctions.handle_form(self, function() return self.model.get_filedetails(self, self.clientdata.filename, sessiondata.userinfo.userid) |