mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Remove trailing whitespace
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
<!-- Sets the shared key used by zone/launcher to connect to world -->
|
||||
<key>some long random string</key>
|
||||
|
||||
|
||||
<!-- Enable and set the port for the HTTP service. Defaults are shown -->
|
||||
<http port="9080" enabled="false" mimefile="mime.types" />
|
||||
</world>
|
||||
|
||||
+15
-15
@@ -3,24 +3,24 @@
|
||||
# http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/extension-map.html
|
||||
# for more details
|
||||
|
||||
application/postscript ai eps ps
|
||||
application/rtf rtf
|
||||
application/x-tex tex
|
||||
application/x-texinfo texinfo texi
|
||||
application/x-troff t tr roff
|
||||
audio/basic au snd
|
||||
application/postscript ai eps ps
|
||||
application/rtf rtf
|
||||
application/x-tex tex
|
||||
application/x-texinfo texinfo texi
|
||||
application/x-troff t tr roff
|
||||
audio/basic au snd
|
||||
audio/x-aiff aif aiff aifc
|
||||
audio/x-wav wav
|
||||
image/gif gif
|
||||
image/ief ief
|
||||
audio/x-wav wav
|
||||
image/gif gif
|
||||
image/ief ief
|
||||
image/jpeg jpeg jpg jpe
|
||||
image/tiff tiff tif
|
||||
image/x-xwindowdump xwd
|
||||
text/html html
|
||||
image/tiff tiff tif
|
||||
image/x-xwindowdump xwd
|
||||
text/html html
|
||||
text/plain txt c cc h
|
||||
video/mpeg mpeg mpg mpe
|
||||
video/quicktime qt mov
|
||||
video/x-msvideo avi
|
||||
video/mpeg mpeg mpg mpe
|
||||
video/quicktime qt mov
|
||||
video/x-msvideo avi
|
||||
video/x-sgi-movie movie
|
||||
text/css css
|
||||
image/png png
|
||||
|
||||
@@ -34,7 +34,7 @@ sub check_mq_handin {
|
||||
return 1;
|
||||
}
|
||||
|
||||
sub return_items {
|
||||
sub return_items {
|
||||
my $hashref = plugin::var('$itemcount');
|
||||
my $client = plugin::val('$client');
|
||||
my $items_returned = 0;
|
||||
@@ -45,7 +45,7 @@ sub return_items {
|
||||
2 => [ plugin::val('$item3'), plugin::val('$item3_charges'), plugin::val('$item3_attuned') ],
|
||||
3 => [ plugin::val('$item4'), plugin::val('$item4_charges'), plugin::val('$item4_attuned') ],
|
||||
);
|
||||
|
||||
|
||||
foreach my $k (keys(%{$hashref}))
|
||||
{
|
||||
next if($k == 0);
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
<input name="type" type="radio" value="account" <?if($type ne "char") { print "checked"; } ?> > Account Name
|
||||
<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") {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/>
|
||||
|
||||
@@ -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}) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?
|
||||
my $action = $request->get("action", "none");
|
||||
my $bug_id = $request->get("bug_id", "-1");
|
||||
|
||||
|
||||
if($action eq "resolve") {
|
||||
if($bug_id != -1) {
|
||||
$EQW->ResolveBug($bug_id);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
print "{";
|
||||
print "\"status\" : 1,";
|
||||
print "\"message\" : \"\"";
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
print "\"message\" : \"Missing launcher name in Remove action\"";
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if($action eq "add") {
|
||||
my $dynamic_count = $request->get("dynamic_count", "0");
|
||||
if($dynamic_count < 0 || $dynamic_count > 254) {
|
||||
@@ -40,7 +40,7 @@
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if($port < 0 || $port > 65535) {
|
||||
print "{";
|
||||
print "\"status\" : 0, ";
|
||||
@@ -48,14 +48,14 @@
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(!$config->BootStaticZone($zone, $port)) {
|
||||
print "{";
|
||||
print "\"status\" : 0, ";
|
||||
print "\"message\" : \"Failed to boot '$zone' on launcher $launcher_name with port $port. Invalid zone?\"";
|
||||
print "}";
|
||||
return;
|
||||
}
|
||||
}
|
||||
} elsif($action eq "change_dynamic_count") {
|
||||
my $dynamic_count = $request->get("dynamic_count", "0");
|
||||
$config->SetDynamicCount($dynamic_count);
|
||||
@@ -73,7 +73,7 @@
|
||||
print "\"status\" : 0, ";
|
||||
print "\"message\" : \"Failed to remove '$zone' on launcher $launcher_name. Invalid zone?\"";
|
||||
print "}";
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
} elsif($action eq "reboot_all") {
|
||||
@@ -98,7 +98,7 @@
|
||||
return;
|
||||
} else {
|
||||
$config->RestartZone($zone);
|
||||
}
|
||||
}
|
||||
} elsif($action eq "start_zone") {
|
||||
my $zone = $request->get("zone", "none");
|
||||
if($zone eq "none" || $zone eq "") {
|
||||
@@ -122,7 +122,7 @@
|
||||
$config->StopZone($zone);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
print "{";
|
||||
print "\"status\" : 1";
|
||||
print "}";
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
} elsif($act eq "lsreconnect") {
|
||||
$EQW->LSReconnect();
|
||||
}
|
||||
|
||||
|
||||
print "{";
|
||||
if($EQW->LSConnected()) {
|
||||
print "\"connected\" : \"1\",";
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
} elsif($act eq "killall") {
|
||||
} elsif($act eq "restartall") {
|
||||
}
|
||||
|
||||
|
||||
print "{";
|
||||
print "\"status\" : 1";
|
||||
print "}";
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
var offset = 0;
|
||||
function StatusTic() {
|
||||
$.getJSON("data/bug_data.html?offset="+offset+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById("open_bugs_count");
|
||||
|
||||
|
||||
var cur_offset = offset / 50;
|
||||
var sep = (data.total_bug_count / 50);
|
||||
var app = "";
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
}
|
||||
elm.innerHTML = app;
|
||||
|
||||
|
||||
$("#bug_table").empty();
|
||||
var app_html = "<tr>";
|
||||
app_html += "<th scope=\"col\">Actions</th>";
|
||||
@@ -41,7 +41,7 @@
|
||||
app_html += "<th scope=\"col\">Descripton</th>";
|
||||
app_html += "</tr>";
|
||||
$("#bug_table").append(app_html);
|
||||
for(var i = 0; i < data.bug_count; i++) {
|
||||
for(var i = 0; i < data.bug_count; i++) {
|
||||
app_html = "";
|
||||
var mod = i % 2;
|
||||
if(mod == 1) {
|
||||
@@ -49,7 +49,7 @@
|
||||
} else {
|
||||
app_html += "<tr>";
|
||||
}
|
||||
|
||||
|
||||
var bug_text = data.bugs[i].bug;
|
||||
bug_text = bug_text.replace("\r", "");
|
||||
bug_text = bug_text.replace("\n", "</br>");
|
||||
@@ -59,16 +59,16 @@
|
||||
app_html += "<td>"+data.bugs[i].target+"</td>";
|
||||
app_html += "<td style=\"text-align:left;\">"+bug_text+"</td>";
|
||||
app_html += "</tr>";
|
||||
$("#bug_table").append(app_html);
|
||||
$("#bug_table").append(app_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function OpenBugs(off) {
|
||||
offset = off;
|
||||
StatusTic();
|
||||
}
|
||||
|
||||
|
||||
function ResolveBug(id) {
|
||||
$.getJSON("actions/bug_action.html?action=resolve&bug_id="+id+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
@@ -76,11 +76,11 @@
|
||||
alert(data.message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
StatusTic();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 15000);
|
||||
});
|
||||
@@ -103,7 +103,7 @@
|
||||
for(my $i = 0; $i < $sep; ++$i) {
|
||||
my $cur = 50 * $i;
|
||||
my $name = $i + 1;
|
||||
|
||||
|
||||
if($i == $cur_offset) {
|
||||
print "<b>$name</b> ";
|
||||
}
|
||||
@@ -128,13 +128,13 @@
|
||||
if(!$bug) {
|
||||
next;
|
||||
}
|
||||
|
||||
|
||||
if($i % 2 == 1) {
|
||||
print "<tr class=\"odd\">";
|
||||
} else {
|
||||
print "<tr>";
|
||||
}
|
||||
|
||||
|
||||
my $bug_val = $bug->{bug};
|
||||
$bug_val =~ s/\r//g;
|
||||
$bug_val =~ s/\n/<br>/g;
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
var offset = 0;
|
||||
function StatusTic() {
|
||||
$.getJSON("data/bug_data.html?offset="+offset+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById("open_bugs_count");
|
||||
|
||||
|
||||
var cur_offset = offset / 50;
|
||||
var sep = (data.total_bug_count / 50);
|
||||
var app = "";
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
}
|
||||
elm.innerHTML = app;
|
||||
|
||||
|
||||
$("#bug_table").empty();
|
||||
var app_html = "<tr>";
|
||||
app_html += "<th scope=\"col\">Reporter</th>";
|
||||
@@ -40,7 +40,7 @@
|
||||
app_html += "<th scope=\"col\">Descripton</th>";
|
||||
app_html += "</tr>";
|
||||
$("#bug_table").append(app_html);
|
||||
for(var i = 0; i < data.bug_count; i++) {
|
||||
for(var i = 0; i < data.bug_count; i++) {
|
||||
app_html = "";
|
||||
var mod = i % 2;
|
||||
if(mod == 1) {
|
||||
@@ -48,7 +48,7 @@
|
||||
} else {
|
||||
app_html += "<tr>";
|
||||
}
|
||||
|
||||
|
||||
var bug_text = data.bugs[i].bug;
|
||||
bug_text = bug_text.replace("\r", "");
|
||||
bug_text = bug_text.replace("\n", "</br>");
|
||||
@@ -57,16 +57,16 @@
|
||||
app_html += "<td>"+data.bugs[i].target+"</td>";
|
||||
app_html += "<td style=\"text-align:left;\">"+bug_text+"</td>";
|
||||
app_html += "</tr>";
|
||||
$("#bug_table").append(app_html);
|
||||
$("#bug_table").append(app_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function OpenBugs(off) {
|
||||
offset = off;
|
||||
StatusTic();
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 6000);
|
||||
});
|
||||
@@ -89,7 +89,7 @@
|
||||
for(my $i = 0; $i < $sep; ++$i) {
|
||||
my $cur = 50 * $i;
|
||||
my $name = $i + 1;
|
||||
|
||||
|
||||
if($i == $cur_offset) {
|
||||
print "<b>$name</b> ";
|
||||
}
|
||||
@@ -113,13 +113,13 @@
|
||||
if(!$bug) {
|
||||
next;
|
||||
}
|
||||
|
||||
|
||||
if($i % 2 == 1) {
|
||||
print "<tr class=\"odd\">";
|
||||
} else {
|
||||
print "<tr>";
|
||||
}
|
||||
|
||||
|
||||
my $bug_val = $bug->{bug};
|
||||
$bug_val =~ s/\r//g;
|
||||
$bug_val =~ s/\n/<br>/g;
|
||||
|
||||
@@ -8,38 +8,38 @@
|
||||
<!--
|
||||
var hidden_text = true;
|
||||
var timeout = null;
|
||||
|
||||
|
||||
var idx = Math.floor((Math.random()*100000000));
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/console_data.html?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById("console_output");
|
||||
var message = "";
|
||||
var cout = $('#console_output');
|
||||
|
||||
|
||||
for(var i = 0; i < data.message_count; i++) {
|
||||
message += data.messages[i].message;
|
||||
message += "\n";
|
||||
}
|
||||
|
||||
|
||||
var cur_value = elm.value;
|
||||
if(cur_value != message) {
|
||||
elm.value = message;
|
||||
cout.scrollTop(99999);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ConsoleKey(event) {
|
||||
if(hidden_text == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
var keycode = ('which' in event) ? event.which : event.keyCode;
|
||||
|
||||
var keycode = ('which' in event) ? event.which : event.keyCode;
|
||||
if(keycode == 13) {
|
||||
var cinp = document.getElementById("console_input");
|
||||
var cinp_value = cinp.value;
|
||||
@@ -47,7 +47,7 @@
|
||||
cinp.disabled = true;
|
||||
HideError();
|
||||
timeout = setTimeout("CommandTimeout()", 10000);
|
||||
|
||||
|
||||
$.getJSON("actions/console_action.html?action=input&text="+cinp_value+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
cinp.value = "";
|
||||
@@ -60,61 +60,61 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function BodyKey(event) {
|
||||
var keycode = ('which' in event) ? event.which : event.keyCode;
|
||||
var keycode = ('which' in event) ? event.which : event.keyCode;
|
||||
if (keycode == 27 && hidden_text == false) {
|
||||
HideInput();
|
||||
} else if(hidden_text == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(keycode == 13) {
|
||||
ShowInput();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function ShowInput() {
|
||||
hidden_text = false;
|
||||
document.getElementById("console_input").value="";
|
||||
$("#console_input").fadeIn("slow");
|
||||
document.getElementById('console_input').focus();
|
||||
}
|
||||
|
||||
|
||||
function HideInput() {
|
||||
hidden_text = true;
|
||||
document.getElementById("console_input").value="";
|
||||
$("#console_input").fadeOut("slow");
|
||||
HideError();
|
||||
}
|
||||
|
||||
|
||||
function ShowError(msg) {
|
||||
$("#console_error").html("Error: " + msg);
|
||||
$("#console_error").show();
|
||||
$("#console_error").css("display", "block");
|
||||
}
|
||||
|
||||
|
||||
function HideError() {
|
||||
$("#console_error").html("");
|
||||
$("#console_error").hide();
|
||||
}
|
||||
|
||||
|
||||
function CommandTimeout() {
|
||||
var cinp = document.getElementById("console_input");
|
||||
cinp.disabled = false;
|
||||
alert("Timed out sending command to server.");
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
StatusTic();
|
||||
setInterval("StatusTic()", 5000);
|
||||
var elm = document.getElementById("console_output");
|
||||
elm.value = "";
|
||||
|
||||
|
||||
elm = document.getElementById("console_input");
|
||||
elm.value = "";
|
||||
elm.disabled = false;
|
||||
|
||||
|
||||
$('#console_output').scrollTop(99999);
|
||||
});
|
||||
-->
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
my $bug_count = @bugs;
|
||||
my $total_bug_count = $EQW->CountBugs();
|
||||
print "{";
|
||||
print "\"total_bug_count\" : $total_bug_count,";
|
||||
print "\"total_bug_count\" : $total_bug_count,";
|
||||
print "\"bug_count\" : $bug_count,";
|
||||
print "\"bugs\" : ";
|
||||
print "[";
|
||||
my $i = 0;
|
||||
for my $bugkey (@bugs) {
|
||||
my $bug = $EQW->GetBugDetails($bugkey);
|
||||
|
||||
|
||||
my $bug_val = $bug->{bug};
|
||||
$bug_val =~ s/\\/\\\\/g;
|
||||
$bug_val =~ s/\//\\\//g;
|
||||
@@ -32,7 +32,7 @@
|
||||
print "\"x\" : \"$bug->{x}\",";
|
||||
print "\"y\" : \"$bug->{y}\",";
|
||||
print "\"z\" : \"$bug->{z}\"";
|
||||
|
||||
|
||||
print "}";
|
||||
if($i != $bug_count - 1) {
|
||||
print ",";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
print "\"message_count\" : $message_count,";
|
||||
print "\"messages\" : ";
|
||||
print "[";
|
||||
for(my $i = 0; $i < $message_count; $i++)
|
||||
for(my $i = 0; $i < $message_count; $i++)
|
||||
{
|
||||
print "{";
|
||||
my $msg = $EQW->GetConsoleMessage($i);
|
||||
@@ -19,7 +19,7 @@
|
||||
$message =~ s/\x0C/\\b/g;
|
||||
$message =~ s/[\x00-\x1F]/\./g;
|
||||
$message =~ s/[\x7F-\xFF]/\./g;
|
||||
|
||||
|
||||
print "\"message\" : \"$message\"";
|
||||
print "}";
|
||||
if($i != $message_count - 1) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
$launcher_name = $request->get("launcher", "none");
|
||||
|
||||
if($launcher_name eq "none") {
|
||||
@launchers = sort $EQW->ListLaunchers();
|
||||
@launchers = sort $EQW->ListLaunchers();
|
||||
my $launcher_count = @launchers;
|
||||
print "{";
|
||||
print "\"launcher_count\" : $launcher_count,";
|
||||
@@ -22,14 +22,14 @@
|
||||
}
|
||||
print "\"connected\" : ". $conn;
|
||||
print "}";
|
||||
|
||||
|
||||
if($i != $launcher_count - 1) {
|
||||
print ",";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
print "]";
|
||||
print "]";
|
||||
print "}";
|
||||
} else {
|
||||
my $l = $EQW->GetLauncher($lname);
|
||||
@@ -56,13 +56,13 @@
|
||||
print "\"starts\" : $z->{starts},";
|
||||
print "\"port\" : $z->{port}";
|
||||
print "}";
|
||||
|
||||
|
||||
if($i != $zone_count - 1) {
|
||||
print ", ";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
print "]";
|
||||
print "}";
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
print "\"player_count\" : $player_count,";
|
||||
print "\"players\" : ";
|
||||
print "[";
|
||||
|
||||
|
||||
my $i = 0;
|
||||
for my $player (@players) {
|
||||
my $pd = $EQW->GetPlayerDetails($player);
|
||||
|
||||
|
||||
print "{";
|
||||
print "\"character\" : \"$pd->{character}\",";
|
||||
print "\"account\" : \"$pd->{account}\",";
|
||||
@@ -29,13 +29,13 @@
|
||||
print "\"status\" : \"$pd->{status}\",";
|
||||
print "\"client_version\" : \"$pd->{client_version}\"";
|
||||
print "}";
|
||||
|
||||
|
||||
if($i != $player_count - 1) {
|
||||
print ",";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
print "]";
|
||||
print "}";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?
|
||||
print "{";
|
||||
if($EQW->LSConnected()) {
|
||||
print "\"connected\" : \"1\",";
|
||||
|
||||
@@ -19,9 +19,9 @@ for(my $i = 0; $i < $zone_count; $i++) {
|
||||
print "\"long_name\" : \"$zone->{long_name}\",";
|
||||
print "\"port\" : $zone->{port},";
|
||||
print "\"player_count\" : $zone->{player_count},";
|
||||
print "\"instance_id\" : $zone->{instance_id}";
|
||||
print "\"instance_id\" : $zone->{instance_id}";
|
||||
print "}";
|
||||
|
||||
|
||||
if($i != $zone_count - 1) {
|
||||
print ",";
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 665 B |
@@ -8,34 +8,34 @@
|
||||
<!--
|
||||
var locked = 0;
|
||||
var connected = 0;
|
||||
|
||||
|
||||
var idx = Math.floor((Math.random()*100000000));
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/player_count.html"+"?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById('pcount');
|
||||
elm.innerHTML = data.player_count;
|
||||
});
|
||||
|
||||
|
||||
$.getJSON("data/zone_count.html"+"?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById('zcount');
|
||||
elm.innerHTML = data.zone_count;
|
||||
});
|
||||
|
||||
|
||||
$.getJSON("data/launcher_count.html"+"?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById('lcount');
|
||||
elm.innerHTML = data.launcher_count;
|
||||
});
|
||||
|
||||
|
||||
$.getJSON("data/world_status.html"+"?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
|
||||
|
||||
var elm = document.getElementById('lock_status');
|
||||
if(data.locked == 1) {
|
||||
elm.innerHTML = "locked";
|
||||
@@ -46,7 +46,7 @@
|
||||
elm = document.getElementById('lock_link');
|
||||
elm.innerHTML = "Lock World";
|
||||
}
|
||||
|
||||
|
||||
elm = document.getElementById('conn_status');
|
||||
if(data.connected == 1) {
|
||||
elm.innerHTML = "connected";
|
||||
@@ -57,21 +57,21 @@
|
||||
elm = document.getElementById('restart_id');
|
||||
elm.style.display = 'inline';
|
||||
}
|
||||
|
||||
|
||||
locked = data.locked;
|
||||
connected = data.connected;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ToggleLock() {
|
||||
var action = "lock";
|
||||
if(locked == 1) {
|
||||
action = "unlock";
|
||||
}
|
||||
|
||||
|
||||
$.getJSON("actions/world_action.html?action=" + action+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
|
||||
|
||||
var elm = document.getElementById('lock_status');
|
||||
if(data.locked == 1) {
|
||||
elm.innerHTML = "locked";
|
||||
@@ -82,7 +82,7 @@
|
||||
elm = document.getElementById('lock_link');
|
||||
elm.innerHTML = "Lock World";
|
||||
}
|
||||
|
||||
|
||||
elm = document.getElementById('conn_status');
|
||||
if(data.connected == 1) {
|
||||
elm.innerHTML = "connected";
|
||||
@@ -93,16 +93,16 @@
|
||||
elm = document.getElementById('restart_id');
|
||||
elm.style.display = 'inline';
|
||||
}
|
||||
|
||||
|
||||
locked = data.locked;
|
||||
connected = data.connected;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function Reconnect() {
|
||||
$.getJSON("actions/world_action.html?action=lsreconnect"+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
|
||||
|
||||
var elm = document.getElementById('lock_status');
|
||||
if(data.locked == 1) {
|
||||
elm.innerHTML = "locked";
|
||||
@@ -113,7 +113,7 @@
|
||||
elm = document.getElementById('lock_link');
|
||||
elm.innerHTML = "Lock World";
|
||||
}
|
||||
|
||||
|
||||
elm = document.getElementById('conn_status');
|
||||
if(data.connected == 1) {
|
||||
elm.innerHTML = "connected";
|
||||
@@ -126,9 +126,9 @@
|
||||
}
|
||||
locked = data.locked;
|
||||
connected = data.connected;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
});
|
||||
@@ -142,13 +142,13 @@
|
||||
<?
|
||||
my $zcount = $EQW->CountZones();
|
||||
my $lcount = $EQW->CountLaunchers(1);
|
||||
my $pcount = $EQW->CountPlayers();
|
||||
|
||||
my $pcount = $EQW->CountPlayers();
|
||||
|
||||
print "<table width='38%' class='styled_table' cellpadding='0' cellspacing='0' align='center'>";
|
||||
print "<tr>";
|
||||
print "<th>Zones Booted<th>";
|
||||
print "<th>Launchers Connected<th>";
|
||||
print "<th>Players Online<th>";
|
||||
print "<th>Players Online<th>";
|
||||
print "</tr>";
|
||||
print "<tr>";
|
||||
print "<td><a href='zones.html' id='zcount'>$zcount</a><td>";
|
||||
@@ -156,7 +156,7 @@
|
||||
print "<td><a href='players.html' id='pcount'>$pcount</a><td>";
|
||||
print "</tr>";
|
||||
print "</table></br>";
|
||||
|
||||
|
||||
if($EQW->LSConnected()) {
|
||||
my $ls = $EQW->GetConfig("LoginHost");
|
||||
my $lsp = $EQW->GetConfig("LoginPort");
|
||||
@@ -170,17 +170,17 @@
|
||||
print "<div width='38%' align='center'>";
|
||||
print "$ls_str";
|
||||
print "</div></br>";
|
||||
|
||||
|
||||
if($EQW->GetConfig("Locked") eq "true") {
|
||||
$locked_str = "World is <span id='lock_status'>locked</span>. <a href='javascript:void(0)' id='lock_link' onclick='ToggleLock()'>Unlock World</a>.<br>";
|
||||
print "<script><!--locked = 1;--></script>";
|
||||
} else {
|
||||
$locked_str = "World is <span id='lock_status'><b>NOT</b> locked</span>. <a href='javascript:void(0)' id='lock_link' onclick='ToggleLock()'>Lock World</a>.<br>";
|
||||
}
|
||||
|
||||
|
||||
print "<div width='38%' align='center'>";
|
||||
print "$locked_str";
|
||||
print "</div>";
|
||||
print "</div>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/launcher_data.html?launcher="+<?print "\"$lname\"";?>+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
@@ -57,23 +57,23 @@
|
||||
}
|
||||
app_html += "</td>";
|
||||
app_html += "</tr>";
|
||||
$("#launcher_table").append(app_html);
|
||||
$("#launcher_table").append(app_html);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ShowAddLauncher() {
|
||||
$("#add_launcher_link").hide();
|
||||
$("#min_add_launcher_link").show();
|
||||
$("#add_launcher_table").fadeIn("slow");
|
||||
}
|
||||
|
||||
|
||||
function HideAddLauncher() {
|
||||
$("#add_launcher_link").show();
|
||||
$("#min_add_launcher_link").hide();
|
||||
$("#add_launcher_table").fadeOut("slow");
|
||||
}
|
||||
|
||||
|
||||
function BootZone() {
|
||||
var elm = document.getElementById("short_name_field");
|
||||
var bzone = elm.value;
|
||||
@@ -81,23 +81,23 @@
|
||||
elm = document.getElementById("port_field");
|
||||
var bport = elm.value;
|
||||
elm.value = "0";
|
||||
|
||||
|
||||
elm = document.getElementById("boot_button_img");
|
||||
elm.style.display = "inline";
|
||||
|
||||
|
||||
elm = document.getElementById("boot_button");
|
||||
elm.className = "styled_button_disabled";
|
||||
$('#boot_button').unbind('click');
|
||||
|
||||
|
||||
$.getJSON("actions/launcher_action.html?action=boot&launcher_name="+<?print "\"$lname\"";?>+"&zone="+bzone+"&port="+bport+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
$('#boot_button').bind('click', BootZone);
|
||||
elm = document.getElementById("boot_button");
|
||||
elm.className = "styled_button";
|
||||
|
||||
|
||||
elm = document.getElementById("boot_button_img");
|
||||
elm.style.display = "none";
|
||||
|
||||
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -105,38 +105,38 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ChangeDynamicCount() {
|
||||
var elm = document.getElementById("dynamic_count_field");
|
||||
var dcount = elm.value;
|
||||
|
||||
|
||||
elm = document.getElementById("dynamic_count_button_img");
|
||||
elm.style.display = "inline";
|
||||
|
||||
|
||||
elm = document.getElementById("dynamic_count_button");
|
||||
elm.className = "styled_button_disabled";
|
||||
$('#dynamic_count_button').unbind('click');
|
||||
|
||||
|
||||
$.getJSON("actions/launcher_action.html?action=change_dynamic_count&launcher_name="+<?print "\"$lname\"";?>+"&dynamic_count="+dcount+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
$('#dynamic_count_button').bind('click', ChangeDynamicCount);
|
||||
elm = document.getElementById("dynamic_count_button");
|
||||
elm.className = "styled_button";
|
||||
|
||||
|
||||
elm = document.getElementById("dynamic_count_button_img");
|
||||
elm.style.display = "none";
|
||||
|
||||
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
StatusTic();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function RemoveZone(zone_name) {
|
||||
$.getJSON("actions/launcher_action.html?action=remove_zone&launcher_name="+<?print "\"$lname\"";?>+"&zone="+zone_name+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -144,10 +144,10 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function RebootAll() {
|
||||
$.getJSON("actions/launcher_action.html?action=reboot_all&launcher_name="+<?print "\"$lname\"";?>+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -155,10 +155,10 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function StopAll() {
|
||||
$.getJSON("actions/launcher_action.html?action=stop_all&launcher_name="+<?print "\"$lname\"";?>+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -166,10 +166,10 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function StartAll() {
|
||||
$.getJSON("actions/launcher_action.html?action=start_all&launcher_name="+<?print "\"$lname\"";?>+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -177,21 +177,21 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function RestartZone(zone) {
|
||||
$.getJSON("actions/launcher_action.html?action=restart_zone&launcher_name="+<?print "\"$lname\"";?>+"&zone="+zone+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
StatusTic();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function StartZone(zone) {
|
||||
$.getJSON("actions/launcher_action.html?action=start_zone&launcher_name="+<?print "\"$lname\"";?>+"&zone="+zone+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -199,10 +199,10 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function StopZone(zone) {
|
||||
$.getJSON("actions/launcher_action.html?action=stop_zone&launcher_name="+<?print "\"$lname\"";?>+"&zone="+zone+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
function(data) {
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -210,14 +210,14 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
$('#boot_button').bind('click', BootZone);
|
||||
$('#dynamic_count_button').bind('click', ChangeDynamicCount);
|
||||
});
|
||||
-->
|
||||
</script>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -230,8 +230,8 @@
|
||||
}
|
||||
?>
|
||||
<div align="center">
|
||||
<a href="#" onclick='RebootAll()'>Reboot All Zones</a> -
|
||||
<a href="#" onclick='StopAll()'>Stop All Zones</a> -
|
||||
<a href="#" onclick='RebootAll()'>Reboot All Zones</a> -
|
||||
<a href="#" onclick='StopAll()'>Stop All Zones</a> -
|
||||
<a href="#" onclick='StartAll()'>Start All Zones</a>
|
||||
</div>
|
||||
</br>
|
||||
@@ -255,7 +255,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table id='launcher_table' class='styled_table' width="70%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<th scope="col">Zone Name</th>
|
||||
@@ -266,7 +266,7 @@
|
||||
</tr>
|
||||
<?
|
||||
my @zones = $config->ListZones();
|
||||
|
||||
|
||||
for my $zone (sort @zones) {
|
||||
my $z = $config->GetZoneDetails($zone);
|
||||
if(!$z) {
|
||||
@@ -274,7 +274,7 @@
|
||||
} 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}) {
|
||||
@@ -307,7 +307,7 @@
|
||||
print "</tr>\n";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/launcher_data.html?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
|
||||
|
||||
$("#launcher_table").empty();
|
||||
var app_html = "<tr>";
|
||||
app_html += "<th scope=\"col\">Launcher Name </th>";
|
||||
@@ -22,7 +22,7 @@
|
||||
app_html += "<th scope=\"col\">Actions</th>";
|
||||
app_html += "</tr>";
|
||||
$("#launcher_table").append(app_html);
|
||||
|
||||
|
||||
var i = 0;
|
||||
for(var i = 0; i < data.launcher_count; i++) {
|
||||
app_html = "<tr>";
|
||||
@@ -37,12 +37,12 @@
|
||||
app_html += "<a href='javascript:void(0)' onclick='RemoveLauncher(\"" + data.launchers[i].name + "\")'>Remove</a>";
|
||||
app_html += "</td>\n";
|
||||
app_html += "</tr>\n";
|
||||
|
||||
|
||||
$("#launcher_table").append(app_html);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function RemoveLauncher(name) {
|
||||
$.getJSON("actions/launcher_action.html?action=remove&launcher_name="+name+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
@@ -53,32 +53,32 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function AddLauncher() {
|
||||
var elm = document.getElementById("al_add_button_img");
|
||||
elm.style.display = "inline";
|
||||
|
||||
|
||||
elm = document.getElementById("al_add_button");
|
||||
elm.className = "styled_button_disabled";
|
||||
$('#al_add_button').unbind('click');
|
||||
|
||||
elm = document.getElementById("al_name");
|
||||
|
||||
elm = document.getElementById("al_name");
|
||||
var launcher_name = elm.value;
|
||||
elm.value = "";
|
||||
|
||||
elm = document.getElementById("al_count");
|
||||
|
||||
elm = document.getElementById("al_count");
|
||||
var dynamic_count = elm.value;
|
||||
elm.value = "";
|
||||
|
||||
|
||||
$.getJSON("actions/launcher_action.html?action=add&launcher_name="+launcher_name+"&dynamic_count="+dynamic_count+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
$('#al_add_button').bind('click', AddLauncher);
|
||||
elm = document.getElementById("al_add_button");
|
||||
elm.className = "styled_button";
|
||||
|
||||
|
||||
elm = document.getElementById("al_add_button_img");
|
||||
elm.style.display = "none";
|
||||
|
||||
|
||||
if(data.status == 0) {
|
||||
alert(data.message);
|
||||
} else {
|
||||
@@ -86,19 +86,19 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ShowAddLauncher() {
|
||||
|
||||
function ShowAddLauncher() {
|
||||
$("#add_launcher_link").hide();
|
||||
$("#min_add_launcher_link").show();
|
||||
$("#add_launcher_table").fadeIn("slow");
|
||||
}
|
||||
|
||||
|
||||
function HideAddLauncher() {
|
||||
$("#add_launcher_link").show();
|
||||
$("#min_add_launcher_link").hide();
|
||||
$("#add_launcher_table").fadeOut("slow");
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
$('#al_add_button').bind('click', AddLauncher);
|
||||
@@ -107,7 +107,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<?
|
||||
@list = sort $EQW->ListLaunchers();
|
||||
@list = sort $EQW->ListLaunchers();
|
||||
?>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -139,9 +139,9 @@
|
||||
print "</td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
</br>
|
||||
<div align="center">
|
||||
<span id="add_launcher_link"><a href='javascript:void(0)' onclick='ShowAddLauncher()'>Add Launcher</a></span>
|
||||
@@ -150,7 +150,7 @@
|
||||
<table id="add_launcher_table" class='styled_table' width="40%" cellspacing="0" cellpadding="0" style="display:none;">
|
||||
<tr>
|
||||
<td>
|
||||
<h2>Add Launcher:</h2>
|
||||
<h2>Add Launcher:</h2>
|
||||
Name: <input type='text' name='name' id='al_name'>
|
||||
Dynamic Count: <input type='text' name='dynamics' size="3" id='al_count'>
|
||||
<button id='al_add_button' class='styled_button'><img id="al_add_button_img" src="images/loading.gif" height="16" width="16" style='display: none;'>Add</button>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
} else {
|
||||
print "No petitions"
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
<!--
|
||||
var zone = <?print "\"$zone\"";?>;
|
||||
var instance_id = <?print "\"$instance_id\"";?>;
|
||||
|
||||
|
||||
var idx = Math.floor((Math.random()*100000000));
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/player_data.html?zone="+zone+"&instance_id="+instance_id+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
@@ -33,14 +33,14 @@
|
||||
app_html += "<th scope=\"col\">Account Name</th>";
|
||||
app_html += "<th scope=\"col\">Location</th>";
|
||||
app_html += "</tr>";
|
||||
|
||||
|
||||
var elm = document.getElementById("player_count");
|
||||
elm.innerHTML = data.player_count;
|
||||
|
||||
|
||||
$("#player_table").append(app_html);
|
||||
for(var i = 0; i < data.player_count; i++) {
|
||||
app_html = "<tr>";
|
||||
|
||||
|
||||
app_html += "<tr id=\"row_$char->{character}\">";
|
||||
if(data.players[i].character == "") {
|
||||
app_html += "<td>Not Selected</td>";
|
||||
@@ -59,24 +59,24 @@
|
||||
}
|
||||
app_html += "<br>";
|
||||
app_html += " "+data.players[i].ip+"</td>";
|
||||
app_html += "<td>"+data.players[i].location_long+" ("+data.players[i].location_short+")</td>";
|
||||
app_html += "<td>"+data.players[i].location_long+" ("+data.players[i].location_short+")</td>";
|
||||
app_html += "</tr>";
|
||||
$("#player_table").append(app_html);
|
||||
$("#player_table").append(app_html);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function Kick(char_name) {
|
||||
$.getJSON("actions/kick_players.html?player=" + char_name+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
});
|
||||
|
||||
|
||||
-->
|
||||
</script>
|
||||
</head>
|
||||
@@ -95,7 +95,7 @@
|
||||
?>
|
||||
</div>
|
||||
</br>
|
||||
|
||||
|
||||
<table id="player_table" width="70%" cellspacing="0" cellpadding="0" class="styled_table">
|
||||
<tr>
|
||||
<th scope="col">Character</th>
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
<!--
|
||||
var zone = <?print "\"$zone\"";?>;
|
||||
var instance_id = <?print "\"$instance_id\"";?>;
|
||||
|
||||
|
||||
var idx = Math.floor((Math.random()*100000000));
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/player_data.html?zone="+zone+"&instance_id="+instance_id+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
@@ -32,14 +32,14 @@
|
||||
app_html += "<th scope=\"col\">Character</th>";
|
||||
app_html += "<th scope=\"col\">Location</th>";
|
||||
app_html += "</tr>";
|
||||
|
||||
|
||||
var elm = document.getElementById("player_count");
|
||||
elm.innerHTML = data.player_count;
|
||||
|
||||
|
||||
$("#player_table").append(app_html);
|
||||
for(var i = 0; i < data.player_count; i++) {
|
||||
app_html = "<tr>";
|
||||
|
||||
|
||||
app_html += "<tr id=\"row_$char->{character}\">";
|
||||
if(data.players[i].character == "") {
|
||||
app_html += "<td>Not Selected</td>";
|
||||
@@ -52,17 +52,17 @@
|
||||
app_html += data.players[i].level + " " + data.players[i].race + " " + data.players[i].class;
|
||||
app_html += "</td>";
|
||||
}
|
||||
app_html += "<td>"+data.players[i].location_long+" ("+data.players[i].location_short+")</td>";
|
||||
app_html += "<td>"+data.players[i].location_long+" ("+data.players[i].location_short+")</td>";
|
||||
app_html += "</tr>";
|
||||
$("#player_table").append(app_html);
|
||||
$("#player_table").append(app_html);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
});
|
||||
|
||||
|
||||
-->
|
||||
</script>
|
||||
</head>
|
||||
@@ -81,7 +81,7 @@
|
||||
?>
|
||||
</div>
|
||||
</br>
|
||||
|
||||
|
||||
<table id="player_table" width="70%" cellspacing="0" cellpadding="0" class="styled_table">
|
||||
<tr>
|
||||
<th scope="col">Character</th>
|
||||
|
||||
@@ -35,12 +35,12 @@ div.nav {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#787878', endColorstr='#414141');
|
||||
border-top: 0;
|
||||
padding-left: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
text-align: left;
|
||||
color: #333;
|
||||
border-top: 1px solid rgba(141, 141, 141, 1.0);
|
||||
}
|
||||
|
||||
|
||||
div.user_status {
|
||||
font-size: 10px;
|
||||
text-align: right;
|
||||
@@ -100,7 +100,7 @@ div.footer {
|
||||
.navmenu li a {
|
||||
display: block;
|
||||
padding-left: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
background-color: rgba(80, 80, 80, 1.0);
|
||||
@@ -115,7 +115,7 @@ div.footer {
|
||||
.navmenu ul li a {
|
||||
display: block;
|
||||
padding-left: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
background: 0;
|
||||
@@ -149,11 +149,11 @@ div.footer {
|
||||
display: block;
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navmenu li:hover li, .navmenu li.hover li {
|
||||
float: none;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.lt_left {
|
||||
@@ -222,7 +222,7 @@ div.footer {
|
||||
|
||||
.styled_table {
|
||||
border: 1px solid #000;
|
||||
text-align: left;
|
||||
text-align: left;
|
||||
background-color: #f5f5f5;
|
||||
margin-right:auto;
|
||||
margin-left:auto;
|
||||
@@ -231,7 +231,7 @@ div.footer {
|
||||
|
||||
.styled_table th {
|
||||
padding-left: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-right: 1.0em;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
background-color: rgba(80, 80, 80, 1.0);
|
||||
@@ -244,7 +244,7 @@ div.footer {
|
||||
}
|
||||
|
||||
.styled_table td, .styled_table th {
|
||||
padding: 4px 5px;
|
||||
padding: 4px 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -257,8 +257,8 @@ div.footer {
|
||||
}
|
||||
|
||||
.error {
|
||||
color:red;
|
||||
width: 75.5em;
|
||||
color:red;
|
||||
width: 75.5em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/zone_data.html?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById('zone_count');
|
||||
elm.innerHTML = data.zone_count;
|
||||
|
||||
|
||||
$("#zone_table").empty();
|
||||
var app_html = "<tr>";
|
||||
app_html += "<th scope=\"col\">Zone Name </th>";
|
||||
@@ -26,7 +26,7 @@
|
||||
app_html += "<th scope=\"col\">Actions</th>";
|
||||
app_html += "</tr>";
|
||||
$("#zone_table").append(app_html);
|
||||
|
||||
|
||||
var i = 0;
|
||||
for(var i = 0; i < data.zone_count; i++) {
|
||||
app_html = "<tr>";
|
||||
@@ -39,7 +39,7 @@
|
||||
} else {
|
||||
app_html += "<td><a href='zone.html?zone=" + data.zones[i].short_name + "&instance=" + data.zones[i].instance_id + "'>" + data.zones[i].long_name + "</a> (" + data.zones[i].short_name + ")</td>";
|
||||
}
|
||||
|
||||
|
||||
app_html += "<td>" + data.zones[i].port + "</td>";
|
||||
app_html += "<td>" + data.zones[i].instance_id + "</td>";
|
||||
app_html += "<td><a href='players.html?zone=" + data.zones[i].short_name + "&instance=" + data.zones[i].instance_id + "'>Players</a></td>";
|
||||
@@ -47,19 +47,19 @@
|
||||
app_html += "<a href='javascript:void(0)' onclick='Kill(" + data.zones[i].short_name + ", " + data.zones[i].instance_id +")'>Kill</a>";
|
||||
app_html += "</td>";
|
||||
app_html += "</tr>";
|
||||
|
||||
|
||||
$("#zone_table").append(app_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function Kill(short_name, instance_id) {
|
||||
$.getJSON("actions/zone_action.html?action=kill&short_name="+short_name+"&instance_id="+instance_id+"&idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
});
|
||||
@@ -120,7 +120,7 @@
|
||||
print "</tr>\n";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
function GetStatusIdx() {
|
||||
return idx++;
|
||||
}
|
||||
|
||||
|
||||
function StatusTic() {
|
||||
$.getJSON("data/zone_data.html?idx="+GetStatusIdx(),
|
||||
function(data) {
|
||||
var elm = document.getElementById('zone_count');
|
||||
elm.innerHTML = data.zone_count;
|
||||
|
||||
|
||||
$("#zone_table").empty();
|
||||
var app_html = "<tr>";
|
||||
app_html += "<th scope=\"col\">Zone Name </th>";
|
||||
@@ -24,7 +24,7 @@
|
||||
app_html += "<th scope=\"col\">Players</th>";
|
||||
app_html += "</tr>";
|
||||
$("#zone_table").append(app_html);
|
||||
|
||||
|
||||
var i = 0;
|
||||
for(var i = 0; i < data.zone_count; i++) {
|
||||
app_html = "<tr>";
|
||||
@@ -37,16 +37,16 @@
|
||||
} else {
|
||||
app_html += "<td>" + data.zones[i].long_name + " (" + data.zones[i].short_name + ")</td>";
|
||||
}
|
||||
|
||||
|
||||
app_html += "<td>" + data.zones[i].instance_id + "</td>";
|
||||
app_html += "<td><a href='playerview.html?zone=" + data.zones[i].short_name + "&instance=" + data.zones[i].instance_id + "'>Players</a></td>";
|
||||
app_html += "</tr>";
|
||||
|
||||
|
||||
$("#zone_table").append(app_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval("StatusTic()", 4000);
|
||||
});
|
||||
@@ -101,7 +101,7 @@
|
||||
print "</tr>\n";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
||||
Reference in New Issue
Block a user