Пример #1
0
     // get data from query and spit it out
     $id = $server['id'];
     $name = $server['name'];
     $game_id = $server['game'];
     $pb_active = $server['pb_active'];
     $ip = $server['ip'];
     $game_name = $server['game_name'];
     ## row color
     $alter = alter();
     ## Make it human readable
     if ($pb_active == 1) {
         $pb_active_read = '<span class="on">Yes</span>';
     } else {
         $pb_active_read = '<span class="off">No</span>';
     }
     $ip_read = ipLink($ip);
     // set a warning that the active game has changed since the last page?
     if ($game != $game_id) {
         $warn = 'game';
     } else {
         $warn = '';
     }
     $del_token = genFormToken('del-server' . $id);
     $table = <<<EOD
t<tr class="{$alter}">
t\t<td>{$id}</td>
t\t<td><strong><a href="settings-server.php?t=srv&amp;id={$id}">{$name}</a></strong></td>
t\t<td>{$ip_read}</td>
t\t<td>{$pb_active_read}</td>
t\t<td><a href="settings-games.php?game={$game_id}&amp;w={$warn}" title="Edit the settings for {$game_name}">{$game_name}</a></td>
t\t<td>
Пример #2
0
	</tfoot>
	<tbody>
	<?php 
    $bl_data = $dbl->getBL();
    $num_rows = $bl_data['num_rows'];
    if ($num_rows > 0) {
        foreach ($bl_data['data'] as $bl) {
            // get data from query and loop
            $id = $bl['id'];
            $ip = $bl['ip'];
            $active = $bl['active'];
            $reason = $bl['reason'];
            $time_add = $bl['time_add'];
            $admin = $bl['admin'];
            $time_add = date($tformat, $time_add);
            $ip = ipLink($ip);
            $alter = alter();
            $token = genFormToken('act' . $id);
            if ($active == 1) {
                $active = 'Yes';
                $actions = '<form action="actions/blacklist.php" method="post">
						<input type="hidden" name="id" value="' . $id . '" />
						<input type="hidden" name="token" value="' . $token . '" />
						<input type="submit" name="deact" value="De-active" class="action del" title="De-active this ban" />
						</form>';
            } else {
                $active = 'No';
                $alter .= " inact";
                $actions = '<form action="actions/blacklist.php" method="post">
						<input type="hidden" name="id" value="' . $id . '" />
						<input type="hidden" name="token" value="' . $token . '" />
Пример #3
0
					<h3>External Links</h3>
					<ul class="links-list">';
    foreach ($links['data'] as $link) {
        echo '<li><a href="' . $link['url'] . '" class="external" title="' . $link['title'] . '">' . $link['name'] . '</a></li>';
    }
    echo '</ul></div>';
} else {
    echo 'no results';
}
## End External Links Section ##
?>
	
	<br class="clear" />

	<p class="last-seen"><?php 
if ($_SESSION['last_ip'] != '') {
    ?>
You were last seen with this <?php 
    $ip = ipLink($_SESSION['last_ip']);
    echo $ip;
    ?>
 IP address,<br /><?php 
}
?>
		<?php 
$mem->lastSeen('l, jS F Y (H:i)');
?>
	</p>
	
<?php 
require 'inc/footer.php';