diff --git a/cgi/lconline/check.js b/cgi/lconline/check.js new file mode 100644 index 00000000..7cd33665 --- /dev/null +++ b/cgi/lconline/check.js @@ -0,0 +1,22 @@ +// check url validity +function isValid (thisForm) { + if (thisForm.url.value=="" || thisForm.url.value=="http://") { + alert(gettext("Empty URL was given.")); + thisForm.url.select(); + thisForm.url.focus(); + return false; + } + if (!checkSyntax(thisForm.url.value)) { + alert(gettext("Invalid URL was given.")); + thisForm.url.select(); + thisForm.url.focus(); + return false; + } + return true; +} + +// check url syntax +function checkSyntax (url) { + var syntax = /^https?:\/\/[-a-zA-Z.\/=%?~]+$/; + return syntax.test(url); +} diff --git a/cgi/lconline/index.html b/cgi/lconline/index.html new file mode 100644 index 00000000..02635051 --- /dev/null +++ b/cgi/lconline/index.html @@ -0,0 +1,11 @@ +
+++ diff --git a/cgi/lconline/lc_cgi.html.en b/cgi/lconline/lc_cgi.html.en new file mode 100644 index 00000000..56e699e2 --- /dev/null +++ b/cgi/lconline/lc_cgi.html.en @@ -0,0 +1,72 @@ + +
++ diff --git a/cgi/lconline/leer.html.de b/cgi/lconline/leer.html.de new file mode 100644 index 00000000..7f5cccd7 --- /dev/null +++ b/cgi/lconline/leer.html.de @@ -0,0 +1,9 @@ + +