Initial commit of PQS

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-01 10:59:51 -05:00
co-authored by Claude Opus 4.8
commit 22e59d6290
185 changed files with 8930 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# OS / editor cruft
.DS_Store
Thumbs.db
*.swp
*~
.vscode/
.idea/
# Logs
*.log
+377
View File
@@ -0,0 +1,377 @@
<html>
<head>
<title>PQS - CallSign v2</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.alphanumeric.js"></script>
</head>
<body style='background: #000;'>
<?php
//var_dump($_GET);
require_once("includes/config.php");
date_default_timezone_set('America/Chicago');
$tdate = date('Ymd');
$ttime = date('Hi');
$isLight = false;
$isMedium = false;
$isHeavy = false;
$isAssault = false;
$isRandom = false;
$isLeader = false;
$isMember = false;
$groupAvalible = $_SESSION['groupAvalible'];
//var_dump($_SESSION);
if (isset($GET_['who'])){
$who = $GET_['who'];
} else {
$who = "";
}
if (isset($_GET['howmany'])){
$hm = intval($_GET['howmany']);
} else {
$hm = 0;
$howmany = 0;
}
if (isset($_GET['callsign'])){
$cs = $_GET['callsign'];
} else {
$cs = "";
}
if (isset($_GET['wclass'])){
$wclass = $_GET['wclass'];
$wcmech = $_GET['wclass'];
$wclass = "'" . $wclass . "'";
switch ($wcmech) {
case 'Light':
$isLight = true;
break;
case 'Medium':
$isMedium = true;
break;
case 'Heavy':
$isHeavy = true;
break;
case 'Assault':
$isAssault = true;
break;
case 'Random':
$isRandom = true;
break;
}
} else {
$wclass = "''";
$wcmech = "no mech";
}
if (isset($_GET['group'])){
$group = $_GET['group'];
switch($group){
case 'Leader':
$isLeader = true;
$isMember = false;
break;
case 'Member':
$isMember = true;
$isLeader = false;
break;
}
} else {
$group = "";
$isLeader = false;
$isMember = false;
}
if (isset($_GET['submit'])) {
$callsign = str_replace("'", "&;", $_GET['callsign']);
$mechid = $_GET['mech'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "SELECT MechName FROM pqs_mechinfo WHERE MechID = $mechid";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$line = mysqli_fetch_array($result);
$mechname = $line[0];
$query = "SELECT timepergame, timetoreset FROM pqs_gameconfig";
$gettpg = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($gettpg);
$timePerGame = $rs1[0]+$rs1[1];
$query = "SELECT max(MissionID), max(UNIX_TIMESTAMP(ctime)) FROM pqs_pastmissions";
$getLCMID = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$rs2 = mysqli_fetch_array($getLCMID);
$lastCommitedMissionID = $rs2[0];
$lastCommitTime = $rs2[1];
if($isMember){
$replaceWho = $_GET['who'];
$sql = "SELECT ID, MissionID FROM pqs_queue WHERE `CallSign` like '$replaceWho-%' LIMIT 1";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$line = mysqli_fetch_array($result);
$replaceID = $line[0];
$missionid = $line[1];
$sql = "UPDATE `pqs_queue` SET `CallSign`='$callsign',`Mech`='$mechname' WHERE `ID` = '$replaceID'";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><br><font size='7'>#$missionid</font><br><br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "</table></td></tr></table>";
echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
if($isLeader){
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND ($hm + numplayers) <= MissionSize ORDER BY MissionID ASC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$numplayers = $rs[1];
mysqli_close($link);
if ($missionid == "") {
$missionsize = $_SESSION['mechpods'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "INSERT INTO pqs_mission (MissionDate, MissionSize, numplayers, MissionTime) VALUES ($tdate, $missionsize, $hm, $ttime)";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers <= MissionSize ORDER BY MissionID DESC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($getid);
$missionid = $rs1[0];
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i = 2;
while ($i <= $hm){
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign-$i','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i ++;
}
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
} else {
$newplayers = $numplayers + $hm;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "UPDATE pqs_mission SET numplayers = $newplayers WHERE MissionID = $missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i = 2;
while ($i <= $hm){
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign-$i','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i ++;
}
mysqli_close($link);
}
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><font size='7'>#$missionid</font><br>Your Estimated Departure time is: $etd <br><br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "</table></td></tr></table>";
echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers < MissionSize ORDER BY MissionID ASC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$numplayers = $rs[1];
mysqli_close($link);
if ($missionid == "") {
$missionsize = $_SESSION['mechpods'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "INSERT INTO pqs_mission (MissionDate, MissionSize, numplayers, MissionTime) VALUES ($tdate, $missionsize, 1, $ttime)";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers < MissionSize ORDER BY MissionID";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($getid);
$missionid = $rs1[0];
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
} else {
$newplayers = $numplayers + 1;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "UPDATE pqs_mission SET numplayers = $newplayers WHERE MissionID = $missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
// echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><br><font size='7'>#$missionid</font><br>Your Estimated Departure time is: $etd <br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><br><font size='7'>#$missionid</font><br>Your Estimated Departure time is: $etd <br>Please continue to check the queue displays for your position in the queue.<br><br><FORM><INPUT TYPE='button' style='font-size:20px;color:green;height:50px;width:250px' VALUE='ACKNOWLEDGED! o7' onClick='parent.location=`callsign.php`'></FORM><br></div></td></tr>";
echo "</table></td></tr></table>";
// echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
?>
<div id='mainpage'>
<form name='submit-callsign' method='get'>
<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>
<tr><td><br><br>
<table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>
<tr><td colspan='2' height='100' align='center' valign='bottom'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/mr.gif' align='absmiddle'></td></tr>
<tr><td width='380' height='75' align='center' valign='middle'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/callsign.gif' align='absmiddle'></td>
<td align='left' valign='middle'><br>
<input class='callsign' type='text' name='callsign' size='25' maxlength='16' value='<?php echo "$cs"; ?>'/>
</td></tr>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/group.gif' align='absmiddle' alt='group'></td>
<td align='left' valign='middle'>
<select class='main' name='group' onchange='changeIt(this.options[this.selectedIndex].value)'>
<option value="None"><?php if ($groupAvalible) { Echo "Not in Group"; } else { echo "Do Not Use";} ?></option>
<?php
if ($groupAvalible){
echo '<option value="Leader"';if($isLeader)echo ' selected ';echo">Group Leader</option>";
echo '<option value="Member"';if($isMember)echo ' selected ';echo">Group Member</option>";
} else {
}
?>
</td></tr>
<?php
if ($isLeader){
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='hidden' class='main' name='who'><img src='images/howmany.gif' align='absmiddle' alt='howmany'></td>
<td align='left' valign='middle'><select class='main' name='howmany'>
";
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT `numpods` FROM `pqs_gameconfig` WHERE 1";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
$line = mysqli_fetch_array($result);
$i = 2;
$max = intval($line[0]);
while ($i <= $max){
echo "<option value=$i";if($hm == $i){echo" selected ";}echo">$i</option>
";
$i ++;
}
echo "</td></tr>";
} else if ($isMember){
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='hidden' class='main' name='howmany'><img src='images/who.gif' align='absmiddle' alt='who'></td>
<td align='left' valign='middle'><select class='main' name='who'>
";
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT DISTINCT left(`CallSign`,LOCATE('-',`CallSign`)-1) FROM `pqs_queue` WHERE `CallSign` like '%-%'";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
echo "<option value=$line[0]";if(strcmp($_GET['who'], $line[0])==0){echo " selected ";} echo ">$line[0]</option>
";}
} else {
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align='left' valign='middle'><input type='hidden' class='main' name='howmany'><input type='hidden' class='main' name='who'>";
}
?>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/weight.gif' align='absmiddle'></td>
<td align='left' valign='middle'>
<select class='main' name='wclass' onchange='changeIt(this.options[this.selectedIndex].value)'>
<option value="no mech">Choose a Class</option>
<option value="Light"<?php if($isLight)echo ' selected ';?>>Light</option>
<option value="Medium"<?php if($isMedium){echo ' selected ';}?>>Medium</option>
<option value="Heavy"<?php if($isHeavy){echo ' selected ';}?>>Heavy</option>
<option value="Assault"<?php if($isAssault){echo ' selected ';}?>>Assault</option>
<option value="Random"<?php if($isRandom){echo ' selected ';}?>>Random</option>
</td></tr>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/mech.gif' align='absmiddle'></td>
<td align='left' valign='middle'>
<select class='main' name='mech' >
<option value=0><?php echo "$wcmech" . "s"; ?></option>
<?php
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT * FROM pqs_mechinfo WHERE `Class` IN ($wclass) ORDER BY mechname";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
echo "<option value=$line[0]>$line[1]</option>
";
}
mysqli_free_result($result);
mysqli_close($link);
?></td></tr>
<tr><td>&nbsp;</td><td align='center' valign='top'><div class='submit'><input type='image' src='images/submit.gif' border='0' alt='SUBMIT!'></div></td></tr>
<input type='hidden' name='submit' value='yes' />
</form>
</table>
</td></tr>
</table>
</div>
</body>
</html>
<script type="text/javascript">
$('.callsign').alphanumeric({ichars:'-%&*/\\<>?",:;[]'});
$("form").submit(function() {
oForm = document.forms["submit-callsign"];
fName = oForm.elements["callsign"].value;
fMech = oForm.elements["mech"].value;
if (fName == "") {
fMessage = "Callsign required. Please enter a callsign and resubmit.";
}
if (fMech == 0) {
fMessage = "Mech required. Please choose a mech and resubmit.";
}
if ((fName != "") && (fMech != 0)) {
return true;
} else {
alert(fMessage);
return false;
}
});
<?php $server = $_SERVER['SERVER_ADDR'];
?>
function changeIt(objval) {
oForm = document.forms["submit-callsign"];
fClass = oForm.elements["wclass"].value;
fName = oForm.elements["callsign"].value;
fGroup = oForm.elements["group"].value;
fHowmany = oForm.elements["howmany"].value;
fWho = oForm.elements["who"].value;
window.location.replace('http://<?php echo "$server"; ?>/pqs/callsign.php?wclass=' + fClass + '&callsign=' + fName + '&group=' + fGroup + '&howmany=' + fHowmany + '&who=' + fWho)
}
</script>
+80
View File
@@ -0,0 +1,80 @@
<html>
<head>
<title>PQS - Player Queue</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
var auto_refreshqueue = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#queuediv').load('includes/getqueue.php', {combined:1});
}, 10000);
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#currqueuediv').load('includes/getcurrent.php');
}, 10000);
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#timequeue').load('includes/now.php');
}, 10000);
var auto_group2 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group2').load('includes/getgroup.php', {group:2});
}, 10000);
var auto_group3 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group3').load('includes/getgroup.php', {group:3});
}, 10000);
var auto_group4 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group4').load('includes/getgroup.php', {group:4});
}, 10000);
var auto_group5 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group5').load('includes/getgroup.php', {group:5});
}, 10000);
var auto_infopanel = setInterval(function() {
$.ajaxSetup({ cache: false });
$.ajax({
url: 'includes/api.php',
data: { call: "updateinfo" },
dataType: 'json',
success: function(data) {
var updated = data[0];
if (updated==1) {
$.ajaxSetup({ cache: false });
$('.infopanel').load('includes/infopanel.php');
}
}
});
}, 10000);
</script>
</head>
<body style='background: #000;'>
<?php
echo "<br><table width='94%' align='center'><tr>";
echo "<td width='25%' align='center' valign='top'><div id='queuediv' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group2' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group3' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='19%' align='center' valign='top'><div id='group4' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='18%' align='center' valign='top'><div id='group5' class='queuediv16'>&nbsp;</div></td>";
echo "</tr></table>";
echo "<table width='94%' align='center'><tr>";
echo "<td width='25%' align='center' valign='top'><div id='currqueuediv' class='queuediv4'>&nbsp;</div></td>";
echo "<td width='25%' align='center' valign='top'><div id='timequeue' class='queuediv4'>";
?>
<?php
echo "&nbsp;</div></td>";
echo "<td width='50%' align='center' valign='middle'><div class='infopanel'>&nbsp;</div></td>";
echo "</tr></table></body></html>";
?>
<script type="text/javascript">
$('.infopanel').load('includes/infopanel.php');
</script>
+83
View File
@@ -0,0 +1,83 @@
<html>
<head>
<title>PQS - Player Queue</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#currqueuediv').load('includes/getcurrent.php');
}, 10000);
var auto_currgroup = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#timequeue').load('includes/now.php');
}, 10000);
var auto_group6 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group6').load('includes/getgroup.php', {group:6});
}, 10000);
var auto_group7 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group7').load('includes/getgroup.php', {group:7});
}, 10000);
var auto_group8 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group8').load('includes/getgroup.php', {group:8});
}, 10000);
var auto_group9 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group9').load('includes/getgroup.php', {group:9});
}, 10000);
var auto_group10 = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#group10').load('includes/getgroup.php', {group:10});
}, 10000);
var auto_infopanel = setInterval(function() {
$.ajaxSetup({ cache: false });
$.ajax({
url: 'includes/api.php',
data: { call: "updateinfo" },
dataType: 'json',
success: function(data) {
var updated = data[0];
if (updated==1) {
$.ajaxSetup({ cache: false });
$('.infopanel').load('includes/infopanel.php');
}
}
});
}, 10000);
</script>
</head>
<body style='background: #000;'>
<?php
echo "<br><table width='94%' align='center'><tr>";
echo "<td width='20%' align='center' valign='top'><div id='group6' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group7' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group8' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group9' class='queuediv16'>&nbsp;</div></td>";
echo "<td width='20%' align='center' valign='top'><div id='group10' class='queuediv16'>&nbsp;</div></td>";
echo "</tr></table>";
echo "<table width='94%' align='center'><tr>";
echo "<td width='25%' align='center' valign='top'><div id='currqueuediv' class='queuediv4'>&nbsp;</div></td>";
echo "<td width='25%' align='center' valign='top'><div id='timequeue' class='queuediv4'>";
?>
<?php
echo "&nbsp;</div></td>";
echo "<td width='50%' align='center' valign='middle'><div class='infopanel'>&nbsp;</div></td>";
echo "</tr></table></body></html>";
?>
<script type="text/javascript">
$('.infopanel').load('includes/infopanel.php');
</script>
+348
View File
@@ -0,0 +1,348 @@
<html>
<head>
<title>PQS - Game Console</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
var auto_refreshqueue = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#queuediv').load('includes/getconsole.php');
}, 2000);
var auto_refreshpods = setInterval(function() {
$.ajaxSetup({ cache: false });
$('#mechpods').load('includes/mechpods.php');
}, 2000);
</script>
</head>
<body style='background: #000;'>
<?php
require_once("includes/config.php");
date_default_timezone_set('America/Chicago');
$ttime = date('Hi');
$numberpods = 0;
//var_dump($_SESSION);
//var_dump($_GET);
//var_dump($_POST);
if (isset($_GET['clearcurrent'])) {
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "TRUNCATE TABLE pqs_currentmission";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
if (isset($_GET['submit'])) {$submit=$_GET['submit'];}else{$submit='';}
if ($submit=='Update'){
$pod01 = (isset($_GET['pod01'])) ? 1 : 0;
$pod02 = (isset($_GET['pod02'])) ? 1 : 0;
$pod03 = (isset($_GET['pod03'])) ? 1 : 0;
$pod04 = (isset($_GET['pod04'])) ? 1 : 0;
$pod05 = (isset($_GET['pod05'])) ? 1 : 0;
$pod06 = (isset($_GET['pod06'])) ? 1 : 0;
$pod07 = (isset($_GET['pod07'])) ? 1 : 0;
$pod08 = (isset($_GET['pod08'])) ? 1 : 0;
$pod09 = (isset($_GET['pod09'])) ? 1 : 0;
$pod10 = (isset($_GET['pod10'])) ? 1 : 0;
$pod11 = (isset($_GET['pod11'])) ? 1 : 0;
$pod12 = (isset($_GET['pod12'])) ? 1 : 0;
$pod13 = (isset($_GET['pod13'])) ? 1 : 0;
$pod14 = (isset($_GET['pod14'])) ? 1 : 0;
$pod15 = (isset($_GET['pod15'])) ? 1 : 0;
$pod16 = (isset($_GET['pod16'])) ? 1 : 0;
$numberpods = $pod01 + $pod02 + $pod03 + $pod04 + $pod05 + $pod06 + $pod07 + $pod08 + $pod09 + $pod10 + $pod11 + $pod12 + $pod13 + $pod14 + $pod15 + $pod16;
$visibility = $_GET['visibility'];
$weather = $_GET['weather'];
$timeofday = $_GET['timeofday'];
$timelimit = $_GET['timelimit'];
$timetoreset = $_GET['timetoreset'];
$radar = $_GET['radar'];
$heat = (isset($_GET['heat'])) ? 1 : 0;
$friendlyfire = (isset($_GET['friendlyfire'])) ? 1 : 0;
$splashdamage = (isset($_GET['splashdamage'])) ? 1 : 0;
$limitedammo = (isset($_GET['limitedammo'])) ? 1 : 0;
$noreturn = (isset($_GET['noreturn'])) ? 1 : 0;
$printdebriefing = (isset($_GET['printdebriefing'])) ? 1 : 0;
$missionreview = (isset($_GET['missionreview'])) ? 1 : 0;
$weaponjam = (isset($_GET['weaponjam'])) ? 1 : 0;
$advancemode = (isset($_GET['advancemode'])) ? 1 : 0;
$armormode = (isset($_GET['armormode'])) ? 1 : 0;
$cameraship = $_GET['cameraship'];
$groupAvalible = (isset($_GET['groupAvalible'])) ? 1 : 0;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$queryconfig = "UPDATE pqs_gameconfig SET numpods=" . $numberpods . ", timepergame=" . $timelimit . ", timetoreset=" . $timetoreset . ", timelimit=".$timelimit.", visibility=".$visibility.", weather=".$weather.", radar=".$radar.", heat=".$heat.", friendlyfire=".$friendlyfire.", splashdamage=".$splashdamage.", limitedammo=".$limitedammo.", noreturn=".$noreturn.", printdebriefing=".$printdebriefing.", missionreview=".$missionreview.", weaponjam=".$weaponjam.", advancemode=".$advancemode.", armormode=".$armormode.", GroupAvalible=".$groupAvalible." WHERE gamechoiceid=1";
mysqli_query($link, $queryconfig) or die('Query failed: ' . mysqli_error($link));
$queryconfig = "UPDATE pqs_pods SET pod01=".$pod01.", pod02=".$pod02.", pod03=".$pod03.", pod04=".$pod04.", pod05=".$pod05.", pod06=".$pod06.", pod07=".$pod07.", pod08=".$pod08.", pod09=".$pod09.", pod10=".$pod10.",pod11=".$pod11.", pod12=".$pod12.", pod13=".$pod13.", pod14=".$pod14.", pod15=".$pod15.", pod16=".$pod16." ";
mysqli_query($link, $queryconfig) or die('Query failed: ' . mysqli_error($link));
$queryconfig = "UPDATE pqs_mission SET MissionSize=" . $numberpods . " WHERE Completed=0";
mysqli_query($link, $queryconfig) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
if ($submit=='Commit Mission') {
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "SELECT MIN(MissionID) FROM pqs_queue";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$sql = "TRUNCATE TABLE pqs_currentmission";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "SELECT callsign, mech FROM pqs_queue where MissionID=$missionid";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
while ($rs = mysqli_fetch_array($getid)) {
$callsign = str_replace("'", "''", $rs[0]);
$sql = "INSERT INTO pqs_currentmission (callsign,missionid) VALUES ('$callsign',$missionid)";
mysqli_query($link, $sql) or die('DEBUG: Insert into currentmission failed: ' . mysqli_error($link));
$sql = "INSERT INTO pqs_pastmissions (callsign,mech,missionid) VALUES ('$callsign','$rs[1]',$missionid)";
mysqli_query($link, $sql) or die('DEBUG: Insert into pastmissions failed: ' . mysqli_error($link));
}
$sql = "DELETE FROM pqs_queue WHERE MissionID=$missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "UPDATE pqs_mission SET Completed=1, nummercs=$_GET[nummercs], missiontime=$ttime WHERE MissionID=$missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
if (isset($_GET['lock'])) {
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "SELECT MIN(MissionID) FROM pqs_queue";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$sql = "UPDATE pqs_mission SET locked=1 WHERE MissionID=$missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
if (isset($_GET['action'])) {
if ($_GET['action'] == 'clearupdate') {
if (isset($_GET['playerid'])) $playerid = $_GET['playerid'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "UPDATE pqs_queue SET Updated = 0 WHERE ID = $playerid";
$result = mysqli_query($link, $sql) or die('Delete player from Queue failed: ' . mysqli_error($link));
mysqli_close($link);
}
}
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "SELECT MIN(MissionID) FROM pqs_queue";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$locked = 0;
if ($missionid != 0) {
$sql = "SELECT locked FROM pqs_mission WHERE MissionId=$missionid";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$locked = $rs[0];
}
mysqli_close($link);
echo "<table width='450' border='0'>";
echo "<tr><td align='center'><a class='queuedisplayhead' href='console.php?clearcurrent=1'><font size='3'>Clear Current Queue</font></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;";
echo "<a class='queuedisplayhead' href='history.php?launch=console' target='_blank'><font size='3'>Open History Window</font></a></td></tr>";
echo "<tr><td align='center' valign='top'><table width='100%'><tr><td align='center' colspan='2'>";
echo "<div id='queuediv' class='consolediv'>&nbsp;</div>";
echo "</td></tr>";
echo "<tr><td align='center'>Total Pods: <span id='mechpods' class='mechpods'></span>";
echo "<form name='submit-group' action=''># Mercs in Pods: <input type='text' name='nummercs' value='0' size=2></td>";
echo "<td align='center'><input type='submit' name='submit' class='button' id='submit_btn' value='Commit Mission' /></form><br></td></tr>";
if ($locked == 1) {
echo "<tr><td align='center' colspan='2'><br><font size='4' color='990000'>This mission is LOCKED!</font><br></td></tr>";
} else { ?>
<form onsubmit="return confirm('Are you sure you want to lock this mission?\n\n\t\tIf YES, click OK\n\t\tIf NO, click Cancel.')"><?php
echo "<tr><td align='center' colspan='2'><br><input type='hidden' name='lock' value='lock'><input type='submit' name='submit' class='button' id='submit_btnlock' value='Lock Mission' /></form></td></tr>";
}
echo "</table></td>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%'><tr><td align='center'>";
echo "<div class='consolediv'><div id='configform'>";
echo "<font size='6'>Configuration</font><br><br>";
echo "<form name='submit-config' action='console.php'>";
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysql_error());
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = 'SELECT * FROM pqs_gameconfig';
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
$numpods = $line[1];
$timepergame = $line[2];
$timetoreset = $line[3];
$visibility = $line[7];
$weather = $line[8];
$timeofday = $line[9];
$timelimit = $line[10];
$radar = $line[11];
$heat = $line[12];
$friendlyfire = $line[13];
$splashdamage = $line[14];
$limitedammo = $line[15];
$noreturn = $line[16];
$printdebriefing = $line[17];
$missionreview = $line[18];
$weaponjam = $line[19];
$advancemode = $line[20];
$armormode = $line[21];
$cameraship = $line[22];
$groupAvalible = $line[23];
}
$query = 'SELECT * FROM pqs_pods';
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
$pod01 = $line[0];
$pod02 = $line[1];
$pod03 = $line[2];
$pod04 = $line[3];
$pod05 = $line[4];
$pod06 = $line[5];
$pod07 = $line[6];
$pod08 = $line[7];
$pod09 = $line[8];
$pod10 = $line[9];
$pod11 = $line[10];
$pod12 = $line[11];
$pod13 = $line[12];
$pod14 = $line[13];
$pod15 = $line[14];
$pod16 = $line[15];
}
?>
&nbsp;Time Limit : <select name='timelimit' >
<option value=1<?php if($timelimit==1)echo ' selected ';?>>1</option>
<option value=2<?php if($timelimit==2)echo ' selected ';?>>2</option>
<option value=3<?php if($timelimit==3)echo ' selected ';?>>3</option>
<option value=4<?php if($timelimit==4)echo ' selected ';?>>4</option>
<option value=5<?php if($timelimit==5)echo ' selected ';?>>5</option>
<option value=6<?php if($timelimit==6)echo ' selected ';?>>6</option>
<option value=7<?php if($timelimit==7)echo ' selected ';?>>7</option>
<option value=8<?php if($timelimit==8)echo ' selected ';?>>8</option>
<option value=9<?php if($timelimit==9)echo ' selected ';?>>9</option>
<option value=10<?php if($timelimit==10)echo ' selected ';?>>10</option>
<option value=11<?php if($timelimit==11)echo ' selected ';?>>11</option>
<option value=12<?php if($timelimit==12)echo ' selected ';?>>12</option>
<option value=13<?php if($timelimit==13)echo ' selected ';?>>13</option>
<option value=14<?php if($timelimit==14)echo ' selected ';?>>14</option>
<option value=15<?php if($timelimit==15)echo ' selected ';?>>15</option>
<option value=20<?php if($timelimit==20)echo ' selected ';?>>20</option>
<option value=25<?php if($timelimit==25)echo ' selected ';?>>25</option>
<option value=30<?php if($timelimit==30)echo ' selected ';?>>30</option>
</select>
<br>
&nbsp;Reset Time : <select name='timetoreset' >
<option value=1<?php if($timetoreset==1)echo ' selected ';?>>1</option>
<option value=2<?php if($timetoreset==2)echo ' selected ';?>>2</option>
<option value=3<?php if($timetoreset==3)echo ' selected ';?>>3</option>
<option value=4<?php if($timetoreset==4)echo ' selected ';?>>4</option>
<option value=5<?php if($timetoreset==5)echo ' selected ';?>>5</option>
<option value=6<?php if($timetoreset==6)echo ' selected ';?>>6</option>
<option value=7<?php if($timetoreset==7)echo ' selected ';?>>7</option>
<option value=8<?php if($timetoreset==8)echo ' selected ';?>>8</option>
<option value=9<?php if($timetoreset==9)echo ' selected ';?>>9</option>
<option value=10<?php if($timetoreset==10)echo ' selected ';?>>10</option>
</select>
<br>
<?php
if ("$pod01" == 0) {echo "<font color=red>Pod01 : </font>";} else {echo "Pod01 : ";} if ("$pod01" == 1) { echo "<input type='checkbox' id='pod01' name='pod01' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod01' name='pod01' /><br>"; }
if ("$pod02" == 0) {echo "<font color=red>Pod02 : </font>";} else {echo "Pod02 : ";} if ("$pod02" == 1) { echo "<input type='checkbox' id='pod02' name='pod02' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod02' name='pod02' /><br>"; }
if ("$pod03" == 0) {echo "<font color=red>Pod03 : </font>";} else {echo "Pod03 : ";} if ("$pod03" == 1) { echo "<input type='checkbox' id='pod03' name='pod03' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod03' name='pod03' /><br>"; }
if ("$pod04" == 0) {echo "<font color=red>Pod04 : </font>";} else {echo "Pod04 : ";} if ("$pod04" == 1) { echo "<input type='checkbox' id='pod04' name='pod04' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod04' name='pod04' /><br>"; }
if ("$pod05" == 0) {echo "<font color=red>Pod05 : </font>";} else {echo "Pod05 : ";} if ("$pod05" == 1) { echo "<input type='checkbox' id='pod05' name='pod05' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod05' name='pod05' /><br>"; }
if ("$pod06" == 0) {echo "<font color=red>Pod06 : </font>";} else {echo "Pod06 : ";} if ("$pod06" == 1) { echo "<input type='checkbox' id='pod06' name='pod06' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod06' name='pod06' /><br>"; }
if ("$pod07" == 0) {echo "<font color=red>Pod07 : </font>";} else {echo "Pod07 : ";} if ("$pod07" == 1) { echo "<input type='checkbox' id='pod07' name='pod07' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod07' name='pod07' /><br>"; }
if ("$pod08" == 0) {echo "<font color=red>Pod08 : </font>";} else {echo "Pod08 : ";} if ("$pod08" == 1) { echo "<input type='checkbox' id='pod08' name='pod08' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod08' name='pod08' /><br>"; }
if ("$pod09" == 0) {echo "<font color=red>Pod09 : </font>";} else {echo "Pod09 : ";} if ("$pod09" == 1) { echo "<input type='checkbox' id='pod09' name='pod09' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod09' name='pod09' /><br>"; }
if ("$pod10" == 0) {echo "<font color=red>Pod10 : </font>";} else {echo "Pod10 : ";} if ("$pod10" == 1) { echo "<input type='checkbox' id='pod10' name='pod10' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod10' name='pod10' /><br>"; }
if ("$pod11" == 0) {echo "<font color=red>Pod11 : </font>";} else {echo "Pod11 : ";} if ("$pod11" == 1) { echo "<input type='checkbox' id='pod11' name='pod11' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod11' name='pod11' /><br>"; }
if ("$pod12" == 0) {echo "<font color=red>Pod12 : </font>";} else {echo "Pod12 : ";} if ("$pod12" == 1) { echo "<input type='checkbox' id='pod12' name='pod12' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod12' name='pod12' /><br>"; }
if ("$pod13" == 0) {echo "<font color=red>Pod13 : </font>";} else {echo "Pod13 : ";} if ("$pod13" == 1) { echo "<input type='checkbox' id='pod13' name='pod13' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod13' name='pod13' /><br>"; }
if ("$pod14" == 0) {echo "<font color=red>Pod14 : </font>";} else {echo "Pod14 : ";} if ("$pod14" == 1) { echo "<input type='checkbox' id='pod14' name='pod14' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod14' name='pod14' /><br>"; }
if ("$pod15" == 0) {echo "<font color=red>Pod15 : </font>";} else {echo "Pod15 : ";} if ("$pod15" == 1) { echo "<input type='checkbox' id='pod15' name='pod15' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod15' name='pod15' /><br>"; }
if ("$pod16" == 0) {echo "<font color=red>Pod16 : </font>";} else {echo "Pod16 : ";} if ("$pod16" == 1) { echo "<input type='checkbox' id='pod16' name='pod16' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='pod16' name='pod16' /><br>"; }
?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visability &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <select name='visibility' >
<option value=0<?php if($visibility==0)echo ' selected ';?>>Random</option>
<option value=1<?php if($visibility==1)echo ' selected ';?>>Deflt</option>
<option value=2<?php if($visibility==2)echo ' selected ';?>>Clear</option>
<option value=3<?php if($visibility==3)echo ' selected ';?>>L Fog</option>
<option value=4<?php if($visibility==4)echo ' selected ';?>>H Fog</option>
<option value=5<?php if($visibility==5)echo ' selected ';?>>PS Fog</option>
</select>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Weather &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <select name='weather' >
<option value=0<?php if($visibility==0)echo ' selected ';?>>Random</option>
<option value=1<?php if($visibility==1)echo ' selected ';?>>Off</option>
<option value=2<?php if($visibility==2)echo ' selected ';?>>On</option>
</select>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time of Day : <select name='timeofday' >
<option value=0<?php if($visibility==0)echo ' selected ';?>>Random</option>
<option value=1<?php if($visibility==1)echo ' selected ';?>>Day</option>
<option value=2<?php if($visibility==2)echo ' selected ';?>>Night</option>
</select>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Radar &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <select name='radar' >
<option value=0<?php if($radar==0)echo ' selected ';?>>Random</option>
<option value=1<?php if($radar==1)echo ' selected ';?>>Novice</option>
<option value=2<?php if($radar==2)echo ' selected ';?>>Normal</option>
<option value=3<?php if($radar==3)echo ' selected ';?>>T Only</option>
<option value=4<?php if($radar==4)echo ' selected ';?>>No Rad</option>
</select>
<br>
<?php
echo "&nbsp;&nbsp;&nbsp;Heat : "; if ("$heat" == 1) { echo "<input type='checkbox' id='heat' name='heat' class='checkbox' checked /><br>"; } else { echo "<input type='checkbox' class='checkbox' id='heat' name='heat' /><br>"; }
echo "Friendly Fire : "; if ("$friendlyfire" == 1) { echo "<input type='checkbox' id='friendlyfire' name='friendlyfire' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='friendlyfire' name='friendlyfire' />"; } echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Splash Damage : "; if ("$splashdamage" == 1) { echo "<input type='checkbox' id='splashdamage' name='splashdamage' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='splashdamage' name='splashdamage' />"; } echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Limited Ammo : "; if ("$limitedammo" == 1) { echo "<input type='checkbox' id='limitedammo' name='limitedammo' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='limitedammo' name='limitedammo' />"; } echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "No Return : "; if ("$noreturn" == 1) { echo "<input type='checkbox' id='noreturn' name='noreturn' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='noreturn' name='noreturn' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Print Debriefing : "; if ("$printdebriefing" == 1) { echo "<input type='checkbox' id='printdebriefing' name='printdebriefing' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='printdebriefing' name='printdebriefing' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Mission Review : "; if ("$missionreview" == 1) { echo "<input type='checkbox' id='missionreview' name='missionreview' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='missionreview' name='missionreview' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Weapon Jam : "; if ("$weaponjam" == 1) { echo "<input type='checkbox' id='weaponjam' name='weaponjam' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='weaponjam' name='weaponjam' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Advance Mode : "; if ("$advancemode" == 1) { echo "<input type='checkbox' id='advancemode' name='advancemode' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='advancemode' name='advancemode' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "Armor Mode : "; if ("$armormode" == 1) { echo "<input type='checkbox' id='armormode' name='armormode' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='armormode' name='armormode' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cameraship &nbsp;: <select name='cameraship' >
<option value=0<?php if($cameraship==0)echo ' selected ';?>>None</option>
<option value=1<?php if($cameraship==1)echo ' selected ';?>>Camship</option>
<option value=2<?php if($cameraship==2)echo ' selected ';?>>LiveCam</option>
</select>
<br>
<?php
echo "Group Avalible : "; if ("$groupAvalible" == 1) { echo "<input type='checkbox' id='groupAvalible' name='groupAvalible' class='checkbox' checked />"; } else { echo "<input type='checkbox' class='checkbox' id='groupAvalible' name='groupAvalible' />"; }echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>";
echo "<br><input type='submit' name='submit' class='button' id='submit_btn' value='Update' />";
echo "</form>";
echo "</div></div>";
echo "</td></tr></table></td></tr>";
echo "</td></tr></table></body></html>";
?>
+470
View File
@@ -0,0 +1,470 @@
body {
color: #ffffff;
background-color: #000000;
}
input.main, select.main {
color: #FEAE01;
font-size: 36px;
border: 1px solid #FEAE01;
width: 350px;
background-color: #000000;
height: 50px;
text-align:center;
}
select.main {
color: #FEAE01;
font-size: 36px;
border: 1px solid #FEAE01;
width: 350px;
background-color: #000000;
height: 50px;
text-align:center;
}
input.callsign {
color: #FEAE01;
font-size: 36px;
border: 1px solid #FEAE01;
width: 350px;
background-color: #000000;
height: 50px;
text-align:center;
}
input.editqueue, select {
color: #FFFFFF;
font-size: 22px;
border: 1px solid #FEAE01;
background-color: #000000;
height: 30px;
text-align:center;
}
div.stats {
height: 205px;
border: 1px solid #FEAE01;
width: 328px;
background-color: #000000;
padding:10px;
}
* html div.stats {
width: 370px;
height: 225px;
}
div.queued {
width: 400px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
font-size: x-large;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuediv {
width: 650px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuedivspec {
width: 800px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuedivreg {
width: 800px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.consolehist {
width: 400px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.consolediv {
width: 400px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuediv2 {
height: 600px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuediv3 {
height: 550px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuediv16 {
height: 600px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.smallqueuediv3 {
height: 325px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuediv4 {
height: 300px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.smallqueuediv4 {
height: 350px;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.dialog {
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.queuetime {
text-align: center;
}
div.infopanel {
height: 370px;
background-color: #000000;
padding:10px;
text-align: center;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.smallinfopanel {
height: 325px;
background-color: #000000;
padding:10px;
text-align: center;
border: 1px solid #FEAE01;
color: #FEAE01;
background-color: #000000;
padding:10px;
text-align: center;
/* css3 drop shadow */
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 10px rgba(254, 174, 1, 2);
/* css3 border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
div.infopanel div {
height: 365px;
width: 98%;
background-color: #000000;
padding:10px;
color: #fff;
text-align: center;
font-size: 32px;
}
span.fsashadowtext {
text-align: center;
text-shadow: 2px 2px 2px #FEAE01;
color: #fff;
}
td.queuedisplayhead {
text-align: center;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
font-size: xx-large;
color: #fff;
}
td.playermissions {
text-align: center;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
font-size: large;
color: #fff;
}
td.queuedisplay {
text-align: center;
font-size: x-large;
color: #fff;
}
td.queuedisplaysmall {
text-align: center;
font-size: 20pt;
color: #fff;
}
td.consoledisplayhead {
text-align: center;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
font-size: x-large;
color: #fff;
}
td.consoledisplay {
text-align: center;
font-size: large;
color: #fff;
}
a.queuedisplayhead {
text-align: center;
text-decoration: none;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
font-size: xx-large;
color: #fff
}
a.playermissions {
text-align: center;
text-decoration: none;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
font-size: large;
color: #fff
}
a.blink {
text-align: center;
text-decoration: blink;
text-shadow: 2px 2px 2px #FEAE01;
font-weight: bold;
color: #fff
}
a.button {
/* styles for button */
margin:10px auto 0 auto;
text-align:center;
display: block;
width:50px;
padding: 5px 10px 6px;
color: #fff;
text-decoration: none;
font-weight: bold;
line-height: 1;
/* button color */
background-color: #e33100;
/* css3 implementation :) */
/* rounded corner */
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
/* drop shadow */
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
/* text shaow */
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
}
a.button:hover {
background-color: #c33100;
}
+117
View File
@@ -0,0 +1,117 @@
.ui-tooltip, .qtip{
position: absolute;
left: -28000px;
top: -28000px;
display: none;
max-width: 400px;
min-width: 50px;
font-size: 22px;
line-height: 24px;
border-width: 1px;
border-style: solid;
}
.ui-tooltip-content{
position: relative;
padding: 5px 9px;
overflow: hidden;
text-align: left;
word-wrap: break-word;
overflow: hidden;
}
/*! Default tooltip style */
.ui-tooltip-default{
border: 1px solid #FEAE01;
color: #FFFFFF;
text-shadow: 2px 2px 2px #FEAE01;
background-color: #000000;
text-align: center;
}
/* Modal plugin */
#qtip-overlay{
position: fixed;
left: -10000em;
top: -10000em;
}
/* Applied to modals with show.modal.blur set to true */
#qtip-overlay.blurs{ cursor: pointer; }
/* Change opacity of overlay here */
#qtip-overlay div{
position: absolute;
left: 0; top: 0;
width: 100%; height: 100%;
background-color: black;
opacity: 0.7;
filter:alpha(opacity=70);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
}
/* Tips plugin */
.ui-tooltip .ui-tooltip-tip{
margin: 0 auto;
overflow: hidden;
z-index: 10;
}
.ui-tooltip .ui-tooltip-tip,
.ui-tooltip .ui-tooltip-tip *{
position: absolute;
line-height: 0.1px !important;
font-size: 0.1px !important;
color: #123456;
background: transparent;
border: 0px dashed transparent;
}
.ui-tooltip .ui-tooltip-tip canvas{ top: 0; left: 0; }
.ui-tooltip-pqs{
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 0px rgba(254, 174, 1, 2);
-moz-box-shadow: 0px 0px 5px rgba(254, 174, 1, 2);
box-shadow: 0px 0px 5px rgba(254, 174, 1, 2);
color: white;
border: 1px solid #FEAE01;
background: #202020;
background-image: -moz-linear-gradient(top,#202020 0,black 100%);
background-image: -ms-linear-gradient(top,#202020 0,black 100%);
background-image: -o-linear-gradient(top,#202020 0,black 100%);
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#202020),color-stop(100%,black));
background-image: -webkit-linear-gradient(top,#202020 0,black 100%);
background-image: linear-gradient(to bottom,#202020 0,black 100%);
}
.ui-tooltip-youtube .ui-tooltip-titlebar{
background-color: #202020;
background-color: rgba(0,0,0,0);
}
.ui-tooltip-youtube .ui-tooltip-content{
padding: .75em;
font: 22px arial,sans-serif;
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#202020,EndColorStr=#000000);
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#202020,EndColorStr=#000000);";
}
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
truncate table pqs_currentmission;
truncate table pqs_mission;
truncate table pqs_pastmissions;
truncate table pqs_queue;
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+377
View File
@@ -0,0 +1,377 @@
<html>
<head>
<title>PQS - CallSign v2</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.alphanumeric.js"></script>
</head>
<body style='background: #000;'>
<?php
//var_dump($_GET);
require_once("includes/config.php");
date_default_timezone_set('America/Chicago');
$tdate = date('Ymd');
$ttime = date('Hi');
$isLight = false;
$isMedium = false;
$isHeavy = false;
$isAssault = false;
$isRandom = false;
$isLeader = false;
$isMember = false;
$groupAvalible = $_SESSION['groupAvalible'];
//var_dump($_SESSION);
if (isset($GET_['who'])){
$who = $GET_['who'];
} else {
$who = "";
}
if (isset($_GET['howmany'])){
$hm = intval($_GET['howmany']);
} else {
$hm = 0;
$howmany = 0;
}
if (isset($_GET['callsign'])){
$cs = $_GET['callsign'];
} else {
$cs = "";
}
if (isset($_GET['wclass'])){
$wclass = $_GET['wclass'];
$wcmech = $_GET['wclass'];
$wclass = "'" . $wclass . "'";
switch ($wcmech) {
case 'Light':
$isLight = true;
break;
case 'Medium':
$isMedium = true;
break;
case 'Heavy':
$isHeavy = true;
break;
case 'Assault':
$isAssault = true;
break;
case 'Random':
$isRandom = true;
break;
}
} else {
$wclass = "''";
$wcmech = "no mech";
}
if (isset($_GET['group'])){
$group = $_GET['group'];
switch($group){
case 'Leader':
$isLeader = true;
$isMember = false;
break;
case 'Member':
$isMember = true;
$isLeader = false;
break;
}
} else {
$group = "";
$isLeader = false;
$isMember = false;
}
if (isset($_GET['submit'])) {
$callsign = str_replace("'", "&;", $_GET['callsign']);
$mechid = $_GET['mech'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "SELECT MechName FROM pqs_mechinfo WHERE MechID = $mechid";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$line = mysqli_fetch_array($result);
$mechname = $line[0];
$query = "SELECT timepergame, timetoreset FROM pqs_gameconfig";
$gettpg = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($gettpg);
$timePerGame = $rs1[0]+$rs1[1];
$query = "SELECT max(MissionID), max(UNIX_TIMESTAMP(ctime)) FROM pqs_pastmissions";
$getLCMID = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$rs2 = mysqli_fetch_array($getLCMID);
$lastCommitedMissionID = $rs2[0];
$lastCommitTime = $rs2[1];
if($isMember){
$replaceWho = $_GET['who'];
$sql = "SELECT ID, MissionID FROM pqs_queue WHERE `CallSign` like '$replaceWho-%' LIMIT 1";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$line = mysqli_fetch_array($result);
$replaceID = $line[0];
$missionid = $line[1];
$sql = "UPDATE `pqs_queue` SET `CallSign`='$callsign',`Mech`='$mechname' WHERE `ID` = '$replaceID'";
$result = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><br><font size='7'>#$missionid</font><br><br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "</table></td></tr></table>";
echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
if($isLeader){
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND ($hm + numplayers) <= MissionSize ORDER BY MissionID ASC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$numplayers = $rs[1];
mysqli_close($link);
if ($missionid == "") {
$missionsize = $_SESSION['mechpods'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "INSERT INTO pqs_mission (MissionDate, MissionSize, numplayers, MissionTime) VALUES ($tdate, $missionsize, $hm, $ttime)";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers <= MissionSize ORDER BY MissionID DESC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($getid);
$missionid = $rs1[0];
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i = 2;
while ($i <= $hm){
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign-$i','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i ++;
}
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
} else {
$newplayers = $numplayers + $hm;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "UPDATE pqs_mission SET numplayers = $newplayers WHERE MissionID = $missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i = 2;
while ($i <= $hm){
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign-$i','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
$i ++;
}
mysqli_close($link);
}
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><font size='7'>#$missionid</font><br>Your Estimated Departure time is: $etd <br><br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "</table></td></tr></table>";
echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers < MissionSize ORDER BY MissionID ASC";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs = mysqli_fetch_array($getid);
$missionid = $rs[0];
$numplayers = $rs[1];
mysqli_close($link);
if ($missionid == "") {
$missionsize = $_SESSION['mechpods'];
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "INSERT INTO pqs_mission (MissionDate, MissionSize, numplayers, MissionTime) VALUES ($tdate, $missionsize, 1, $ttime)";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$sql = "SELECT MissionID, numplayers FROM pqs_mission WHERE Completed = 0 AND locked = 0 AND numplayers < MissionSize ORDER BY MissionID";
$getid = mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$rs1 = mysqli_fetch_array($getid);
$missionid = $rs1[0];
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
} else {
$newplayers = $numplayers + 1;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$sql = "UPDATE pqs_mission SET numplayers = $newplayers WHERE MissionID = $missionid";
mysqli_query($link, $sql) or die('Query failed: ' . mysqli_error($link));
$query = "INSERT INTO pqs_queue (callsign, mech, missionid) VALUES ('$callsign','$mechname',$missionid)";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link));
mysqli_close($link);
}
$minToDeparture = $timePerGame*($missionid-$lastCommitedMissionID);
$d=strtotime("+$minToDeparture Minutes",$lastCommitTime);
$etd = date("h:i", $d);
echo "<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>";
echo "<tr><td><br><br><table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>";
echo "<tr><td height='500' align='center' valign='middle'><div class='queued'><br>Thank you $_GET[callsign]. You have been entered into the queue piloting a $mechname.<br><br>You are currently set for mission:<br><br><font size='7'>#$missionid</font><br>Your Estimated Departure time is: $etd <br>Please continue to check the queue displays for your position in the queue.<br><br></div></td></tr>";
echo "</table></td></tr></table>";
echo "<meta http-equiv='refresh' content='4;url=callsign.php'>";
exit;
}
?>
<div id='mainpage'>
<form name='submit-callsign' method='get'>
<table width='1024' height='768' align='center' style='background: url(images/bsb.jpg);' border=1>
<tr><td><br><br>
<table width='820' height='614' align='center' style='background: url(images/mr-block.gif);'>
<tr><td colspan='2' height='100' align='center' valign='bottom'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/mr.gif' align='absmiddle'></td></tr>
<tr><td width='380' height='75' align='center' valign='middle'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/callsign.gif' align='absmiddle'></td>
<td align='left' valign='middle'><br>
<input class='callsign' type='text' name='callsign' size='25' maxlength='16' value='<?php echo "$cs"; ?>'/>
</td></tr>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/group.gif' align='absmiddle' alt='group'></td>
<td align='left' valign='middle'>
<select class='main' name='group' onchange='changeIt(this.options[this.selectedIndex].value)'>
<option value="None">No Group</option>
<?php
if ($groupAvalible){
echo '<option value="Leader"';if($isLeader)echo ' selected ';echo">Group Leader</option>";
echo '<option value="Member"';if($isMember)echo ' selected ';echo">Group Member</option>";
} else {
}
?>
</td></tr>
<?php
if ($isLeader){
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='hidden' class='main' name='who'><img src='images/howmany.gif' align='absmiddle' alt='howmany'></td>
<td align='left' valign='middle'><select class='main' name='howmany'>
";
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT `numpods` FROM `pqs_gameconfig` WHERE 1";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
$line = mysqli_fetch_array($result);
$i = 2;
$max = intval($line[0]);
while ($i <= $max){
echo "<option value=$i";if($hm == $i){echo" selected ";}echo">$i</option>
";
$i ++;
}
echo "</td></tr>";
} else if ($isMember){
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='hidden' class='main' name='howmany'><img src='images/who.gif' align='absmiddle' alt='who'></td>
<td align='left' valign='middle'><select class='main' name='who'>
";
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT DISTINCT left(`CallSign`,LOCATE('-',`CallSign`)-1) FROM `pqs_queue` WHERE `CallSign` like '%-%'";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
echo "<option value=$line[0]";if(strcmp($_GET['who'], $line[0])==0){echo " selected ";} echo ">$line[0]</option>
";}
} else {
echo "<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align='left' valign='middle'><input type='hidden' class='main' name='howmany'><input type='hidden' class='main' name='who'>";
}
?>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/weight.gif' align='absmiddle'></td>
<td align='left' valign='middle'>
<select class='main' name='wclass' onchange='changeIt(this.options[this.selectedIndex].value)'>
<option value="no mech">Choose a Class</option>
<option value="Light"<?php if($isLight)echo ' selected ';?>>Light</option>
<option value="Medium"<?php if($isMedium){echo ' selected ';}?>>Medium</option>
<option value="Heavy"<?php if($isHeavy){echo ' selected ';}?>>Heavy</option>
<option value="Assault"<?php if($isAssault){echo ' selected ';}?>>Assault</option>
<option value="Random"<?php if($isRandom){echo ' selected ';}?>>Random</option>
</td></tr>
<tr><td width='380' height='75' align='center' valign='middle'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/mech.gif' align='absmiddle'></td>
<td align='left' valign='middle'>
<select class='main' name='mech' >
<option value=0><?php echo "$wcmech" . "s"; ?></option>
<?php
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');
$query = "SELECT * FROM pqs_mechinfo WHERE `Class` IN ($wclass) ORDER BY mechname";
$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
while ($line = mysqli_fetch_array($result)) {
echo "<option value=$line[0]>$line[1]</option>
";
}
mysqli_free_result($result);
mysqli_close($link);
?></td></tr>
<tr><td>&nbsp;</td><td align='center' valign='top'><div class='submit'><input type='image' src='images/submit.gif' border='0' alt='SUBMIT!'></div></td></tr>
<input type='hidden' name='submit' value='yes' />
</form>
</table>
</td></tr>
</table>
</div>
</body>
</html>
<script type="text/javascript">
$('.callsign').alphanumeric({ichars:'-%&*/\\<>?",:;[]'});
$("form").submit(function() {
oForm = document.forms["submit-callsign"];
fName = oForm.elements["callsign"].value;
fMech = oForm.elements["mech"].value;
if (fName == "") {
fMessage = "Callsign required. Please enter a callsign and resubmit.";
}
if (fMech == 0) {
fMessage = "Mech required. Please choose a mech and resubmit.";
}
if ((fName != "") && (fMech != 0)) {
return true;
} else {
alert(fMessage);
return false;
}
});
<?php $server = $_SERVER['SERVER_ADDR'];
?>
function changeIt(objval) {
oForm = document.forms["submit-callsign"];
fClass = oForm.elements["wclass"].value;
fName = oForm.elements["callsign"].value;
fGroup = oForm.elements["group"].value;
fHowmany = oForm.elements["howmany"].value;
fWho = oForm.elements["who"].value;
window.location.replace('http://<?php echo "$server"; ?>/pqs/callsign.php?wclass=' + fClass + '&callsign=' + fName + '&group=' + fGroup + '&howmany=' + fHowmany + '&who=' + fWho)
}
</script>
+133
View File
@@ -0,0 +1,133 @@
/*
SQLyog Community Edition- MySQL GUI v6.03
Host - 5.1.53-community-log : Database - pqs
*********************************************************************
Server version : 5.1.53-community-log
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
create database if not exists `pqs`;
USE `pqs`;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*Table structure for table `pqs_currentmission` */
DROP TABLE IF EXISTS `pqs_currentmission`;
CREATE TABLE `pqs_currentmission` (
`Callsign` varchar(25) DEFAULT NULL,
`Missionid` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*Data for the table `pqs_currentmission` */
insert into `pqs_currentmission`(`Callsign`,`Missionid`) values ('DocEVL',29),('Tide',29),('Trineghj',29),('Sh&apos;dfghow',29);
/*Table structure for table `pqs_gameconfig` */
DROP TABLE IF EXISTS `pqs_gameconfig`;
CREATE TABLE `pqs_gameconfig` (
`gamechoiceid` int(11) DEFAULT NULL,
`numpods` int(11) DEFAULT NULL,
`timepergame` int(11) DEFAULT NULL,
`timetoreset` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*Data for the table `pqs_gameconfig` */
insert into `pqs_gameconfig`(`gamechoiceid`,`numpods`,`timepergame`,`timetoreset`) values (1,12,7,2);
/*Table structure for table `pqs_infopanel` */
DROP TABLE IF EXISTS `pqs_infopanel`;
CREATE TABLE `pqs_infopanel` (
`Updated` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*Data for the table `pqs_infopanel` */
insert into `pqs_infopanel`(`Updated`) values (0);
/*Table structure for table `pqs_mechinfo` */
DROP TABLE IF EXISTS `pqs_mechinfo`;
CREATE TABLE `pqs_mechinfo` (
`MechID` int(11) NOT NULL AUTO_INCREMENT,
`MechName` varchar(25) NOT NULL,
`Firepower` int(11) NOT NULL,
`Armor` int(11) NOT NULL,
`Speed` int(11) NOT NULL,
`Heat` int(11) NOT NULL,
`Class` varchar(25) NOT NULL,
`img_name` varchar(25) NOT NULL,
`Tons` int(11) NOT NULL,
PRIMARY KEY (`MechID`)
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;
/*Data for the table `pqs_mechinfo` */
insert into `pqs_mechinfo`(`MechID`,`MechName`,`Firepower`,`Armor`,`Speed`,`Heat`,`Class`,`img_name`,`Tons`) values (1,'Brigand',25,28,85,74,'Light','brigand.jpg',25),(2,'Commando',27,34,85,100,'Light','commando.jpg',25),(3,'Osiris',22,34,83,93,'Light','osiris.jpg',30),(4,'Uller',35,31,89,89,'Light','uller.jpg',30),(5,'Cougar',37,40,81,83,'Light','cougar.jpg',35),(6,'Owens',43,39,80,71,'Light','owens.jpg',35),(7,'Puma',57,38,82,89,'Light','puma.jpg',35),(8,'Raven',35,35,77,76,'Light','raven.jpg',35),(9,'Wolfhound IIC',28,39,72,80,'Light','wolfhound.jpg',35),(10,'Arctic Wolf',47,45,73,80,'Medium','arcticwolf.jpg',40),(11,'Chimera',47,46,73,59,'Medium','chimera.jpg',40),(12,'Hollander II',45,48,75,61,'Medium','hollanderii.jpg',45),(13,'Shadowcat',51,48,73,74,'Medium','shadowcat.jpg',45),(14,'Hellhound',47,54,67,59,'Medium','hellhound.jpg',50),(15,'Hunchback',38,52,64,63,'Medium','hunchback.jpg',50),(16,'Uziel',43,50,69,60,'Medium','uziel.jpg',50),(17,'Black Lanner',50,56,67,56,'Medium','blacklanner.jpg',55),(18,'Bushwacker',45,58,70,56,'Medium','bushwacker.jpg',55),(19,'Ryoken',55,58,70,56,'Medium','ryoken.jpg',55),(20,'Dragon',43,60,63,55,'Heavy','dragon.jpg',60),(21,'Vulture',59,63,63,52,'Heavy','vulture.jpg',60),(22,'Catapult',70,60,65,42,'Heavy','catapult.jpg',65),(23,'Cauldronborn',65,60,61,70,'Heavy','cauldronborn.jpg',65),(24,'Loki',48,64,57,77,'Heavy','loki.jpg',65),(25,'Grizzly',55,67,54,61,'Heavy','grizzly.jpg',70),(26,'Novacat',51,65,59,50,'Heavy','novacat.jpg',70),(27,'Thor',58,67,50,71,'Heavy','thor.jpg',70),(28,'Black Knight',61,65,55,50,'Heavy','blackknight.jpg',75),(29,'Mad Cat',58,70,58,56,'Heavy','madcat.jpg',75),(30,'Thanatos',63,66,48,51,'Heavy','thanatos.jpg',75),(31,'Awesome',57,74,47,58,'Assault','awesome.jpg',80),(32,'Zeus',80,71,49,60,'Assault','zeus.jpg',80),(33,'Deimos',80,71,49,60,'Assault','deimos.jpg',85),(34,'Masakari',66,78,49,69,'Assault','masakari.jpg',85),(35,'Templar',68,77,49,60,'Assault','templar.jpg',85),(36,'Cyclops',72,78,46,50,'Assault','cyclops.jpg',90),(37,'Highlander',73,79,42,55,'Assault','highlander.jpg',90),(38,'Madcat Mk II',93,78,46,56,'Assault','madcatii.jpg',90),(39,'Mauler',95,78,41,50,'Assault','mauler.jpg',90),(40,'Hauptmann IIC',86,84,35,51,'Assault','hauptmann.jpg',95),(41,'Atlas',95,99,38,50,'Assault','atlas.jpg',100),(42,'Daishi',78,91,36,57,'Assault','daishi.jpg',100);
/*Table structure for table `pqs_mission` */
DROP TABLE IF EXISTS `pqs_mission`;
CREATE TABLE `pqs_mission` (
`MissionID` int(11) NOT NULL AUTO_INCREMENT,
`MissionDate` int(11) NOT NULL,
`MissionSize` int(11) NOT NULL,
`numplayers` int(11) DEFAULT NULL,
`Completed` tinyint(1) NOT NULL DEFAULT '0',
`nummercs` int(11) NOT NULL,
`locked` tinyint(1) NOT NULL DEFAULT '0',
`MissionTime` int(11) NOT NULL,
UNIQUE KEY `MatchID` (`MissionID`)
) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
/*Data for the table `pqs_mission` */
insert into `pqs_mission`(`MissionID`,`MissionDate`,`MissionSize`,`numplayers`,`Completed`,`nummercs`,`locked`,`MissionTime`) values (5,20120630,6,5,1,1,0,0),(4,20120630,6,6,1,0,0,0),(6,20120630,6,6,1,0,0,0),(7,20120630,6,6,1,0,0,0),(8,20120630,12,3,1,0,0,0),(9,20120630,12,2,1,0,1,0),(10,20120630,12,3,1,0,0,0),(11,20120704,12,3,1,9,0,0),(12,20120704,12,1,1,0,1,0),(13,20120704,12,12,1,0,0,0),(14,20120704,12,12,1,0,0,2045),(15,20120705,12,5,1,0,0,2048),(16,20120705,4,4,1,0,0,2050),(17,20120705,4,4,1,0,0,957),(18,20120705,4,3,1,0,0,10),(19,20120705,4,1,1,0,1,17),(20,20120705,4,1,1,0,0,17),(21,20120705,4,1,1,0,0,17),(22,20120705,4,1,1,0,1,17),(23,20120709,4,4,1,0,0,1439),(25,20120715,4,4,1,0,1,1627),(27,20120723,4,4,1,0,0,2048),(28,20120723,4,4,1,0,1,2059),(29,20120723,4,4,1,0,0,918),(30,20120723,4,12,0,0,0,1645),(31,20120723,4,4,0,1,0,1650),(32,20120723,4,1,0,0,0,2130),(33,20120723,4,1,0,0,0,2130),(34,20120724,12,1,0,0,0,1741);
/*Table structure for table `pqs_pastmissions` */
DROP TABLE IF EXISTS `pqs_pastmissions`;
CREATE TABLE `pqs_pastmissions` (
`Callsign` varchar(25) DEFAULT NULL,
`Mech` varchar(25) DEFAULT NULL,
`Missionid` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*Data for the table `pqs_pastmissions` */
insert into `pqs_pastmissions`(`Callsign`,`Mech`,`Missionid`) values ('Shadow','Brigand',6),('Eric','Osiris',6),('Ulyses','Puma',6),('Yoga','Commando',6),('Dad','Raven',6),('Inga','Dragon',6),('strhshsh','Madcat Mk II',7),('shtrzsf','Zeus',7),('dhtrstyhstrh','Owens',7),('sdgfdsfgdfg','Raven',7),('dfhfdgg','Commando',7),('Graffy','Wolfhound IIC',7),('Michael','Cougar',8),('Eric','Commando',8),('Shadow','Brigand',8),('Michael','Commando',9),('Eric','Osiris',9),('Dodo','Brigand',10),('Fred','Arctic Wolf',10),('John','Cougar',10),('George','Uller',11),('Messa','Puma',11),('Harry','Commando',11),('Holder','Commando',12),('seven','Brigand',13),('six','Brigand',13),('five','Brigand',13),('four','Brigand',13),('three','Brigand',13),('two','Brigand',13),('one','Brigand',13),('eight','Brigand',13),('nine','Brigand',13),('ten','Brigand',13),('eleven','Brigand',13),('twelve','Brigand',13),('11','Commando',14),('12','Commando',14),('10','Commando',14),('9','Commando',14),('8','Commando',14),('7','Commando',14),('6','Commando',14),('5','Commando',14),('4','Commando',14),('3','Commando',14),('1','Commando',14),('2','Commando',14),('Gobi','Wolfhound IIC',15),('Steve','Chimera',15),('Dad','Hunchback',15),('Shadow','Brigand',15),('Mike','Commando',15),('killo','Commando',16),('dasdi','Commando',16),('hello','Brigand',16),('fred','Brigand',16),('tenta','Hellhound',17),('redcat','Loki',17),('wendi','Shadowcat',17),('silva','Wolfhound IIC',17),('george','Chimera',18),('gooda','Commando',18),('dgfgdf','Arctic Wolf',18),('Shadow','Owens',19),('Shadow','Brigand',20),('Shadow','Osiris',21),('Shadow','Hollander II',22),('DocEVL','Madcat Mk II',23),('Lady Methalynn','Hauptmann IIC',23),('Shadow','Awesome',23),('QQQQQQQQQQQQQQQQ','Hauptmann IIC',23),('Roger','Madcat Mk II',25),('Roger','Madcat Mk II',25),('Roger','Madcat Mk II',25),('Roger','Madcat Mk II',25),('Roger','Madcat Mk II',25),('Me\'ath','Black Knight',25),('G\'ould','Arctic Wolf',25),('QQQQQQQQQQQQQQQQ','Hauptmann IIC',25),('Sh\'dfghow','Arctic Wolf',27),('DocEL','Bushwacker',27),('Tide','Black Lanner',27),('Trineghj','Dragon',27),('Slighlty Tilted','Mauler',28),('DocEVL','Bushwacker',28),('Tide','Black Lanner',28),('Trineghj','Dragon',28),('DocEVL','Bushwacker',29),('Tide','Black Lanner',29),('Trineghj','Dragon',29),('Sh&apos;dfghow','Arctic Wolf',29);
/*Table structure for table `pqs_queue` */
DROP TABLE IF EXISTS `pqs_queue`;
CREATE TABLE `pqs_queue` (
`CallSign` varchar(25) NOT NULL,
`Mech` varchar(25) NOT NULL,
`ID` int(11) NOT NULL AUTO_INCREMENT,
`MissionID` int(11) DEFAULT NULL,
`Merc` tinyint(1) NOT NULL DEFAULT '0',
`Updated` tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY `ID` (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=365 DEFAULT CHARSET=latin1;
/*Data for the table `pqs_queue` */
insert into `pqs_queue`(`CallSign`,`Mech`,`ID`,`MissionID`,`Merc`,`Updated`) values ('h','Dragon',361,30,0,0),('Flyscreen','Hauptmann IIC',359,30,0,1),('g','Dragon',360,30,0,0),('e','Dragon',358,30,0,0),('DocEVL','Bushwacker',334,30,0,0),('d','Dragon',357,30,0,0),('Tide','Black Lanner',353,33,0,0),('Tide','Black Lanner',352,32,0,0),('c','Dragon',356,30,0,0),('Tide','Black Lanner',351,31,0,0),('b','Dragon',355,30,0,0),('Briana9','Dragon',339,30,1,0),('Trineghj','Dragon',340,31,1,0),('Alpha','Cougar',354,30,0,0),('Sh&apos;dfghow','Arctic Wolf',348,30,0,0),('ShadowHawk','Zeus',349,30,0,0),('Superman','Hauptmann IIC',350,31,0,0),('Sh&apos;dow','Atlas',363,34,0,0),('Gorgalla','Templar',364,31,0,0);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python
from urllib2 import urlopen
from time import sleep
import os
while True:
sleep(5)
response = urlopen('http://10.0.0.10/pqs/playFSTrainer.php')
play = response.readline()
if ( play == "1" ):
os.system('pkill omxplayer')
os.system('omxplayer -b -o hdmi /home/pi/Downloads/BTFS_VTS_01_1.mp4 &')
sleep(1)
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env python
from time import sleep
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(25, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
sleep(.1)
if ( GPIO.input(23) == False ):
os.system('pkill omxplayer')
sleep(1)
if ( GPIO.input(24) == False ):
os.system('pkill omxplayer')
# os.system('omxplayer -b -o hdmi --vol -1500 /home/pi/Downloads/BTFS_VTS_01_1.mp4 &')
os.system('omxplayer -b -o hdmi /home/pi/Downloads/BTFS_VTS_01_1.mp4 &')
sleep(1)
if ( GPIO.input(25) == False ):
os.system('pkill omxplayer')
# os.system('omxplayer -b -o hdmi --amp 600 /home/pi/Downloads/RP_Dooley_Tesla.mp4 &')
os.system('omxplayer -b -o hdmi /home/pi/Downloads/RP_Dooley_Tesla_boosted_audio_20.mp4 &')
sleep(1)
Binary file not shown.
+355
View File
@@ -0,0 +1,355 @@
-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb2+deb7u5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 19, 2017 at 12:21 AM
-- Server version: 5.5.50
-- PHP Version: 5.4.45-0+deb7u4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `pqs`
--
-- --------------------------------------------------------
--
-- Table structure for table `pqs_currentmission`
--
CREATE TABLE IF NOT EXISTS `pqs_currentmission` (
`Callsign` varchar(25) DEFAULT NULL,
`MissionID` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pqs_gameconfig`
--
CREATE TABLE IF NOT EXISTS `pqs_gameconfig` (
`gamechoiceid` int(11) DEFAULT NULL,
`numpods` int(11) DEFAULT NULL,
`timepergame` int(11) DEFAULT NULL,
`timetoreset` int(11) DEFAULT NULL,
`mapid` int(11) NOT NULL,
`typeid` int(11) NOT NULL,
`launchdelay` int(11) NOT NULL,
`visibility` int(11) NOT NULL,
`weather` int(11) NOT NULL,
`timeofday` int(11) NOT NULL,
`timelimit` int(11) NOT NULL,
`radar` int(11) NOT NULL,
`heat` tinyint(1) NOT NULL,
`friendlyfire` tinyint(1) NOT NULL,
`splashdamage` tinyint(1) NOT NULL,
`limitedammo` tinyint(1) NOT NULL,
`noreturn` tinyint(1) NOT NULL,
`printdebriefing` tinyint(1) NOT NULL,
`missionreview` tinyint(1) NOT NULL,
`weaponjam` tinyint(1) NOT NULL,
`advancemode` tinyint(1) NOT NULL,
`armormode` tinyint(1) NOT NULL,
`cameraship` int(2) NOT NULL,
`GroupAvalible` tinyint(1) NOT NULL,
UNIQUE KEY `gamechoiceid` (`gamechoiceid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pqs_gameconfig`
--
INSERT INTO `pqs_gameconfig` (`gamechoiceid`, `numpods`, `timepergame`, `timetoreset`, `mapid`, `typeid`, `launchdelay`, `visibility`, `weather`, `timeofday`, `timelimit`, `radar`, `heat`, `friendlyfire`, `splashdamage`, `limitedammo`, `noreturn`, `printdebriefing`, `missionreview`, `weaponjam`, `advancemode`, `armormode`, `cameraship`, `GroupAvalible`) VALUES
(1, 6, 10, 5, -1, 3, 5, 1, 1, 1, 10, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 2, 0);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_gametype`
--
CREATE TABLE IF NOT EXISTS `pqs_gametype` (
`TypeID` int(11) NOT NULL AUTO_INCREMENT,
`TypeName` varchar(22) NOT NULL,
`roster` int(11) NOT NULL,
PRIMARY KEY (`TypeID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `pqs_gametype`
--
INSERT INTO `pqs_gametype` (`TypeID`, `TypeName`, `roster`) VALUES
(1, 'Destruction', -2),
(2, 'Team Destruction', -1),
(3, 'Attrition', 0),
(4, 'Team Attrition', 1),
(5, 'Capture the Flag', 2),
(6, 'King of the Hill', 3),
(7, 'Team King of the Hill', 4),
(8, 'Steal the Beacon', 5),
(9, 'Master Trial', 6),
(10, 'Siege Assault', 7);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_infopanel`
--
CREATE TABLE IF NOT EXISTS `pqs_infopanel` (
`Updated` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pqs_infopanel`
--
INSERT INTO `pqs_infopanel` (`Updated`) VALUES
(0);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_mapinfo`
--
CREATE TABLE IF NOT EXISTS `pqs_mapinfo` (
`MapID` int(11) NOT NULL,
`MapName` varchar(25) NOT NULL,
`D` tinyint(1) NOT NULL,
`TD` tinyint(1) NOT NULL,
`A` tinyint(1) NOT NULL,
`TA` tinyint(1) NOT NULL,
`CTF` tinyint(1) NOT NULL,
`KOTH` tinyint(1) NOT NULL,
`TKOTH` tinyint(1) NOT NULL,
`STB` tinyint(1) NOT NULL,
`MT` tinyint(1) NOT NULL,
`SA` tinyint(1) NOT NULL,
`size` int(11) NOT NULL,
`DZ` int(11) NOT NULL,
`HE` int(11) NOT NULL,
`MRB` int(11) NOT NULL,
UNIQUE KEY `MapID` (`MapID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pqs_mapinfo`
--
INSERT INTO `pqs_mapinfo` (`MapID`, `MapName`, `D`, `TD`, `A`, `TA`, `CTF`, `KOTH`, `TKOTH`, `STB`, `MT`, `SA`, `size`, `DZ`, `HE`, `MRB`) VALUES
(-1, 'Random', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(1, 'BigCity', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 4, 4, 0, 0),
(2, 'Cantina', 2, 2, 2, 2, 2, 0, 0, 0, 0, 1, 3, 4, 0, 1),
(3, 'CentralPark', 3, 3, 3, 3, 0, 1, 1, 1, 1, 0, 4, 4, 0, 0),
(4, 'Coliseum', 4, 4, 4, 4, 3, 0, 0, 0, 0, 0, 2, 4, 0, 1),
(5, 'DustBowl', 5, 5, 5, 5, 0, 2, 2, 0, 0, 0, 4, 4, 0, 0),
(6, 'Factory', 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0),
(7, 'Frostbite', 7, 7, 7, 7, 4, 3, 3, 2, 0, 0, 4, 4, 0, 0),
(8, 'Freezer', 8, 8, 8, 8, 0, 4, 4, 0, 2, 0, 4, 4, 0, 0),
(9, 'GatorBait', 9, 9, 9, 9, 0, 5, 5, 3, 3, 0, 4, 4, 0, 0),
(10, 'GhostHighway', 10, 10, 10, 10, 0, 6, 6, 4, 4, 0, 4, 4, 0, 0),
(11, 'Grassland', 11, 11, 11, 11, 5, 7, 0, 0, 5, 0, 4, 4, 0, 0),
(12, 'Hidaway', 12, 12, 12, 12, 6, 8, 7, 5, 0, 0, 4, 2, 0, 1),
(13, 'Hotplate', 13, 13, 13, 13, 7, 0, 0, 0, 6, 0, 4, 4, 0, 0),
(14, 'InnerCity', 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0),
(15, 'Jungle', 15, 15, 15, 15, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0),
(16, 'Lunacy', 16, 16, 16, 16, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0),
(17, 'Nazca', 17, 17, 17, 17, 8, 9, 8, 0, 7, 0, 4, 4, 0, 0),
(18, 'PalaceGates', 18, 18, 18, 18, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0),
(19, 'Peaks', 19, 19, 19, 19, 9, 0, 0, 0, 8, 0, 4, 4, 0, 0),
(20, 'Reduex', 20, 20, 20, 20, 10, 0, 0, 0, 0, 2, 3, 4, 0, 1),
(21, 'ScarabStronghold', 21, 21, 21, 21, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0),
(22, 'SnowJob', 22, 22, 22, 22, 0, 0, 0, 0, 0, 0, 4, 2, 0, 0),
(23, 'StormCanyon', 23, 23, 23, 23, 11, 0, 0, 0, 0, 3, 3, 4, 0, 1),
(24, 'Timberline', 24, 24, 24, 24, 12, 0, 0, 0, 0, 0, 4, 4, 0, 0),
(25, 'TribelIncursion', 25, 25, 25, 25, 0, 0, 0, 0, 0, 0, 3, 3, 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_mechinfo`
--
CREATE TABLE IF NOT EXISTS `pqs_mechinfo` (
`MechID` int(11) NOT NULL AUTO_INCREMENT,
`MechName` varchar(25) NOT NULL,
`Firepower` int(11) NOT NULL,
`Armor` int(11) NOT NULL,
`Speed` int(11) NOT NULL,
`Heat` int(11) NOT NULL,
`Class` varchar(25) NOT NULL,
`img_name` varchar(25) NOT NULL,
`Tons` int(11) NOT NULL,
`roster` int(11) NOT NULL,
PRIMARY KEY (`MechID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=64 ;
--
-- Dumping data for table `pqs_mechinfo`
--
INSERT INTO `pqs_mechinfo` (`MechID`, `MechName`, `Firepower`, `Armor`, `Speed`, `Heat`, `Class`, `img_name`, `Tons`, `roster`) VALUES
(1, 'Brigand', 25, 28, 85, 74, 'Light', 'brigand.jpg', 25, 17),
(2, 'Commando', 27, 34, 85, 100, 'Light', 'commando.jpg', 25, 22),
(3, 'Osiris', 22, 34, 83, 93, 'Light', 'osiris.jpg', 30, 46),
(4, 'Uller', 35, 31, 89, 89, 'Light', 'uller.jpg', 30, 58),
(5, 'Cougar', 37, 40, 81, 83, 'Light', 'cougar.jpg', 35, 23),
(6, 'Owens', 43, 39, 80, 71, 'Light', 'owens.jpg', 35, 47),
(7, 'Puma', 57, 38, 82, 89, 'Light', 'puma.jpg', 35, 48),
(8, 'Raven', 35, 35, 77, 76, 'Light', 'raven.jpg', 35, 49),
(9, 'Wolfhound IIC', 28, 39, 72, 80, 'Light', 'wolfhound.jpg', 35, 64),
(10, 'Arctic Wolf', 47, 45, 73, 80, 'Medium', 'arcticwolf.jpg', 40, 3),
(11, 'Chimera', 47, 46, 73, 59, 'Medium', 'chimera.jpg', 40, 21),
(12, 'Hollander II', 45, 48, 75, 61, 'Medium', 'hollanderii.jpg', 45, 36),
(13, 'Shadowcat', 51, 48, 73, 74, 'Medium', 'shadowcat.jpg', 45, 52),
(14, 'Hellhound', 47, 54, 67, 59, 'Medium', 'hellhound.jpg', 50, 33),
(15, 'Hunchback', 38, 52, 64, 63, 'Medium', 'hunchback.jpg', 50, 37),
(16, 'Uziel', 43, 50, 69, 60, 'Medium', 'uziel.jpg', 50, 60),
(17, 'Black Lanner', 50, 56, 67, 56, 'Medium', 'blacklanner.jpg', 55, 16),
(18, 'Bushwacker', 45, 58, 70, 56, 'Medium', 'bushwacker.jpg', 55, 18),
(19, 'Ryoken', 55, 58, 70, 56, 'Medium', 'ryoken.jpg', 55, 51),
(20, 'Dragon', 43, 60, 63, 55, 'Heavy', 'dragon.jpg', 60, 27),
(21, 'Vulture', 59, 63, 63, 52, 'Heavy', 'vulture.jpg', 60, 62),
(22, 'Catapult', 70, 60, 65, 42, 'Heavy', 'catapult.jpg', 65, 19),
(23, 'Cauldronborn', 65, 60, 61, 70, 'Heavy', 'cauldronborn.jpg', 65, 20),
(24, 'Loki', 48, 64, 57, 77, 'Heavy', 'loki.jpg', 65, 39),
(25, 'Grizzly', 55, 67, 54, 61, 'Heavy', 'grizzly.jpg', 70, 31),
(26, 'Novacat', 51, 65, 59, 50, 'Heavy', 'novacat.jpg', 70, 45),
(27, 'Thor', 58, 67, 50, 71, 'Heavy', 'thor.jpg', 70, 57),
(28, 'Black Knight', 61, 65, 55, 50, 'Heavy', 'blackknight.jpg', 75, 15),
(29, 'Mad Cat', 58, 70, 58, 56, 'Heavy', 'madcat.jpg', 75, 41),
(30, 'Thanatos', 63, 66, 48, 51, 'Heavy', 'thanatos.jpg', 75, 56),
(31, 'Awesome', 57, 74, 47, 58, 'Assault', 'awesome.jpg', 80, 9),
(32, 'Zeus', 80, 71, 49, 60, 'Assault', 'zeus.jpg', 80, 65),
(33, 'Deimos', 80, 71, 49, 60, 'Assault', 'deimos.jpg', 85, 26),
(34, 'Masakari', 66, 78, 49, 69, 'Assault', 'masakari.jpg', 85, 43),
(35, 'Templar', 68, 77, 49, 60, 'Assault', 'templar.jpg', 85, 55),
(36, 'Cyclops', 72, 78, 46, 50, 'Assault', 'cyclops.jpg', 90, 24),
(37, 'Highlander', 73, 79, 42, 55, 'Assault', 'highlander.jpg', 90, 35),
(38, 'Madcat Mk II', 93, 78, 46, 56, 'Assault', 'madcatii.jpg', 90, 42),
(39, 'Mauler', 95, 78, 41, 50, 'Assault', 'mauler.jpg', 90, 44),
(40, 'Hauptmann IIC', 86, 84, 35, 51, 'Assault', 'hauptmann.jpg', 95, 32),
(41, 'Atlas', 95, 99, 38, 50, 'Assault', 'atlas.jpg', 100, 7),
(42, 'Daishi', 78, 91, 36, 57, 'Assault', 'daishi.jpg', 100, 25),
(43, 'Flea', 0, 0, 0, 0, 'Light', 'bdicon.jpg', 20, 29),
(44, 'Solitare', 0, 0, 0, 0, 'Light', 'bdicon.jpg', 25, 53),
(45, 'Assassin II', 0, 0, 0, 0, 'Medium', 'bdicon.jpg', 45, 6),
(46, 'Hellspawn', 0, 0, 0, 0, 'Medium', 'bdicon.jpg', 45, 34),
(47, 'Black Hawk', 0, 0, 0, 0, 'Medium', 'bdicon.jpg', 50, 14),
(48, 'Ares', 0, 0, 0, 0, 'Heavy', 'bdicon.jpg', 60, 4),
(49, 'Argus', 0, 0, 0, 0, 'Heavy', 'bdicon.jpg', 60, 5),
(50, 'Avatar', 0, 0, 0, 0, 'Heavy', 'bdicon.jpg', 70, 8),
(51, 'Longbow', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 85, 40),
(52, 'Victor', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 85, 61),
(53, 'Sunder', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 90, 54),
(54, 'Gladiator', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 95, 30),
(55, 'Annihilator', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 100, 1),
(56, 'Behemoth', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 100, 12),
(57, 'Fafnir', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 100, 28),
(58, 'Kodiak', 0, 0, 0, 0, 'Assault', 'bdicon.jpg', 100, 38),
(59, 'Random Any', 0, 0, 0, 0, 'Random', 'bdicon.jpg', 0, 0),
(60, 'Random Light', 0, 0, 0, 0, 'Random', 'bdicon.jpg', 20, -1),
(61, 'Random Medium', 0, 0, 0, 0, 'Random', 'bdicon.jpg', 40, -2),
(62, 'Random Heavy', 0, 0, 0, 0, 'Random', 'bdicon.jpg', 60, -3),
(63, 'Random Assault', 0, 0, 0, 0, 'Random', 'bdicon.jpg', 80, -4);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_mission`
--
CREATE TABLE IF NOT EXISTS `pqs_mission` (
`MissionID` int(11) NOT NULL AUTO_INCREMENT,
`MissionDate` int(11) NOT NULL,
`MissionSize` int(11) NOT NULL,
`numplayers` int(11) DEFAULT NULL,
`Completed` tinyint(1) NOT NULL DEFAULT '0',
`nummercs` int(11) NOT NULL,
`locked` tinyint(1) NOT NULL DEFAULT '0',
`MissionTime` int(11) NOT NULL,
`GameType` int(11) NOT NULL DEFAULT '3',
`map` int(11) NOT NULL DEFAULT '21',
UNIQUE KEY `MatchID` (`MissionID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `pqs_pastmissions`
--
CREATE TABLE IF NOT EXISTS `pqs_pastmissions` (
`Callsign` varchar(25) DEFAULT NULL,
`Mech` varchar(25) DEFAULT NULL,
`Missionid` int(11) DEFAULT NULL,
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pqs_pods`
--
CREATE TABLE IF NOT EXISTS `pqs_pods` (
`pod01` tinyint(1) NOT NULL,
`pod02` tinyint(1) NOT NULL,
`pod03` tinyint(1) NOT NULL,
`pod04` tinyint(1) NOT NULL,
`pod05` tinyint(1) NOT NULL,
`pod06` tinyint(1) NOT NULL,
`pod07` tinyint(1) NOT NULL,
`pod08` tinyint(1) NOT NULL,
`pod09` tinyint(1) NOT NULL,
`pod10` tinyint(1) NOT NULL,
`pod11` tinyint(1) NOT NULL,
`pod12` tinyint(1) NOT NULL,
`pod13` tinyint(1) NOT NULL,
`pod14` tinyint(1) NOT NULL,
`pod15` tinyint(1) NOT NULL,
`pod16` tinyint(1) NOT NULL,
`ID` tinyint(1) NOT NULL,
UNIQUE KEY `ID` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pqs_pods`
--
INSERT INTO `pqs_pods` (`pod01`, `pod02`, `pod03`, `pod04`, `pod05`, `pod06`, `pod07`, `pod08`, `pod09`, `pod10`, `pod11`, `pod12`, `pod13`, `pod14`, `pod15`, `pod16`, `ID`) VALUES
(1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `pqs_queue`
--
CREATE TABLE IF NOT EXISTS `pqs_queue` (
`CallSign` varchar(25) NOT NULL,
`Mech` varchar(25) NOT NULL,
`ID` int(11) NOT NULL AUTO_INCREMENT,
`MissionID` int(11) DEFAULT NULL,
`Merc` tinyint(1) NOT NULL DEFAULT '0',
`Updated` tinyint(1) NOT NULL DEFAULT '0',
`team` int(2) NOT NULL DEFAULT '0',
`unit` int(2) NOT NULL DEFAULT '0',
UNIQUE KEY `ID` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
To change the size of the combinedqueue.php file:
To adjust width open combinedqueue.php and scroll to the bottom. Change both table width's to desired width.
To adjust height open css/main.css. Find div.queuediv3 and div.queuediv4 and adjust height parameter accordingly.

Some files were not shown because too many files have changed in this diff Show More