예제 #1
0
							<th><?php 
echo T_('Last Modification');
?>
</th>
							<th><?php 
echo T_('Status');
?>
</th>
							<th></th>
							<th></th>
						</tr>
					</thead>
					<tbody>
<?php 
while ($rowsGames = mysql_fetch_assoc($games)) {
    $repoCacheInfo = $gameInstaller->getCacheInfo($rowsGames['cachedir']);
    $gameExists = $gameInstaller->gameExists($rowsGames['game']);
    ?>
						<tr>
							<td><?php 
    echo htmlspecialchars($rowsGames['game'], ENT_QUOTES);
    ?>
</td>
							<td><?php 
    echo htmlspecialchars($rowsGames['cachedir'], ENT_QUOTES);
    ?>
</td>
							<td><?php 
    if ($repoCacheInfo != FALSE) {
        echo htmlspecialchars($repoCacheInfo['size'], ENT_QUOTES);
    } else {
예제 #2
0
 // Get SSH2 Object OR ERROR String
 $ssh = newNetSSH2($box['ip'], $box['sshport'], $box['login'], $aes->decrypt($box['password']));
 if (!is_object($ssh)) {
     continue;
 }
 $gameInstaller = new GameInstaller($ssh);
 ###
 $setGame = $gameInstaller->setGame($game['game']);
 if ($setGame == FALSE) {
     continue;
 }
 $setRepoPath = $gameInstaller->setRepoPath($game['cachedir']);
 if ($setRepoPath == FALSE) {
     continue;
 }
 $repoCacheInfo = $gameInstaller->getCacheInfo($game['cachedir']);
 if ($repoCacheInfo['status'] != 'Ready') {
     continue;
 }
 $setGameServerPath = $gameInstaller->setGameServerPath(dirname($server['path']));
 if ($setGameServerPath == FALSE) {
     continue;
 }
 $opStatus = $gameInstaller->checkOperation('updateGame');
 if ($opStatus == TRUE) {
     continue;
 }
 $updateGameServer = $gameInstaller->updateGameServer();
 if ($updateGameServer == FALSE) {
     continue;
 }
예제 #3
0
$ip = query_fetch_assoc("SELECT `ip`, `boxid` FROM `" . DBPREFIX . "boxIp` WHERE `ipid` = '" . $rows['ipid'] . "' LIMIT 1");
$game = query_fetch_assoc("SELECT * FROM `" . DBPREFIX . "game` WHERE `gameid` = '" . $rows['gameid'] . "' LIMIT 1");
$boxes = mysql_query("SELECT `boxid`, `name` FROM `" . DBPREFIX . "box` ORDER BY `boxid`");
$groups = mysql_query("SELECT `groupid`, `name` FROM `" . DBPREFIX . "group` ORDER BY `groupid`");
$aes = new Crypt_AES();
$aes->setKeyLength(256);
$aes->setKey(CRYPT_KEY);
// Get SSH2 Object OR ERROR String
$ssh = newNetSSH2($box['ip'], $box['sshport'], $box['login'], $aes->decrypt($box['password']));
if (!is_object($ssh)) {
    $_SESSION['msg1'] = T_('Connection Error!');
    $_SESSION['msg2'] = $ssh;
    $_SESSION['msg-type'] = 'error';
}
$gameInstaller = new GameInstaller($ssh);
$gameCacheInfo = $gameInstaller->getCacheInfo(dirname($rows['path']));
$gameExists = $gameInstaller->gameExists($game['game']);
include "./bootstrap/header.php";
/**
 * Notifications
 */
include "./bootstrap/notifications.php";
if ($rows['panelstatus'] == 'Started') {
    ?>
			<div class="alert alert-block">
				<h4 class="alert-heading">"<?php 
    echo htmlspecialchars($rows['name'], ENT_QUOTES);
    ?>
" <?php 
    echo T_('is currently running!');
    ?>
예제 #4
0
$type = query_fetch_assoc("SELECT `querytype` FROM `" . DBPREFIX . "game` WHERE `gameid` = '" . $rows['gameid'] . "' LIMIT 1");
$game = query_fetch_assoc("SELECT * FROM `" . DBPREFIX . "game` WHERE `gameid` = '" . $rows['gameid'] . "' LIMIT 1");
$group = query_fetch_assoc("SELECT `name` FROM `" . DBPREFIX . "group` WHERE `groupid` = '" . $rows['groupid'] . "' LIMIT 1");
$logs = mysql_query("SELECT * FROM `" . DBPREFIX . "log` WHERE `serverid` = '" . $serverid . "' ORDER BY `logid` DESC LIMIT 5");
$aes = new Crypt_AES();
$aes->setKeyLength(256);
$aes->setKey(CRYPT_KEY);
// Get SSH2 Object OR ERROR String
$ssh = newNetSSH2($box['ip'], $box['sshport'], $box['login'], $aes->decrypt($box['password']));
if (!is_object($ssh)) {
    $_SESSION['msg1'] = T_('Connection Error!');
    $_SESSION['msg2'] = $ssh;
    $_SESSION['msg-type'] = 'error';
}
$gameInstaller = new GameInstaller($ssh);
$gameCacheInfo = $gameInstaller->getCacheInfo(dirname($rows['path']));
$boxGameCacheInfo = $gameInstaller->getCacheInfo($game['cachedir']);
$gameExists = $gameInstaller->gameExists($game['game']);
include "./bootstrap/header.php";
/**
 * Notifications
 */
include "./bootstrap/notifications.php";
?>
			<ul class="nav nav-tabs">
				<li class="active"><a href="serversummary.php?id=<?php 
echo $serverid;
?>
"><?php 
echo T_('Summary');
?>