Пример #1
0
function getServersDataTable()
{
    $serverData = getServers();
    if (sizeof($serverData) == 0) {
        return "{\"data\":[]}";
    }
    return "{\"data\":" . json_encode($serverData) . "}";
}
Пример #2
0
				<h4 class="ctitle">Your Servers</h4>
				
				<table class="table table-striped table-condensed">
					<thead>
						<tr>
							<th>Select</th>
							<th>ID</th>
							<th>URL</th>
							<th>Enabled</th>
							<th>Indate</th>
							<th>Last Used</th>
						</tr>
					</thead>
					<tbody>
						<?php 
$res = getServers($_SESSION['UUID']);
while ($row = $res->fetch_array(MYSQLI_ASSOC)) {
    ?>
								
								<tr>
									<td><input type="checkbox" name="id" id="id-<?php 
    echo $row['ID'];
    ?>
" value="<?php 
    echo $row['ID'];
    ?>
"></td>
									<td><?php 
    echo $row['ID'];
    ?>
</td>
Пример #3
0
			<p2>' . $own[$i]["ip"] . ':' . $own[$i]['port'] . '</p2>
			<span id="status' . $own[$i]["serverid"] . '" class="' . $status["string"] . '">' . $status["string"] . '</span><br>
			<a class="disabled" onclick="start(' . $own[$i]["serverid"] . ')"><img class="bigimg" src="pics/play" width="30" height="30"></a>
			<a class="disabled" onclick="stop(' . $own[$i]["serverid"] . ')"><img class="bigimg" src="pics/stop" width="30" height="30"></a>
			<a class="disabled" onclick="update(' . $own[$i]["serverid"] . ')"><img class="bigimg" src="pics/update" width="30" height="30"></a>
			<a class="disabled" href="options.php?serverid=' . $own[$i]["serverid"] . '"><img class="bigimg" src="pics/more" width="30" height="30"></a>
			<a class="normala" onclick="fix(' . $own[$i]["serverid"] . ')" id="fixstatus' . $own[$i]["serverid"] . '">fixmaps</a>
			<a class="normala" href="log.php?serverid=' . $own[$i]["serverid"] . '">log</a>
			<form action="action.php?serverid=' . $own[$i]["serverid"] . '&action=4" method="post" id="form' . $own[$i]["serverid"] . ' ">
				<input type="text" name="cmd" placeholder="command" size="28" id="cmd' . $own[$i]["serverid"] . '"/>
				<input class="disableditem" type="button" value="send" onclick="exCommand(' . $own[$i]["serverid"] . ')" id="submitter"/>
				<label for="submitter" class="la"><img class="otherimg" src="pics/exec" width="29" height="25"></label><br>
			</form>
	</div>';
}
$adm = getServers($userid, 2);
for ($o = 0; $o < count($adm); $o++) {
    $ctype = typeCon($adm[$o]['type']);
    $status = getStatus($own[$i]["serverid"]);
    echo '<div class="item" id="' . $o . '">
			<span id="log' . $own[$i]["serverid"] . '" class="log">waiting...</span>
			<img class="smallimg" src="pics/' . $adm[$o]["type"] . '.png" height="16" width="16">
			<img class="smallimg" src="pics/adm.png" height="16" width="16">
			<p2> ID:' . $adm[$o]["serverid"] . '</p2>
			<p2>' . $adm[$o]["name"] . '</p2><br>
			<p2>' . $adm[$o]["ip"] . ':' . $adm[$o]['port'] . '</p2>
		  <span class="' . $status["string"] . '">' . $status["string"] . '</span>
		  <a class="normala" href="' . $run . $adm[$o]["ip"] . '">Connect</a><br>
		 	<a class="disabled" onclick="start(' . $adm[$o]["serverid"] . ')"><img class="bigimg" src="pics/play" width="30" height="30"></a>
		 	<a class="disabled" onclick="stop(' . $adm[$o]["serverid"] . ')"><img class="bigimg" src="pics/stop" width="30" height="30"></a>
			<a class="disabled" onclick="update(' . $own[$i]["serverid"] . ')"><img class="bigimg" src="pics/update" width="30" height="30"></a>