$SIG{__WARN__} = sub {$ND::ERROR .= p $_[0]};
-chdir '/var/www/ndawn/code';
+chdir '/var/www/ndawn';
sub handler {
my $r = shift;
Deny from all
</Location>
- PerlSwitches -T -I/var/www/ndawn/code/
- PerlRequire /var/www/ndawn/code/startup.pl
+ PerlSwitches -T -I/var/www/ndawn/
+ PerlRequire /var/www/ndawn/startup.pl
<Location ~ "^/((\w+\.(pl|php|pm))|[^.]*)$">
SetHandler perl-script
PerlResponseHandler ND
+++ /dev/null
-body,html {
- color: black;
- background-color: #D9D9D9;
- font-family: sans-serif;
-}
-#body {
- padding-left: 15em;
- /*padding-right: 12em;*/
-}
-#leftbar,#rightbar{
- padding: 0;
- margin: 0;
- position: absolute;
- width: 14em;
- top: 1em;
-}
-#leftbar{
- left: 1em;
-}
-#rightbar{
- right: 1em;
-}
-
-legend {
- color: black;
- background: white;
- border-style: solid;
- border-width: 1px;
- padding: 1px;
-}
-table.boards td {
- /*border-style: solid;
- border-width: 1px;*/
- padding: 2px;
- border-collapse: separate;
- border-spacing: 15pt;
- font-size: larger;
-}
-table.boards td.sticky {
- font-weight: bold;
-}
-table.boards{
- border-collapse: separate;
- border-spacing: 5px;
-}
-table.boards th {
- font-size: larger;
-}
-
-table.boards a, table.stats a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-fieldset.forum-post {
- clear: both;
- width: 40em;
- padding: 5px;
-}
-fieldset.forum-post legend b {
- font-size: larger;
-}
-div.leftinfo{
- float: left;
- padding-right: 2em;
-}
-
-fieldset {
- display: block;
- clear: left;
-}
-p.claimlinks{
- clear: both;
-}
-
-ul.linkbar {
- list-style-type: none;
- width: 13.5em;
- padding: 0;
- margin: 0;
-}
-ul.linkbar li {
- background: white;
- color: black;
- margin: 0.5em 0;
- padding: 0.3em;
- /*border-right: 1em solid black;*/
-}
-ul.linkbar a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-input.coordsinput {
- width: 4em;
-}
-input.small {
- width: 1.7em;
-}
-tr.odd {
- background: white;
- color: black;
-}
-tr.total {
- background: black;
- color: red;
-}
-
-td.ingal{
- background: blue;
- color: black;
-}
-td.Defend{
- background: green;
- color: black;
-}
-td.AllyDef{
- background: #00FF00;
- color: black;
-}
-td.Attack{
- background: red;
- color: black;
-}
-
-a.Unclaim{
- color: green;
-}
-input.Unclaim{
- background: green;
-}
-a.Claim{
- color: blue;
-}
-a.Join{
- color: #00AAAA;
-}
-input.Join{
- background: #00AAAA;
-}
-
-td.Friendly{
- background: green;
- color: black;
-}
-td.Friendly a{
- color: yellow;
- background: green;
-}
-td.Hostile{
- background: red;
- color: black;
-}
-td.NAP{
- background: blue;
- color: white;
-}
-td.NAP a{
- color: yellow;
- background: blue;
-}
-table.old{
- border: outset 1pt;
- border-collapse: separate;
- border-color: red;
-}
-
-table.closedPlanet{
- border: outset 2pt;
- border-collapse: separate;
- border-color: red;
-}
-li.bash{
- color: #FF9933;
-}
-div.clear {
- clear: both;
- height: 0;
- margin: 0;
- padding: 0;
- line-height: 0.0;
- font-size: 1px;
-}
-
-table.stats tr td{
- padding-left: 0.5em;
-}
-
-td.LowestPrio{
- background: red;
- color: black;
-}
-td.MediumPrio{
- background: yellow;
- color: black;
-}
-td.MediumPrio a{
- background: yellow;
- color: black;
-}
-td.HighestPrio{
- background: green;
- color: black;
-}
-span.newposts,span.unreadposts {
- font-weight: bold;
-}
-span.newposts {
- color: red;
-}
-
-div.bbcode-quote,div.bbcode-code {
- border: solid;
- border-width: 1px;
- MARGIN: 5px 15px 15px 15px; PADDING: 8px;
- line-height: 1.4;
-}
-div.bbcode-quote-head,div.bbcode-code-head {
- font-weight: bold;
-}
-
-fieldset.incluster {
- border: solid;
- border-width: 2px;
- border-color: red;
-}
--- /dev/null
+body,html {
+ color: black;
+ background-color: #D9D9D9;
+ font-family: sans-serif;
+}
+#body {
+ padding-left: 15em;
+ /*padding-right: 12em;*/
+}
+#leftbar,#rightbar{
+ padding: 0;
+ margin: 0;
+ position: absolute;
+ width: 14em;
+ top: 1em;
+}
+#leftbar{
+ left: 1em;
+}
+#rightbar{
+ right: 1em;
+}
+
+legend {
+ color: black;
+ background: white;
+ border-style: solid;
+ border-width: 1px;
+ padding: 1px;
+}
+table.boards td {
+ /*border-style: solid;
+ border-width: 1px;*/
+ padding: 2px;
+ border-collapse: separate;
+ border-spacing: 15pt;
+ font-size: larger;
+}
+table.boards td.sticky {
+ font-weight: bold;
+}
+table.boards{
+ border-collapse: separate;
+ border-spacing: 5px;
+}
+table.boards th {
+ font-size: larger;
+}
+
+table.boards a, table.stats a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+fieldset.forum-post {
+ clear: both;
+ width: 40em;
+ padding: 5px;
+}
+fieldset.forum-post legend b {
+ font-size: larger;
+}
+div.leftinfo{
+ float: left;
+ padding-right: 2em;
+}
+
+fieldset {
+ display: block;
+ clear: left;
+}
+p.claimlinks{
+ clear: both;
+}
+
+ul.linkbar {
+ list-style-type: none;
+ width: 13.5em;
+ padding: 0;
+ margin: 0;
+}
+ul.linkbar li {
+ background: white;
+ color: black;
+ margin: 0.5em 0;
+ padding: 0.3em;
+ /*border-right: 1em solid black;*/
+}
+ul.linkbar a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+input.coordsinput {
+ width: 4em;
+}
+input.small {
+ width: 1.7em;
+}
+tr.odd {
+ background: white;
+ color: black;
+}
+tr.total {
+ background: black;
+ color: red;
+}
+
+td.ingal{
+ background: blue;
+ color: black;
+}
+td.Defend{
+ background: green;
+ color: black;
+}
+td.AllyDef{
+ background: #00FF00;
+ color: black;
+}
+td.Attack{
+ background: red;
+ color: black;
+}
+
+a.Unclaim{
+ color: green;
+}
+input.Unclaim{
+ background: green;
+}
+a.Claim{
+ color: blue;
+}
+a.Join{
+ color: #00AAAA;
+}
+input.Join{
+ background: #00AAAA;
+}
+
+td.Friendly{
+ background: green;
+ color: black;
+}
+td.Friendly a{
+ color: yellow;
+ background: green;
+}
+td.Hostile{
+ background: red;
+ color: black;
+}
+td.NAP{
+ background: blue;
+ color: white;
+}
+td.NAP a{
+ color: yellow;
+ background: blue;
+}
+table.old{
+ border: outset 1pt;
+ border-collapse: separate;
+ border-color: red;
+}
+
+table.closedPlanet{
+ border: outset 2pt;
+ border-collapse: separate;
+ border-color: red;
+}
+li.bash{
+ color: #FF9933;
+}
+div.clear {
+ clear: both;
+ height: 0;
+ margin: 0;
+ padding: 0;
+ line-height: 0.0;
+ font-size: 1px;
+}
+
+table.stats tr td{
+ padding-left: 0.5em;
+}
+
+td.LowestPrio{
+ background: red;
+ color: black;
+}
+td.MediumPrio{
+ background: yellow;
+ color: black;
+}
+td.MediumPrio a{
+ background: yellow;
+ color: black;
+}
+td.HighestPrio{
+ background: green;
+ color: black;
+}
+span.newposts,span.unreadposts {
+ font-weight: bold;
+}
+span.newposts {
+ color: red;
+}
+
+div.bbcode-quote,div.bbcode-code {
+ border: solid;
+ border-width: 1px;
+ MARGIN: 5px 15px 15px 15px; PADDING: 8px;
+ line-height: 1.4;
+}
+div.bbcode-quote-head,div.bbcode-code-head {
+ font-weight: bold;
+}
+
+fieldset.incluster {
+ border: solid;
+ border-width: 2px;
+ border-color: red;
+}
--- /dev/null
+function getHTTPObject() {
+ var xmlhttp;
+ /*@cc_on
+ @if (@_jscript_version >= 5)
+ try {
+ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ try {
+ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
+ } catch (E) {
+ xmlhttp = false;
+ }
+ }
+ @else
+ xmlhttp = false;
+ @end @*/
+
+ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
+ try {
+ xmlhttp = new XMLHttpRequest();
+ } catch (e) {
+ xmlhttp = false;
+ }
+ }
+ return xmlhttp;
+}
+
+var modified = '_';
+
+function claim(dataSource, target, wave,cmd){
+ var HTTP = getHTTPObject();
+ if(HTTP) {
+ var url = dataSource + '&cmd='+cmd+'&target=' + target + '&wave=' + wave + '&rand='+ Math.random();
+ //obj.innerHTML = "test";
+ HTTP.open("GET", url,true);
+ HTTP.onreadystatechange = function(){
+ if (HTTP.readyState == 4 &&
+ HTTP.status == 200) {
+ updateClaims(dataSource,HTTP.responseXML,false);
+ var obj = document.getElementById("targets");
+ if (obj){
+ clearObject(obj);
+ var re = new RegExp("targetlist>((.|\\n)*)</targetlist");
+ if(re.test(HTTP.responseText))
+ obj.innerHTML = RegExp.$1;
+ }
+ }
+ }
+ HTTP.send(null);
+ }
+}
+
+function clearObject(obj){
+ while (obj.hasChildNodes()){
+ obj.removeChild(obj.firstChild);
+ }
+}
+
+function listTargets(dataSource){
+ var http = getHTTPObject();
+ http.open("GET",dataSource+'&cmd=gettargets' + '&rand='+ Math.random(),true);
+ http.onreadystatechange = function(){
+ if (http.readyState == 4 &&
+ http.status == 200) {
+ var obj = document.getElementById("targets");
+ if (obj){
+ clearObject(obj);
+ var re = new RegExp("targetlist>((.|\\n)*)</targetlist");
+ if(re.test(http.responseText))
+ obj.innerHTML = RegExp.$1;
+ }
+ }
+ }
+ http.send(null);
+}
+
+function update(dataSource){
+ var HTTP = getHTTPObject();
+ if(HTTP) {
+ HTTP.open("GET",dataSource+"&cmd=update&from="+modified + '&rand='+ Math.random(),true);
+ HTTP.onreadystatechange = function(){
+ if (HTTP.readyState == 4 &&
+ HTTP.status == 200) {
+ updateClaims(dataSource,HTTP.responseXML,true);
+ }
+ }
+ HTTP.send(null);
+ }
+}
+
+function updateClaims(dataSource,xmlthingy,timestamp){
+ var targets = xmlthingy.getElementsByTagName("target");
+ for (var i = 0; i < targets.length; i++){
+ var target = targets[i].attributes.getNamedItem("id").nodeValue;
+ var obj = document.getElementById("claim"+target);
+ if (!obj)
+ continue;
+ //obj.innerHTML = '';
+ clearObject(obj);
+ var waves = targets[i].getElementsByTagName("wave");;
+ for (var j = 0; j < waves.length; j++){
+ var command = waves[j].getElementsByTagName("command")[0];
+ var claimers = waves[j].getElementsByTagName("claimers")[0];
+ var joinable = waves[j].getElementsByTagName("joinable")[0];
+ var wave = waves[j].attributes.getNamedItem("id").nodeValue;
+ command = command.firstChild.nodeValue;
+ if(claimers.firstChild){
+ claimers = '('+claimers.firstChild.nodeValue+')';
+ }else
+ claimers = '';
+ joinable = joinable.firstChild.nodeValue;
+
+ if (command == 'none'){
+ var s = document.createElement("b");
+ s.appendChild(document.createTextNode("Claimed by "+claimers));
+ obj.appendChild(s);
+ }else{
+ var b = document.createElement("input");
+ b.type = 'button';
+ b.setAttribute("class", command);
+ b.value = command +' wave '+wave+' '+claimers;
+ b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
+ /*b.onclick = function(){
+ claim(dataSource,t,wave,command);
+ }*/
+ obj.appendChild(b);
+ }
+ if (command == 'Unclaim'){
+ var b = document.createElement("input");
+ b.type = 'button';
+ b.value = 'J';
+ b.title = 'Make target joinable';
+ command = 'set&joinable=TRUE';
+ if (joinable == 1){
+ b.value = 'N';
+ b.title = 'Disable join';
+ command = 'set&joinable=FALSE';
+ }
+ b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
+ obj.appendChild(b);
+ }
+ /*@cc_on
+ obj.innerHTML = obj.innerHTML; // IE doesn't understand unless you tell it twice
+ @*/
+ }
+ /*
+ obj = document.getElementById("coords"+target);
+ var coords = targets[i].getElementsByTagName("coords");;
+ if (obj)
+ obj.innerHTML = coords[0].firstChild.nodeValue;
+ */
+ }
+ if (timestamp){
+ timestamp = xmlthingy.getElementsByTagName("timestamp");
+ if (timestamp)
+ modified = timestamp[0].firstChild.nodeValue;
+ }
+}
--- /dev/null
+body,html,table,div {
+ font-family: sans-serif;
+ font-size: 11px;
+ color: #B2B2B2;
+ background-color: black;
+}
+
+textarea, input{
+ font-size: 11px;
+}
+
+a {
+ color: white;
+ text-decoration:underline;
+}
+a:hover, td.NAP a:hover {
+ color: black;
+ background: white;
+}
+
+input,textarea,select {
+ color: black;
+ background: #B2B2B2;
+}
+
+img.graph {
+ background: gray;
+}
+
+td.sticky {
+ font-weight: bold;
+}
+
+
+legend {
+ color: black;
+ background: gray;
+}
+
+ul.linkbar li {
+ background: gray;
+ color: black;
+ margin: 0.5em 0;
+ padding: 0.3em;
+ /*border-right: 1em solid black;*/
+}
+
+
+tr.even {
+ background: #B2B2B2;
+ color: black;
+}
+tr.odd {
+ background: gray;
+ color: black;
+}
+tr.total {
+ background: black;
+ color: red;
+}
+
+td.ingal{
+ background: blue;
+ color: black;
+}
+td.Defend{
+ background: green;
+ color: black;
+}
+td.AllyDef{
+ background: #00FF00;
+ color: black;
+}
+td.Attack{
+ background: red;
+ color: black;
+}
+
+a.Unclaim{
+ color: green;
+}
+input.Unclaim{
+ background: green;
+}
+a.Claim{
+ color: blue;
+}
+a.Join{
+ color: #00AAAA;
+}
+input.Join{
+ background: #00AAAA;
+}
+
+td.Friendly{
+ background: green;
+ color: black;
+}
+td.Friendly a{
+ color: yellow;
+ background: green;
+}
+td.Hostile{
+ background: red;
+ color: black;
+}
+
+td.LowestPrio{
+ background: red;
+ color: black;
+}
+td.MediumPrio{
+ background: yellow;
+ color: black;
+}
+td.HighestPrio{
+ background: green;
+ color: black;
+}
--- /dev/null
+body,html
+{
+ font-size: medium;
+ color: gray;
+ font-family: Arial;
+ background-color: #f5f5f5;
+}
+#leftbar, #rightbar
+{
+ padding-right: 0px;
+ padding-left: 0px;
+ font-weight: bold;
+ padding-bottom: 0px;
+ margin: 0px;
+ width: 14em;
+ color: olive;
+ padding-top: 0px;
+ position: absolute;
+ top: 1em;
+}
+#leftbar{
+ left: 1em;
+}
+#rightbar{
+ right: 1em;
+}
+
+legend {
+ color: black;
+ background: white;
+ border-style: solid;
+ border-width: 1px;
+ padding: 1px;
+}
+table.boards td
+{
+ border-right: #990000 thin solid;
+ padding-right: 2px;
+ border-top: #990000 thin solid;
+ padding-left: 2px;
+ font-size: larger;
+ padding-bottom: 2px;
+ border-left: #990000 thin solid;
+ padding-top: 2px;
+ border-bottom: #990000 thin solid;
+ border-collapse: separate;
+ border-spacing: 15pt;
+}
+table.boards{
+ border-collapse: separate;
+ border-spacing: 5px;
+}
+table.boards th
+{
+ font-weight: bold;
+ font-size: larger;
+ color: #990000;
+}
+table.boards tr.even {
+ background: white;
+}
+
+table.boards a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+fieldset.forum-post {
+ width: 40em;
+}
+fieldset.forum-post legend b {
+ font-size: larger;
+}
+div.leftinfo{
+ float: left;
+ padding-right: 2em;
+}
+p.claimlinks{
+ clear: both;
+}
+
+ul.linkbar
+{
+ padding-right: 0px;
+ padding-left: 0px;
+ padding-bottom: 0px;
+ margin: 0px;
+ width: 13.5em;
+ color: #000033;
+ padding-top: 0px;
+}
+ul.linkbar li {
+ background: white;
+ color: black;
+ margin: 0.5em 0;
+ padding: 0.3em;
+ /*border-right: 1em solid black;*/
+}
+ul.linkbar a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+input.coordsinput {
+ width: 4em;
+}
+input.small {
+ width: 1.7em;
+}
+tr.odd {
+ background: white;
+ color: black;
+}
+tr.total {
+ background: black;
+ color: red;
+}
+
+td.ingal{
+ background: blue;
+ color: black;
+}
+td.Defend{
+ background: green;
+ color: black;
+}
+td.AllyDef
+{
+ background: #ccff00;
+ color: black;
+}
+td.Attack
+{
+ background: tomato;
+ color: black;
+}
+
+a.Unclaim{
+ color: #336666;
+}
+input.Unclaim{
+ background: #336666;
+}
+a.Claim{
+ color: blue;
+}
+a.Join{
+ color: #00AAAA;
+}
+input.Join{
+ background: #00AAAA;
+}
+
+td.Friendly
+{
+ font-weight: bold;
+ background: #ccff00;
+ color: darkolivegreen;
+}
+td.Friendly a
+{
+ font-weight: bold;
+ font-size: larger;
+ background: #ccff00;
+ color: white;
+}
+td.Hostile
+{
+ font-weight: bold;
+ background: tomato;
+ color: black;
+}
+td.NAP
+{
+ background: turquoise;
+ color: white;
+}
+td.NAP a
+{
+ font-weight: bold;
+ font-size: larger;
+ color: white;
+ background: turquoise;
+}
+table.old{
+ border: outset 1pt;
+ border-collapse: separate;
+ border-color: red;
+}
+
+table.closedPlanet
+{
+ border-right: maroon 2pt outset;
+ border-top: maroon 2pt outset;
+ border-left: maroon 2pt outset;
+ border-bottom: maroon 2pt outset;
+ border-collapse: separate;
+}
+li.bash
+{
+ color: #336666;
+}
+div.clear {
+ clear: both;
+ height: 0;
+ margin: 0;
+ padding: 0;
+ line-height: 0.0;
+ font-size: 1px;
+}
+
+td.LowestPrio{
+ background: tomato;
+ color: white;
+}
+td.MediumPrio
+{
+ background: #b3b169;
+ color: white;
+}
+td.HighestPrio
+{
+ background: #336666;
+ color: white;
+}
+span.newposts,span.unreadposts {
+ font-weight: bold;
+}
+span.newposts {
+ color: red;
+}
--- /dev/null
+body {
+ font-family: sans-serif;
+ color: black;
+ background-color: #D9D9D9;
+}
+
+legend {
+ color: black;
+ background: white;
+ border-style: solid;
+ border-width: 1px;
+ padding: 1px;
+}
+table.boards td {
+ /*border-style: solid;
+ border-width: 1px;*/
+ padding: 2px;
+ border-collapse: separate;
+ border-spacing: 15pt;
+ font-size: larger;
+}
+table.boards{
+ border-collapse: separate;
+ border-spacing: 5px;
+}
+table.boards th {
+ font-size: larger;
+}
+table.boards tr.even {
+ background: white;
+}
+
+table.boards a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+fieldset.forum-post {
+ width: 40em;
+}
+fieldset.forum-post legend b {
+ font-size: larger;
+}
+div.leftinfo{
+ float: left;
+ padding-right: 2em;
+}
+p.claimlinks{
+ clear: both;
+}
+
+ul.linkbar {
+ list-style-type: none;
+ width: 13.5em;
+ padding: 0;
+ margin: 0;
+}
+ul.linkbar li {
+ background: white;
+ color: black;
+ margin: 0.5em 0;
+ padding: 0.3em;
+ /*border-right: 1em solid black;*/
+}
+ul.linkbar a {
+ text-decoration: none;
+ width: 100%;
+ display: block;
+}
+input.coordsinput {
+ width: 4em;
+}
+input.small {
+ width: 1.7em;
+}
+tr.odd {
+ background: white;
+ color: black;
+}
+tr.total {
+ background: black;
+ color: red;
+}
+
+td.ingal{
+ background: blue;
+ color: black;
+}
+td.Defend{
+ background: green;
+ color: black;
+}
+td.AllyDef{
+ background: #00FF00;
+ color: black;
+}
+td.Attack{
+ background: red;
+ color: black;
+}
+
+a.Unclaim{
+ color: green;
+}
+input.Unclaim{
+ background: green;
+}
+a.Claim{
+ color: blue;
+}
+a.Join{
+ color: #00AAAA;
+}
+input.Join{
+ background: #00AAAA;
+}
+
+td.Friendly{
+ background: green;
+ color: black;
+}
+td.Friendly a{
+ color: yellow;
+ background: green;
+}
+td.Hostile{
+ background: red;
+ color: black;
+}
+td.NAP{
+ background: blue;
+ color: white;
+}
+td.NAP a{
+ color: yellow;
+ background: blue;
+}
+table.old{
+ border: outset 1pt;
+ border-collapse: separate;
+ border-color: red;
+}
+
+table.closedPlanet{
+ border: outset 2pt;
+ border-collapse: separate;
+ border-color: red;
+}
+li.bash{
+ color: #FF9933;
+}
+div.clear {
+ clear: both;
+ height: 0;
+ margin: 0;
+ padding: 0;
+ line-height: 0.0;
+ font-size: 1px;
+}
+
+td.LowestPrio{
+ background: red;
+ color: black;
+}
+td.MediumPrio{
+ background: yellow;
+ color: black;
+}
+td.HighestPrio{
+ background: green;
+ color: black;
+}
+span.newposts,span.unreadposts {
+ font-weight: bold;
+}
+span.newposts {
+ color: red;
+}
--- /dev/null
+@import "black.css";
+.backgrounds { Code Generated by Backgrounds Archive }
+table, tr, td { background-color: transparent; border: none; border-width: 0; }
+html,body {
+ background-image: url('hedgie.jpg');
+ background-attachment: scrolling;
+ background-repeat: repeat;
+ color: white;
+}
+
--- /dev/null
+body,html {
+ color: white;
+ background-color: black;
+ font-family: sans-serif;
+ font-size: 10px;
+}
+input, textarea {
+ font-size: 10px;
+ background: #003333;
+ color: white;
+}
+a:link, a:hover, a:visited {
+ color: white;
+ text-decoration: none;
+}
+legend {
+ color: white;
+ background: #660000;
+ border-style: solid;
+ border-width: 1px;
+ border-color: white;
+ padding: 1px;
+}
+table.boards td {
+ /*border-style: solid;
+ border-width: 1px;*/
+ border-color: white;
+ padding: 2px;
+ border-collapse: separate;
+ border-spacing: 15pt;
+ font-size: 10px;
+}
+table.boards th {
+ font-size: 10px;
+}
+fieldset.forum-post legend b {
+ font-size: 10px;
+}
+ul.linkbar li {
+ background: #000044;
+ color: white;
+ margin: 0.5em 0;
+ padding: 0.3em;
+ border: 1px solid white;
+ /*border-right: 1em solid black;*/
+}
+tr.odd {
+ background: #660000;
+ color: white;
+}
+table.old{
+ border: outset 1pt;
+ border-collapse: separate;
+ border-color: grey;
+}
+img.graph{
+ background: #999999;
+}
+++ /dev/null
-function getHTTPObject() {
- var xmlhttp;
- /*@cc_on
- @if (@_jscript_version >= 5)
- try {
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (E) {
- xmlhttp = false;
- }
- }
- @else
- xmlhttp = false;
- @end @*/
-
- if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
- try {
- xmlhttp = new XMLHttpRequest();
- } catch (e) {
- xmlhttp = false;
- }
- }
- return xmlhttp;
-}
-
-var modified = '_';
-
-function claim(dataSource, target, wave,cmd){
- var HTTP = getHTTPObject();
- if(HTTP) {
- var url = dataSource + '&cmd='+cmd+'&target=' + target + '&wave=' + wave + '&rand='+ Math.random();
- //obj.innerHTML = "test";
- HTTP.open("GET", url,true);
- HTTP.onreadystatechange = function(){
- if (HTTP.readyState == 4 &&
- HTTP.status == 200) {
- updateClaims(dataSource,HTTP.responseXML,false);
- var obj = document.getElementById("targets");
- if (obj){
- clearObject(obj);
- var re = new RegExp("targetlist>((.|\\n)*)</targetlist");
- if(re.test(HTTP.responseText))
- obj.innerHTML = RegExp.$1;
- }
- }
- }
- HTTP.send(null);
- }
-}
-
-function clearObject(obj){
- while (obj.hasChildNodes()){
- obj.removeChild(obj.firstChild);
- }
-}
-
-function listTargets(dataSource){
- var http = getHTTPObject();
- http.open("GET",dataSource+'&cmd=gettargets' + '&rand='+ Math.random(),true);
- http.onreadystatechange = function(){
- if (http.readyState == 4 &&
- http.status == 200) {
- var obj = document.getElementById("targets");
- if (obj){
- clearObject(obj);
- var re = new RegExp("targetlist>((.|\\n)*)</targetlist");
- if(re.test(http.responseText))
- obj.innerHTML = RegExp.$1;
- }
- }
- }
- http.send(null);
-}
-
-function update(dataSource){
- var HTTP = getHTTPObject();
- if(HTTP) {
- HTTP.open("GET",dataSource+"&cmd=update&from="+modified + '&rand='+ Math.random(),true);
- HTTP.onreadystatechange = function(){
- if (HTTP.readyState == 4 &&
- HTTP.status == 200) {
- updateClaims(dataSource,HTTP.responseXML,true);
- }
- }
- HTTP.send(null);
- }
-}
-
-function updateClaims(dataSource,xmlthingy,timestamp){
- var targets = xmlthingy.getElementsByTagName("target");
- for (var i = 0; i < targets.length; i++){
- var target = targets[i].attributes.getNamedItem("id").nodeValue;
- var obj = document.getElementById("claim"+target);
- if (!obj)
- continue;
- //obj.innerHTML = '';
- clearObject(obj);
- var waves = targets[i].getElementsByTagName("wave");;
- for (var j = 0; j < waves.length; j++){
- var command = waves[j].getElementsByTagName("command")[0];
- var claimers = waves[j].getElementsByTagName("claimers")[0];
- var joinable = waves[j].getElementsByTagName("joinable")[0];
- var wave = waves[j].attributes.getNamedItem("id").nodeValue;
- command = command.firstChild.nodeValue;
- if(claimers.firstChild){
- claimers = '('+claimers.firstChild.nodeValue+')';
- }else
- claimers = '';
- joinable = joinable.firstChild.nodeValue;
-
- if (command == 'none'){
- var s = document.createElement("b");
- s.appendChild(document.createTextNode("Claimed by "+claimers));
- obj.appendChild(s);
- }else{
- var b = document.createElement("input");
- b.type = 'button';
- b.setAttribute("class", command);
- b.value = command +' wave '+wave+' '+claimers;
- b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
- /*b.onclick = function(){
- claim(dataSource,t,wave,command);
- }*/
- obj.appendChild(b);
- }
- if (command == 'Unclaim'){
- var b = document.createElement("input");
- b.type = 'button';
- b.value = 'J';
- b.title = 'Make target joinable';
- command = 'set&joinable=TRUE';
- if (joinable == 1){
- b.value = 'N';
- b.title = 'Disable join';
- command = 'set&joinable=FALSE';
- }
- b.setAttribute("onclick", "claim('"+dataSource+"',"+target+","+wave+",'"+command+"');");
- obj.appendChild(b);
- }
- /*@cc_on
- obj.innerHTML = obj.innerHTML; // IE doesn't understand unless you tell it twice
- @*/
- }
- /*
- obj = document.getElementById("coords"+target);
- var coords = targets[i].getElementsByTagName("coords");;
- if (obj)
- obj.innerHTML = coords[0].firstChild.nodeValue;
- */
- }
- if (timestamp){
- timestamp = xmlthingy.getElementsByTagName("timestamp");
- if (timestamp)
- modified = timestamp[0].firstChild.nodeValue;
- }
-}
-use lib qw(/var/www/ndawn/code/);
+use lib qw(/var/www/ndawn/);
use CGI qw/:standard/;
+++ /dev/null
-body,html,table,div {
- font-family: sans-serif;
- font-size: 11px;
- color: #B2B2B2;
- background-color: black;
-}
-
-textarea, input{
- font-size: 11px;
-}
-
-a {
- color: white;
- text-decoration:underline;
-}
-a:hover, td.NAP a:hover {
- color: black;
- background: white;
-}
-
-input,textarea,select {
- color: black;
- background: #B2B2B2;
-}
-
-img.graph {
- background: gray;
-}
-
-td.sticky {
- font-weight: bold;
-}
-
-
-legend {
- color: black;
- background: gray;
-}
-
-ul.linkbar li {
- background: gray;
- color: black;
- margin: 0.5em 0;
- padding: 0.3em;
- /*border-right: 1em solid black;*/
-}
-
-
-tr.even {
- background: #B2B2B2;
- color: black;
-}
-tr.odd {
- background: gray;
- color: black;
-}
-tr.total {
- background: black;
- color: red;
-}
-
-td.ingal{
- background: blue;
- color: black;
-}
-td.Defend{
- background: green;
- color: black;
-}
-td.AllyDef{
- background: #00FF00;
- color: black;
-}
-td.Attack{
- background: red;
- color: black;
-}
-
-a.Unclaim{
- color: green;
-}
-input.Unclaim{
- background: green;
-}
-a.Claim{
- color: blue;
-}
-a.Join{
- color: #00AAAA;
-}
-input.Join{
- background: #00AAAA;
-}
-
-td.Friendly{
- background: green;
- color: black;
-}
-td.Friendly a{
- color: yellow;
- background: green;
-}
-td.Hostile{
- background: red;
- color: black;
-}
-
-td.LowestPrio{
- background: red;
- color: black;
-}
-td.MediumPrio{
- background: yellow;
- color: black;
-}
-td.HighestPrio{
- background: green;
- color: black;
-}
+++ /dev/null
-body,html
-{
- font-size: medium;
- color: gray;
- font-family: Arial;
- background-color: #f5f5f5;
-}
-#leftbar, #rightbar
-{
- padding-right: 0px;
- padding-left: 0px;
- font-weight: bold;
- padding-bottom: 0px;
- margin: 0px;
- width: 14em;
- color: olive;
- padding-top: 0px;
- position: absolute;
- top: 1em;
-}
-#leftbar{
- left: 1em;
-}
-#rightbar{
- right: 1em;
-}
-
-legend {
- color: black;
- background: white;
- border-style: solid;
- border-width: 1px;
- padding: 1px;
-}
-table.boards td
-{
- border-right: #990000 thin solid;
- padding-right: 2px;
- border-top: #990000 thin solid;
- padding-left: 2px;
- font-size: larger;
- padding-bottom: 2px;
- border-left: #990000 thin solid;
- padding-top: 2px;
- border-bottom: #990000 thin solid;
- border-collapse: separate;
- border-spacing: 15pt;
-}
-table.boards{
- border-collapse: separate;
- border-spacing: 5px;
-}
-table.boards th
-{
- font-weight: bold;
- font-size: larger;
- color: #990000;
-}
-table.boards tr.even {
- background: white;
-}
-
-table.boards a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-fieldset.forum-post {
- width: 40em;
-}
-fieldset.forum-post legend b {
- font-size: larger;
-}
-div.leftinfo{
- float: left;
- padding-right: 2em;
-}
-p.claimlinks{
- clear: both;
-}
-
-ul.linkbar
-{
- padding-right: 0px;
- padding-left: 0px;
- padding-bottom: 0px;
- margin: 0px;
- width: 13.5em;
- color: #000033;
- padding-top: 0px;
-}
-ul.linkbar li {
- background: white;
- color: black;
- margin: 0.5em 0;
- padding: 0.3em;
- /*border-right: 1em solid black;*/
-}
-ul.linkbar a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-input.coordsinput {
- width: 4em;
-}
-input.small {
- width: 1.7em;
-}
-tr.odd {
- background: white;
- color: black;
-}
-tr.total {
- background: black;
- color: red;
-}
-
-td.ingal{
- background: blue;
- color: black;
-}
-td.Defend{
- background: green;
- color: black;
-}
-td.AllyDef
-{
- background: #ccff00;
- color: black;
-}
-td.Attack
-{
- background: tomato;
- color: black;
-}
-
-a.Unclaim{
- color: #336666;
-}
-input.Unclaim{
- background: #336666;
-}
-a.Claim{
- color: blue;
-}
-a.Join{
- color: #00AAAA;
-}
-input.Join{
- background: #00AAAA;
-}
-
-td.Friendly
-{
- font-weight: bold;
- background: #ccff00;
- color: darkolivegreen;
-}
-td.Friendly a
-{
- font-weight: bold;
- font-size: larger;
- background: #ccff00;
- color: white;
-}
-td.Hostile
-{
- font-weight: bold;
- background: tomato;
- color: black;
-}
-td.NAP
-{
- background: turquoise;
- color: white;
-}
-td.NAP a
-{
- font-weight: bold;
- font-size: larger;
- color: white;
- background: turquoise;
-}
-table.old{
- border: outset 1pt;
- border-collapse: separate;
- border-color: red;
-}
-
-table.closedPlanet
-{
- border-right: maroon 2pt outset;
- border-top: maroon 2pt outset;
- border-left: maroon 2pt outset;
- border-bottom: maroon 2pt outset;
- border-collapse: separate;
-}
-li.bash
-{
- color: #336666;
-}
-div.clear {
- clear: both;
- height: 0;
- margin: 0;
- padding: 0;
- line-height: 0.0;
- font-size: 1px;
-}
-
-td.LowestPrio{
- background: tomato;
- color: white;
-}
-td.MediumPrio
-{
- background: #b3b169;
- color: white;
-}
-td.HighestPrio
-{
- background: #336666;
- color: white;
-}
-span.newposts,span.unreadposts {
- font-weight: bold;
-}
-span.newposts {
- color: red;
-}
+++ /dev/null
-body {
- font-family: sans-serif;
- color: black;
- background-color: #D9D9D9;
-}
-
-legend {
- color: black;
- background: white;
- border-style: solid;
- border-width: 1px;
- padding: 1px;
-}
-table.boards td {
- /*border-style: solid;
- border-width: 1px;*/
- padding: 2px;
- border-collapse: separate;
- border-spacing: 15pt;
- font-size: larger;
-}
-table.boards{
- border-collapse: separate;
- border-spacing: 5px;
-}
-table.boards th {
- font-size: larger;
-}
-table.boards tr.even {
- background: white;
-}
-
-table.boards a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-fieldset.forum-post {
- width: 40em;
-}
-fieldset.forum-post legend b {
- font-size: larger;
-}
-div.leftinfo{
- float: left;
- padding-right: 2em;
-}
-p.claimlinks{
- clear: both;
-}
-
-ul.linkbar {
- list-style-type: none;
- width: 13.5em;
- padding: 0;
- margin: 0;
-}
-ul.linkbar li {
- background: white;
- color: black;
- margin: 0.5em 0;
- padding: 0.3em;
- /*border-right: 1em solid black;*/
-}
-ul.linkbar a {
- text-decoration: none;
- width: 100%;
- display: block;
-}
-input.coordsinput {
- width: 4em;
-}
-input.small {
- width: 1.7em;
-}
-tr.odd {
- background: white;
- color: black;
-}
-tr.total {
- background: black;
- color: red;
-}
-
-td.ingal{
- background: blue;
- color: black;
-}
-td.Defend{
- background: green;
- color: black;
-}
-td.AllyDef{
- background: #00FF00;
- color: black;
-}
-td.Attack{
- background: red;
- color: black;
-}
-
-a.Unclaim{
- color: green;
-}
-input.Unclaim{
- background: green;
-}
-a.Claim{
- color: blue;
-}
-a.Join{
- color: #00AAAA;
-}
-input.Join{
- background: #00AAAA;
-}
-
-td.Friendly{
- background: green;
- color: black;
-}
-td.Friendly a{
- color: yellow;
- background: green;
-}
-td.Hostile{
- background: red;
- color: black;
-}
-td.NAP{
- background: blue;
- color: white;
-}
-td.NAP a{
- color: yellow;
- background: blue;
-}
-table.old{
- border: outset 1pt;
- border-collapse: separate;
- border-color: red;
-}
-
-table.closedPlanet{
- border: outset 2pt;
- border-collapse: separate;
- border-color: red;
-}
-li.bash{
- color: #FF9933;
-}
-div.clear {
- clear: both;
- height: 0;
- margin: 0;
- padding: 0;
- line-height: 0.0;
- font-size: 1px;
-}
-
-td.LowestPrio{
- background: red;
- color: black;
-}
-td.MediumPrio{
- background: yellow;
- color: black;
-}
-td.HighestPrio{
- background: green;
- color: black;
-}
-span.newposts,span.unreadposts {
- font-weight: bold;
-}
-span.newposts {
- color: red;
-}
+++ /dev/null
-@import "black.css";
-.backgrounds { Code Generated by Backgrounds Archive }
-table, tr, td { background-color: transparent; border: none; border-width: 0; }
-html,body {
- background-image: url('hedgie.jpg');
- background-attachment: scrolling;
- background-repeat: repeat;
- color: white;
-}
-
+++ /dev/null
-body,html {
- color: white;
- background-color: black;
- font-family: sans-serif;
- font-size: 10px;
-}
-input, textarea {
- font-size: 10px;
- background: #003333;
- color: white;
-}
-a:link, a:hover, a:visited {
- color: white;
- text-decoration: none;
-}
-legend {
- color: white;
- background: #660000;
- border-style: solid;
- border-width: 1px;
- border-color: white;
- padding: 1px;
-}
-table.boards td {
- /*border-style: solid;
- border-width: 1px;*/
- border-color: white;
- padding: 2px;
- border-collapse: separate;
- border-spacing: 15pt;
- font-size: 10px;
-}
-table.boards th {
- font-size: 10px;
-}
-fieldset.forum-post legend b {
- font-size: 10px;
-}
-ul.linkbar li {
- background: #000044;
- color: white;
- margin: 0.5em 0;
- padding: 0.3em;
- border: 1px solid white;
- /*border-right: 1em solid black;*/
-}
-tr.odd {
- background: #660000;
- color: white;
-}
-table.old{
- border: outset 1pt;
- border-collapse: separate;
- border-color: grey;
-}
-img.graph{
- background: #999999;
-}