From: Michael Andreen Date: Fri, 31 Aug 2007 10:00:19 +0000 (+0200) Subject: Initial commit with the new structure for git X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=4d9f2015a5e4c4952f64f4be25cddaf9bf5714e4 Initial commit with the new structure for git --- diff --git a/ND.pm b/ND.pm index be25403..3912c1c 100755 --- a/ND.pm +++ b/ND.pm @@ -32,7 +32,7 @@ use warnings; $SIG{__WARN__} = sub {$ND::ERROR .= p $_[0]}; -chdir '/var/www/ndawn/code'; +chdir '/var/www/ndawn'; sub handler { my $r = shift; diff --git a/ND/.gitignore b/ND/.gitignore new file mode 100644 index 0000000..808a82d --- /dev/null +++ b/ND/.gitignore @@ -0,0 +1 @@ +DB.pm diff --git a/apache-conf.conf b/apache-conf.conf index 9a2bdaf..c7b4d68 100644 --- a/apache-conf.conf +++ b/apache-conf.conf @@ -124,8 +124,8 @@ Deny from all - 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 SetHandler perl-script PerlResponseHandler ND diff --git a/default.css b/default.css deleted file mode 100644 index c6ec1d8..0000000 --- a/default.css +++ /dev/null @@ -1,226 +0,0 @@ -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; -} diff --git a/htdocs/default.css b/htdocs/default.css new file mode 100644 index 0000000..c6ec1d8 --- /dev/null +++ b/htdocs/default.css @@ -0,0 +1,226 @@ +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; +} diff --git a/htdocs/images/down.png b/htdocs/images/down.png new file mode 100644 index 0000000..69663f9 Binary files /dev/null and b/htdocs/images/down.png differ diff --git a/htdocs/images/stay.png b/htdocs/images/stay.png new file mode 100644 index 0000000..e428243 Binary files /dev/null and b/htdocs/images/stay.png differ diff --git a/htdocs/images/up.png b/htdocs/images/up.png new file mode 100644 index 0000000..698a42a Binary files /dev/null and b/htdocs/images/up.png differ diff --git a/htdocs/raid.js b/htdocs/raid.js new file mode 100644 index 0000000..8bec240 --- /dev/null +++ b/htdocs/raid.js @@ -0,0 +1,158 @@ +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)*)= 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)*)