From 8382f7ff7f1131a75331751afb12a00041e9eb91 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 17 Jan 2008 11:02:33 +0000 Subject: Some more information on status-page. Added include/exclude list to the config-page. git-svn-id: svn://svn.alpinelinux.org/acf/lbu/trunk@596 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lbu-config-html.lsp | 31 ++++++++++++++++++++++++++++++- lbu-model.lua | 22 +++++++++++++++++++++- lbu-status-html.lsp | 13 +++++++++++++ 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp index 095f6bc..2dba128 100644 --- a/lbu-config-html.lsp +++ b/lbu-config-html.lsp @@ -26,6 +26,35 @@ +

Include/exclude list

+
+
Included item(s)
+
+
+ +
+
Delete selected include-item
+
(see above)
+
+ +
+
Excluded item(s)
+
+
+ +
+
Delete selected exclude-item
+
(see above)
+
+

Security/Encryption

@@ -71,7 +100,7 @@ &1", "r") + if not (f) then return ciphers end + for line in f:lines() do + table.insert(incexl,tostring(line)) + end + f:close() + end + return incexl +end + -- ################################################################################ -- PUBLIC FUNCTIONS function getstatus () + local path = configfile local status = {} local statustxt = nil local lbustatus = list() if (#lbustatus == 0) then statustxt = "OK! (There is no uncommited files)" else - statustxt = "WARNING! (Until you commit, you will loose your changes at next reboot/shutdown!)" + statustxt = "WARNING! (Until you commit, you will lose your changes at next reboot/shutdown!)" end + local config = getopts.getoptsfromfile(path) + status["LBU_MEDIA"] = config["LBU_MEDIA"] + status["ENCRYPTION"] = config["ENCRYPTION"] + status["DEFAULT_CIPHER"] = config["DEFAULT_CIPHER"] status["version"] = get_version() status["status"] = statustxt return status @@ -83,6 +101,8 @@ function getconfig () table.insert(lbumedias, {name="floppy", value="floppy"}) table.insert(lbumedias, {name="usb", value="usb"}) config = getopts.getoptsfromfile(path) + config["lbu_included"]= getincexl("include") + config["lbu_excluded"]= getincexl("exclude") config["LBU_MEDIA_LIST"]= lbumedias config["DEFAULT_CIPHER_LIST"]= getciphers() -- config["debug"] = getciphers() diff --git a/lbu-status-html.lsp b/lbu-status-html.lsp index fad2b2a..b7cd769 100644 --- a/lbu-status-html.lsp +++ b/lbu-status-html.lsp @@ -14,6 +14,19 @@

PROGRAM SPECIFIC OPTIONS/INFORMATION

+ +
+
Archives will be saved to
+
+
+ + + +
+
Archives will be encrypted
+
yes (Using cipher: )
+
+
Files changed since last commit
-- cgit v1.2.3