Example #1
0
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 {
        echo T_('None');
Example #2
0
$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!');
    ?>
</h4>