summaryrefslogtreecommitdiff
path: root/templates/trawl.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/trawl.template')
-rw-r--r--templates/trawl.template42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/trawl.template b/templates/trawl.template
new file mode 100644
index 0000000..7030756
--- /dev/null
+++ b/templates/trawl.template
@@ -0,0 +1,42 @@
+HTTP/1.0 200 OK
+Content-Type:text/html
+
+<html>
+<head>
+ <link rel="stylesheet" href="/platdoc/platter.css">
+ <title>distroplat - Content Trawler</title>
+</head>
+
+<script language="JavaScript">
+<!--
+
+ top.document.title = 'Content Trawler - distroplat';
+
+ function twat()
+ {
+ var risultato='';
+
+ for (var j=0; j < document.twatsource.elements.length; j++)
+ if (document.twatsource.elements[ j ].type == 'checkbox' && document.twatsource.elements[ j ].checked == true )
+ risultato += document.twatsource.elements[ j ].name + ',';
+
+ if ( risultato.length>0 )
+ {
+ document.twatform.hosts.value = risultato.slice(0,risultato.length-1);
+ document.twatform.submit();
+ }
+ else
+ alert( 'Please select some hosts to twat' );
+
+ }
+// -->
+</script>
+
+<body bgcolor="#%BGCOLOUR%" background="/platdoc/img/bars.png">
+<h3>Content Trawler</h3>
+<p>
+Use this to update a server's content. Choose servers from the list below and
+hit the button. Minimum time between trawls of a specific server is <b>%MINTRAWL% minutes</b>
+for the sake of the children.
+</p>
+<form name="twatform" method="GET"><input type="hidden" name="hosts" value=""></form>