diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-11-29 20:10:01 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-11-29 20:10:01 +0000 |
commit | d344c8b256dea3891578341906bb8d20ec6a83f8 (patch) | |
tree | 6ab28576b3364c2401bc39d4419252d6eced3b1e /openvpn-unknown_config-html.lsp | |
parent | 2fc04ea00f5a35d751455ab4c70a032749408d0b (diff) | |
download | acf-openvpn-d344c8b256dea3891578341906bb8d20ec6a83f8.tar.bz2 acf-openvpn-d344c8b256dea3891578341906bb8d20ec6a83f8.tar.xz |
Reorganazing code
git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@390 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openvpn-unknown_config-html.lsp')
-rw-r--r-- | openvpn-unknown_config-html.lsp | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/openvpn-unknown_config-html.lsp b/openvpn-unknown_config-html.lsp index 03435f8..302ea56 100644 --- a/openvpn-unknown_config-html.lsp +++ b/openvpn-unknown_config-html.lsp @@ -3,17 +3,42 @@ <body> <h1>Configuration file '<?= view.configfilecontent.name ?>'</h1> +<? --[[ DEBUG INFORMATION...?> +<h2>DEUB INFO</h2> +<? +for a,b in pairs(view.configfilecontent.filedetails) do +print ("<b>" .. a .. "</b>: >" .. b .. "<<BR>") +end +?> +<? --]] ?> + +<h2>Details</h2> + +<dt>File name</dt> +<dd><?= view.configfilecontent.filedetails.longname ?></dd> + +<dt>File size</dt> +<dd><?= view.configfilecontent.filedetails.size ?></dd> + +<dt>Last modified</dt> +<dd><?= view.configfilecontent.filedetails.mtimelong ?></dd> + + <h2>Controlpanel</h2> <dt>View this as it was a</dt> -<dd><a href="<?= view.url ?>/server_config?name=<?= view.configfilecontent.shortname ?>">server config</a></dd> +<dd><a href="<?= view.url ?>/server_config?name=<?= view.configfilecontent.linkname ?>">server config</a></dd> <dt>View this as it was a</dt> -<dd><a href="<?= view.url ?>/client_config?name=<?= view.configfilecontent.shortname ?>">client config</a></dd> +<dd><a href="<?= view.url ?>/client_config?name=<?= view.configfilecontent.linkname ?>">client config</a></dd> <h2>Details</h2> -<textarea name="" style="width:100%;height:450px;"><?= view.configfilecontent.value ?></textarea> +<form name="myform" action="" method="POST"> +<input name="name" type="hidden" value="<?= view.configfilecontent.linkname ?>" style="width:100%"> +<textarea name="modifications" style="width:100%;height:400px;"><?= view.configfilecontent.value ?></textarea> + +<input type="submit" name="cmd" value="update"></form> </body> </html> |