Remove trailing whitespace

This commit is contained in:
j883376
2013-05-06 13:07:41 -04:00
parent 7a93966158
commit ffcff4aea1
548 changed files with 16397 additions and 16398 deletions
+7 -7
View File
@@ -28,17 +28,17 @@
font-style: normal;
}
/* Since all menu items are links, the following can be equally important
* to your menu appearance.
/* Since all menu items are links, the following can be equally important
* to your menu appearance.
* The main thing you may want to change are the A:link and A:visited colors.
*/
*.tmenu0text A:link,*.tmenu1text A:link,*.tmenu2text A:link,*.tmenu3text A:link
*.tmenu0text A:link,*.tmenu1text A:link,*.tmenu2text A:link,*.tmenu3text A:link
{ text-decoration:none; color:#505080 }
*.tmenu0text A:visited,*.tmenu1text A:visited,*.tmenu2text A:visited,*.tmenu3text A:visited
*.tmenu0text A:visited,*.tmenu1text A:visited,*.tmenu2text A:visited,*.tmenu3text A:visited
{ text-decoration:none; color:#505080 }
*.tmenu0text A:active,*.tmenu1text A:active,*.tmenu2text A:active,*.tmenu3text A:active
*.tmenu0text A:active,*.tmenu1text A:active,*.tmenu2text A:active,*.tmenu3text A:active
{ text-decoration:none; color:#805050 }
*.tmenu0text A:hover,*.tmenu1text A:hover,*.tmenu2text A:hover,*.tmenu3text A:hover
*.tmenu0text A:hover,*.tmenu1text A:hover,*.tmenu2text A:hover,*.tmenu3text A:hover
{ text-decoration:underline; color:#FF0000 }
@@ -51,7 +51,7 @@
}
/* .tmenuSelected is used with linkSelectKey to highlight selected items */
.tmenuSelected {
.tmenuSelected {
background-color: yellow;
}
*.tmenuSelected A:link { text-decoration:none; color:#2020ff }
+52 -52
View File
@@ -12,7 +12,7 @@
// | notice, this list of conditions and the following disclaimer. |
// | o Redistributions in binary form must reproduce the above copyright |
// | notice, this list of conditions and the following disclaimer in the |
// | documentation and/or other materials provided with the distribution.|
// | documentation and/or other materials provided with the distribution.|
// | o The names of the authors may not be used to endorse or promote |
// | products derived from this software without specific prior written |
// | permission. |
@@ -51,7 +51,7 @@
this.imgWidth = 20;
this.imgHeight = 20;
this.n = new Array();
this.branches = new Array();
this.branchStatus = new Array();
this.layerRelations = new Array();
@@ -79,10 +79,10 @@
newNode.lineImageWidth = this.imgWidth;
newNode.lineImageHeight = this.imgHeight;
this.n[newIndex] = newNode;
return this.n[newIndex];
}
TreeMenu.prototype.SetImageSize = function(w, h) {
this.imgWidth = w;
this.imgHeight = h;
@@ -96,15 +96,15 @@
var plustop = new Image; plustop.src = this.iconpath + '/plustop.gif';
var plusbottom = new Image; plusbottom.src = this.iconpath + '/plusbottom.gif';
var plus = new Image; plus.src = this.iconpath + '/plus.gif';
var minustop = new Image; minustop.src = this.iconpath + '/minustop.gif';
var minusbottom = new Image; minusbottom.src = this.iconpath + '/minusbottom.gif';
var minus = new Image; minus.src = this.iconpath + '/minus.gif';
var branchtop = new Image; branchtop.src = this.iconpath + '/branchtop.gif';
var branchbottom = new Image; branchbottom.src = this.iconpath + '/branchbottom.gif';
var branch = new Image; branch.src = this.iconpath + '/branch.gif';
var linebottom = new Image; linebottom.src = this.iconpath + '/linebottom.gif';
var line = new Image; line.src = this.iconpath + '/line.gif';
}
@@ -122,7 +122,7 @@
var modifier = '';
var layerID = '';
var parentLayerID = '';
/**
* Parse any optional arguments
*/
@@ -132,19 +132,19 @@
var expanded = arguments[3] ? arguments[3] : false;
var visibility = arguments[4] ? arguments[4] : 'inline';
var parentLayerID = arguments[5] ? arguments[5] : null;
var currentlevel = level.length;
for (var i=0; i<nodes.length; i++) {
level[currentlevel] = i+1;
layerID = this.myname + '_' + 'node_' + this.implode('_', level);
/**
* Store the child/parent relationship
*/
this.childParents[layerID] = parentLayerID;
/**
* Gif modifier
*/
@@ -155,25 +155,25 @@
} else {
modifier = "";
}
/**
* Single root branch is always expanded
*/
if (!this.doesMenu() || (parentLayerID == null && nodes.length == 1)) {
expanded = true;
} else if (nodes[i].expanded) {
expanded = true;
} else {
expanded = false;
}
/**
* Make sure visibility is correct based on parent status
*/
visibility = this.checkParentVisibility(layerID) ? visibility : 'none';
/**
* Setup branch status and build an indexed array
* of branch layer ids
@@ -182,7 +182,7 @@
this.branchStatus[layerID] = expanded;
this.branches[this.branches.length] = layerID;
}
/**
* Setup toggle relationship
*/
@@ -190,15 +190,15 @@
this.layerRelations[parentLayerID] = new Array();
}
this.layerRelations[parentLayerID][this.layerRelations[parentLayerID].length] = layerID;
/**
* Branch images
*/
var gifname = nodes[i].n.length && this.doesMenu() && nodes[i].isDynamic ? (expanded ? 'minus' : 'plus') : 'branch';
// cc 2002-11-12 variable image dimensions to line below
var iconimg = nodes[i].icon ? this.stringFormat('<img src="{0}/{1}" width="{2}" height="{3}" align="top">', this.iconpath, nodes[i].icon, nodes[i].iconImageWidth, nodes[i].iconImageHeight) : '';
/**
* Build the html to write to the document
* IMPORTANT:
@@ -210,14 +210,14 @@
var imgTag = this.stringFormat('<img src="{0}/{1}{2}.gif" width="{5}" height="{6}" align="top" border="0" name="img_{3}" {4}>', this.iconpath, gifname, modifier, layerID, onMDown, nodes[i].lineImageWidth, nodes[i].lineImageHeight);
var linkStart = nodes[i].link ? this.stringFormat('<a href="{0}" target="{1}">', nodes[i].link, this.linkTarget) : '';
var linkEnd = nodes[i].link ? '</a>' : '';
// cc 2002-11-12 All these are additions
var selectedStart = nodes[i].selected ? "<span class='"+nodes[i].selected+"'>" : '';
var selectedEnd = nodes[i].selected ? '</span>' : '';
var nobrStart = this.brOK ? '' : '<nobr>';
var nobrEnd = this.brOK ? '' : '</nobr>';
// cc 2002-11-12 modified
output = this.stringFormat('{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}<br></div>',
layerTag,
@@ -229,7 +229,7 @@
nodes[i].title,
linkEnd, selectedEnd,
nobrEnd);
/**
* Write out the HTML. Uses document.write for speed over layers and
* innerHTML. This however means no dynamic adding/removing nodes on
@@ -249,15 +249,15 @@
*/
if (parentLayerID == null && nodes.length == 1) {
var newPrepend = '';
} else if (i < (nodes.length - 1)) {
// cc 2002-11-12 Both lines, added image size parameters.
var newPrepend = prepend + this.stringFormat('<img src="{0}/line.gif" width="{1}" height="{2}" align="top">', this.iconpath, nodes[i].lineImageWidth, nodes[i].lineImageHeight);
} else {
var newPrepend = prepend + this.stringFormat('<img src="{0}/linebottom.gif" width="{1}" height="{2}" align="top">', this.iconpath, nodes[i].lineImageWidth, nodes[i].lineImageHeight);
}
this.drawMenu(nodes[i].n,
level,
newPrepend,
@@ -276,26 +276,26 @@
{
var currentDisplay = this.getLayer(layerID).style.display;
var newDisplay = (this.branchStatus[layerID] && currentDisplay == 'inline') ? 'none' : 'inline'
for (var i=0; i<this.layerRelations[layerID].length; i++) {
if (this.branchStatus[this.layerRelations[layerID][i]]) {
this.toggleBranch(this.layerRelations[layerID][i], false);
}
this.getLayer(this.layerRelations[layerID][i]).style.display = newDisplay;
}
if (updateStatus) {
this.branchStatus[layerID] = !this.branchStatus[layerID];
/**
* Persistence
*/
if (this.doesPersistence() && !arguments[2] && this.usePersistence) {
this.setExpandedStatusForCookie(layerID, this.branchStatus[layerID]);
}
// Swap image
this.swapImage(layerID);
}
@@ -307,10 +307,10 @@
TreeMenu.prototype.swapImage = function (layerID)
{
imgSrc = document.images['img_' + layerID].src;
re = /^(.*)(plus|minus)(bottom|top|single)?.gif$/
if (matches = imgSrc.match(re)) {
document.images['img_' + layerID].src = this.stringFormat('{0}{1}{2}{3}',
matches[1],
matches[2] == 'plus' ? 'minus' : 'plus',
@@ -342,10 +342,10 @@
{
if (is_ie4) {
return document.all(layerID);
} else if (document.getElementById(layerID)) {
return document.getElementById(layerID);
} else if (document.all(layerID)) {
return document.all(layerID);
}
@@ -401,7 +401,7 @@
cookieString[cookieString.length] = i;
}
}
document.cookie = 'TreeMenuBranchStatus=' + cookieString.join(':');
}
@@ -450,7 +450,7 @@
}
/**
* Checks whether a branch should be open
* Checks whether a branch should be open
* or not based on its parents' status
*/
TreeMenu.prototype.checkParentVisibility = function (layerID)
@@ -458,13 +458,13 @@
if (this.in_array(this.childParents[layerID], this.branches)
&& this.branchStatus[this.childParents[layerID]]
&& this.checkParentVisibility(this.childParents[layerID]) ) {
return true;
} else if (this.childParents[layerID] == null) {
return true;
}
return false;
}
@@ -474,13 +474,13 @@
TreeMenu.prototype.stringFormat = function (strInput)
{
var idx = 0;
for (var i=1; i<arguments.length; i++) {
while ((idx = strInput.indexOf('{' + (i - 1) + '}', idx)) != -1) { // cc 2002-11-12 fix 10<i<=100
strInput = strInput.substring(0, idx) + arguments[i] + strInput.substr(idx + (i<=10?3:4));
}
}
return strInput;
}
@@ -490,7 +490,7 @@
TreeMenu.prototype.implode = function (seperator, input)
{
var output = '';
for (var i=0; i<input.length; i++) {
if (i == 0) {
output += input[i];
@@ -498,7 +498,7 @@
output += seperator + input[i];
}
}
return output;
}
@@ -512,7 +512,7 @@
return true;
}
}
return false;
}
@@ -545,7 +545,7 @@
newNode.lineImageWidth = this.lineImageWidth;
newNode.lineImageHeight = this.lineImageHeight;
this.n[newIndex] = newNode;
return this.n[newIndex];
}
@@ -553,7 +553,7 @@
* That's the end of the tree classes. What follows is
* the browser detection code.
*/
//<!--
// Ultimate client-side JavaScript client sniff. Version 3.03
@@ -561,7 +561,7 @@
// Revised 17 May 99 to add is_nav5up and is_ie5up (see below).
// Revised 20 Dec 00 to add is_gecko and change is_nav5up to is_nav6up
// also added support for IE5.5 Opera4&5 HotJava3 AOLTV
// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4,
// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4,
// correct Opera 5 detection
// add support for winME and win2k
// synch with browser-type-oo.js
@@ -600,7 +600,7 @@
//
// Note: you don't want your Nav4 or IE4 code to "turn off" or
// stop working when new versions of browsers are released, so
// in conditional code forks, use is_ie5up ("IE 5.0 or greater")
// in conditional code forks, use is_ie5up ("IE 5.0 or greater")
// is_opera5up ("Opera 5.0 or greater") instead of is_ie5 or is_opera5
// to check version in code which you want to work on future
// versions.
+9 -9
View File
@@ -82,7 +82,7 @@ HTML
my $q;
$q = "SELECT name FROM account WHERE id=$accountid";
my $res2=$EQDB->query($q);
if ($res2) {
if ($res2) {
my $row5=$res2->fetch_row_hash;
print <<"CHAR";
<tr>
@@ -95,7 +95,7 @@ CHAR
print "Account Name query error.";
}
}
print "</table>";
print "</table>";
} else {
print "IP Address query error.";
}
@@ -104,9 +104,9 @@ CHAR
my $acctE = $EQDB->escape_string($acct);
my $q;
$q="select id,charname,sharedplat,status,revoked from account where name='$acctE'";
my $res=$EQDB->query($q);
if ($res) {
if ($res) {
my $row=$res->fetch_row_hash;
print <<"HTML";
<table border="1">
@@ -139,17 +139,17 @@ HTML
<td align="center">$row2->{zonename}</td>
<td align="center">
delete,
<a href="?name=$acct&action=move&charid=$row2->{id}&charname=$row2->{name}">move acct</a>,
<a href="?name=$acct&action=move&charid=$row2->{id}&charname=$row2->{name}">move acct</a>,
move zone
</td>
</tr>
CHAR
}
print "</table>";
print "</table>";
} else {
print "Char query error.";
}
$q="SELECT ip,count FROM account_ip WHERE accid=$row->{id}";
my $res3=$EQDB->query($q);
if($res3) {
@@ -166,7 +166,7 @@ HTML
<tr>
<td align="center"><a href="?name=$acct&action=listips&ipaddress=$row3->{ip}">$row3->{ip}</a></td>
<td align="center">$row3->{count}</td>
</tr>
</tr>
CHAR
}
print "</table>";
@@ -185,7 +185,7 @@ HTML
} else {
print "Query error.";
}
print "Actions: ban/unban, set status, set world password, delete chars, move chars, delete account and chars";
}
+3 -3
View File
@@ -18,7 +18,7 @@ $type = $request->get("type", "");
?>
<form method="get" action="accounts.html">
<b>Account Search:</b><br>
<input name="type" type="radio" value="account" <?if($type ne "char") { print "checked"; } ?> > Account Name &nbsp;
<input name="type" type="radio" value="account" <?if($type ne "char") { print "checked"; } ?> > Account Name &nbsp;
<input name="type" type="radio" value="char" <?if($type eq "char") { print "checked"; } ?> > Character Name
<br>
<input name="name" type="text" value="<?print $query;?>">
@@ -41,8 +41,8 @@ if ($query) {
}
my $res=$EQDB->query($q);
if ($res) {
if ($res) {
print "<table border=\"1\" cellspacing=\"2\" cellpadding=\"3\" class=\"zonelist\">\n";
print "\t<tr>\n";
if ($type eq "char") {
+1 -1
View File
@@ -12,7 +12,7 @@
my $id = $request->get("id", "0");
$EQW->ResolveBug($id);
}
$offset = $request->get("offset", "0");
$count = $EQW->CountBugs();
@bugs = $EQW->ListBugs($offset);
+1 -1
View File
@@ -37,7 +37,7 @@ if (defined($gets->{"update.x"})) {
my $i=0;
$q="select * from commands order by command";
my $res=$EQDB->query($q);
if ($res) {
if ($res) {
print "<table id=\"cmd_tab\" border=\"1\" cellspacing=\"2\" cellpadding=\"3\" class=\"zonelist\"><tr>\n";
printf "\t\t<th scope=\"col\" width=\"150\">Command</th>\n";
printf "\t\t<th scope=\"col\" width=\"70\">Access</th>\n";
+6 -6
View File
@@ -14,7 +14,7 @@
my $gid = $request->getInt("id", 0);
if($gid > 0) {
my $act = $request->get("action", "");
#note: delete action should be done on the actions.html page, so we can redirect elsewhere.
if($act eq "makeleader") {
my $char = $request->getInt("char", 0);
@@ -39,9 +39,9 @@ if($gid > 0) {
print "Invalid char in remove member.<hr/>";
}
}
my $q = "SELECT g.id,g.name,g.leader,g.motd,g.motd_setter,g.tribute,c.name AS lname FROM guilds AS g LEFT JOIN character_ AS c ON g.leader=c.id WHERE g.id=$gid";
my $res=$EQDB->query($q);
my $row;
@@ -61,7 +61,7 @@ HTML
."LEFT JOIN character_ AS c ON g.char_id=c.id "
."LEFT JOIN guild_ranks AS gr ON g.rank=gr.rank AND g.guild_id=gr.guild_id "
."WHERE g.guild_id=$gid";
my $res2 = $EQDB->query($q);
if($res2) {
print <<"HTML";
@@ -93,7 +93,7 @@ HTML
<td align="center">$tline/$row2->{total_tribute}</td>
<td align="center">$row2->{public_note}</td>
<td align="center">
<a href="guild.html?id=$gid&action=remove&char=$row2->{char_id}">Remove</a> -
<a href="guild.html?id=$gid&action=remove&char=$row2->{char_id}">Remove</a> -
<a href="guild.html?id=$gid&action=makeleader&char=$row2->{char_id}">Make Leader</a></td>
</tr>
CHAR
+1 -1
View File
@@ -11,7 +11,7 @@
<h2 align="center">Guild List</h2>
<hr/>
<div align="center">
<a href="guildcreate.html">Create Guild</a> -
<a href="guildcreate.html">Create Guild</a> -
<a href="guildsearch.html">Search Guilds</a>
</div>
<hr/>
+5 -5
View File
@@ -114,9 +114,9 @@ if($act eq "Boot") {
?>
<div align="center">
<a href="?name=<? print $lname; ?>">Reload</a> -
<a href="?name=<? print $lname; ?>&action=rebootall">Reboot All Zones</a> -
<a href="?name=<? print $lname; ?>&action=stopall">Stop All Zones</a> -
<a href="?name=<? print $lname; ?>">Reload</a> -
<a href="?name=<? print $lname; ?>&action=rebootall">Reboot All Zones</a> -
<a href="?name=<? print $lname; ?>&action=stopall">Stop All Zones</a> -
<a href="?name=<? print $lname; ?>&action=startall">Start All Zones</a>
</div>
<hr/>
@@ -153,7 +153,7 @@ if($act eq "Boot") {
</tr>
<?
my @zones = $config->ListZones();
for my $zone (sort @zones) {
my $z = $config->GetZoneDetails($zone);
if(!$z) {
@@ -161,7 +161,7 @@ if($act eq "Boot") {
} elsif($z->{error}) {
$zone->{name} = "ERROR: $z->{error}";
}
print "<tr>\n";
print "\t<td><a href='zone.html?zone=$z->{name}'>$z->{name}</a></td>";
if($z->{up}) {
+2 -2
View File
@@ -9,7 +9,7 @@
<?
@list = $EQW->ListLaunchers();
?>
<body>
<h2 align="center">Launchers</h2>
@@ -51,7 +51,7 @@ print "You have ".($#list+1)." launchers. (@list)";
<form action="launcher.html" method="POST">
Add Launcher: Name: <input type='text' name='name'>
Dynamic Count: <input type='text' name='dynamics' size="3">
Dynamic Count: <input type='text' name='dynamics' size="3">
<input type='submit' name='action' value='Add'>
</form>
+9 -9
View File
@@ -45,26 +45,26 @@ table {
border-collapse:collapse;
}
th {
margin:2px;
margin:2px;
padding: 2px;
border:1px solid #2b6874;
background-color:#2b6874;
color:#dddddd;
background-color:#2b6874;
color:#dddddd;
font-weight:bold;
}
td {
margin:2px;
margin:2px;
padding: 2px;
border:1px solid #2b6874;
background-color:#12282F;
color:#aaaaaa;
border:1px solid #2b6874;
background-color:#12282F;
color:#aaaaaa;
}
.headtbl {
border: 0px;
margin: 0px;
padding: 0px;
margin: 0px;
padding: 0px;
background-color: #091315;
}
+2 -2
View File
@@ -25,11 +25,11 @@
print "\t<tr>\n";
print "\t\t<td><a href=\"rules.html?ruleset_id=$row->{ruleset_id}\">$row->{name}</a></td>\n";
print "\t\t<td><a href=\"rules.html?ruleset_id=$row->{ruleset_id}\">$row->{ruleset_id}</a></td>\n";
my $q2 = "SELECT COUNT(ruleset_id) AS num_rules FROM rule_values WHERE ruleset_id = '$row->{ruleset_id}'";
my $res2 = $EQDB->query($q2);
my $row2 = $res2->fetch_row_hash;
print "\t\t<td>$row2->{num_rules}</td>\n";
#print "\t\t<td><input type=\"image\" src=\"delete.gif\" alt=\"Delete\"></td>\n";
print "\t</tr>\n";
+4 -4
View File
@@ -35,14 +35,14 @@
if ($ruleset_id !~ m/^[0-9]+$/) {$ruleset_id = 1;} #this should default any non-numeric values (particularly blank ones), also making it free from injections
my $rule_type = $request->get("rule_type", "All"); #not safe from injection as-is
if ($rule_type !~ m/^\w+$/i) {$rule_type = "All";} #this should make it safe from injection, but may cause issues if we start using non-alphanumeric characters in the first part of the rule_name
#now, we'll put together a list of the rule categories that we can filter by
print "<center>\n\t";
if ($rule_type eq "All") {print "<b>";}
print "<a href=\"rules.html?ruleset_id=$ruleset_id&rule_type=All\">All</a>";
if ($rule_type eq "All") {print "</b>";}
my $q = "SELECT DISTINCT(SUBSTRING(rule_name, 1, LOCATE(':', rule_name) - 1)) AS rule_type FROM rule_values WHERE ruleset_id = '$ruleset_id' ORDER BY rule_type ASC";
my $res = $EQDB->query($q);
if ($res) {
@@ -73,7 +73,7 @@
#print "\t\t<td></td>\n";
#print "\t\t<td colspan=\"2\"><button>Add</button></td>\n";
#print "\t<tr>\n";
#lastly, output any matching rules
my $w2 = "WHERE ruleset_id = '$ruleset_id'";
if ($rule_type ne "All") {
+1 -1
View File
@@ -9,7 +9,7 @@
<body class="edgebody">
<table width="862" height="100" border="0" cellpadding="0" cellspacing="0" class="headtbl">
<tr class="headtbl">
<tr class="headtbl">
<td width="159" height="100" valign="top" class="headtbl">
<img src="head_01_nb.jpg" width="159" height="100"></td>
<td class="headtbl"><img src="head_02_nb.jpg" width="480" height="100"></td>
+1 -1
View File
@@ -36,7 +36,7 @@ if (defined($gets->{"update.x"})) {
my $i=0;
$q="select * from variables order by varname";
my $res=$EQDB->query($q);
if ($res) {
if ($res) {
print "<table id=\"var_tab\" border=\"1\" cellspacing=\"2\" cellpadding=\"3\" class=\"zonelist\"><tr>\n";
printf "\t\t<th scope=\"col\" width=\"150\">Variable</th>\n";
printf "\t\t<th scope=\"col\" width=\"250\">Description</th>\n";