diff options
Diffstat (limited to 'openvpn-unknown_config-html.lsp')
-rw-r--r-- | openvpn-unknown_config-html.lsp | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/openvpn-unknown_config-html.lsp b/openvpn-unknown_config-html.lsp index 302ea56..db577a7 100644 --- a/openvpn-unknown_config-html.lsp +++ b/openvpn-unknown_config-html.lsp @@ -4,11 +4,33 @@ <h1>Configuration file '<?= view.configfilecontent.name ?>'</h1> <? --[[ DEBUG INFORMATION...?> -<h2>DEUB INFO</h2> +<span style='color:#D2691E;font-family:courier;'>------------ START DEBUG INFORMATION ------------ +<h3>THIS VIEW CONTAINS THE FOLLOWING VARIABLES/TABLES</h2> <? -for a,b in pairs(view.configfilecontent.filedetails) do -print ("<b>" .. a .. "</b>: >" .. b .. "<<BR>") +--print ("<span style='color:darkblue;font-family:courier;'>") +for a,b in pairs(view) do + if not (type(b) == "table") then + print ("<b>" .. a .. "</b>: ><span2 style='color:black'>" .. b .. "</span2><<BR>") + else + print ("<b>" .. a .. "</b>:...<BR>") + for c,d in pairs(view[a]) do + if not (type(d) == "table") then + print ("<b> { " .. c .. "</b>: ><span2 style='color:black'>" .. d .. "</span2>< <B> }</B><BR>") + else + print ("<b> { " .. c .. "</b>:...<BR>") + for e,f in pairs(view[a][c]) do + if not (type(f) == "table") then + print ("<b> { { " .. e .. "</b>: ><span2 style='color:black'>" .. f .. "</span2>< <B> } }</B><BR>") + else + print ("<b> { { " .. e .. "</b>:... (table is not visible at the moment)<BR>") + end + end + end + end + end +a,b,c,d,e,f,g,h,i,j = nil,nil,nil,nil,nil,nil,nil,nil,nil,nil end +print ("------------ END DEBUG INFORMATION ------------</span>") ?> <? --]] ?> @@ -23,19 +45,13 @@ end <dt>Last modified</dt> <dd><?= view.configfilecontent.filedetails.mtimelong ?></dd> +<dt>This config looks like a</dt> +<dd><a href="<?= view.url ?>/<?= view.configfilecontent.type ?>_config?name=<?= view.configfilecontent.name ?>"><?= view.configfilecontent.type ?></a> config</a></dd> -<h2>Controlpanel</h2> - -<dt>View this as it was a</dt> -<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.linkname ?>">client config</a></dd> - -<h2>Details</h2> +<h2>Content</h2> <form name="myform" action="" method="POST"> -<input name="name" type="hidden" value="<?= view.configfilecontent.linkname ?>" style="width:100%"> +<input name="name" type="hidden" value="<?= view.configfilecontent.name ?>" style="width:100%"> <textarea name="modifications" style="width:100%;height:400px;"><?= view.configfilecontent.value ?></textarea> <input type="submit" name="cmd" value="update"></form> |