Unique Regions
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-md-6">
						<div class="panel panel-red">
							<div class="panel-heading">
								<div class="row">
									<div class="col-xs-3 fa fa-clock-o fa-5x"></div>
									<div class="col-xs-9 text-right">
										<div class="huge">
											<?php 
echo PlaytimeCon($info['duration']);
?>
										</div>
										<div>
											Hours Played
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div><!-- /.row -->
				<div class="row">
					<div class="col-lg-12">
						<div class="panel panel-default">
							<div class="panel-heading">
示例#2
0
						</div>
						<div class="col-xs-6">
							<div class="profile-info">
								<h4>SteamID</h4>
								<span class="badge-profile"><?php 
echo $player['auth'];
?>
</span>
								<h4>Location</h4>
								<span class="badge-profile"><?php 
echo $player['cc'];
?>
</span>
								<h4>Playtime</h4>
								<span class="badge-profile"><?php 
echo PlaytimeCon($player['playtime']) . " hrs";
?>
</span>
								<h4>Last On</h4>
								<span class="badge-profile"><?php 
echo date('m/d/y H:i', $player['disconnect_time']);
?>
</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-sm-9" style="margin-bottom:25px">
					<div style="padding-top:20px;padding-right:25px">
						<ul class="nav nav-tabs nav-justified" role="tablist" data-tabs="tabs">
							<li id="getplayerstats" class="active"><a href="#" data-toggle="tab">Stats</a></li>
if (isset($_GET['type']) && $_GET['type'] == 'getplayers') {
    $table = 'player_analytics';
    $primaryKey = 'id';
    $columns = array(array('db' => 'id', 'dt' => 'id'), array('db' => 'name', 'dt' => 'name', 'formatter' => function ($d, $row) {
        return htmlentities($d);
    }), array('db' => 'auth', 'dt' => 'auth'), array('db' => 'SUM(duration)', 'dt' => 'duration', 'formatter' => function ($d, $row) {
        return PlaytimeCon($d);
    }), array('db' => 'COUNT(auth)', 'dt' => 'total', 'as' => 'total', 'formatter' => function ($d, $row) {
        return number_format($d);
    }), array('db' => 'MAX(connect_time)', 'dt' => 'connect_time', 'as' => 'connect_time', 'formatter' => function ($d, $row) {
        return date('h:i:s a m/d/Y', $d);
    }), array('db' => 'country', 'dt' => 'country'), array('db' => 'premium', 'dt' => 'premium'), array('db' => 'html_motd_disabled', 'dt' => 'html_motd_disabled'), array('db' => 'os', 'dt' => 'os'));
    $joinQuery = '';
    $extraCondition = '';
    $groupBy = "GROUP BY auth";
    require 'ssp.class.php';
    echo json_encode(SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $joinQuery, $extraCondition, $groupBy));
}
if (isset($_GET['type']) && $_GET['type'] == 'getcountryinfo') {
    $table = 'player_analytics';
    $primaryKey = 'id';
    $columns = array(array('db' => 'id', 'dt' => 'id'), array('db' => 'name', 'dt' => 'name', 'formatter' => function ($d, $row) {
        return htmlentities($d);
    }), array('db' => 'auth', 'dt' => 'auth'), array('db' => 'duration', 'dt' => 'duration', 'formatter' => function ($d, $row) {
        return PlaytimeCon($d);
    }), array('db' => 'premium', 'dt' => 'premium'), array('db' => 'html_motd_disabled', 'dt' => 'html_motd_disabled'), array('db' => 'os', 'dt' => 'os'));
    $joinQuery = '';
    $extraCondition = "`country_code` = '" . $_GET['id'] . "'";
    require 'ssp.class.php';
    echo json_encode(SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $joinQuery, $extraCondition));
}
$classes = json_encode($class);
?>

								<div class="col-sm-12" style="padding:0px">
									<table class="table table-bordered table-striped table-hover table-condensed display">
										<thead>
											<tr>
												<th>Stat</th>
												<th>Total</th>
											</tr>
										</thead>
										<tbody>
										<tr>
												<td>Total Playtime</td>
												<td><?php 
echo PlaytimeCon($player['playtime']);
?>
</td>
											</tr>
											<tr>
												<td>Total Kills</td>
												<td><?php 
echo number_format($player['kills']);
?>
</td>
											</tr>
											<tr>
												<td>Total Deaths</td>
												<td><?php 
echo number_format($player['deaths']);
?>
示例#5
0
        ?>
</h4></td>
						<td style="text-align:center;vertical-align:middle;"><h4><?php 
        echo number_format($player['deaths']);
        ?>
</h4></td>
						<td style="text-align:center;vertical-align:middle;"><h4><?php 
        echo StatCon($player['kills'], $player['deaths']);
        ?>
</h4></td>
						<td style="text-align:center;vertical-align:middle;"><h4><?php 
        echo StatCon($player['kills'], $player['playtime'] / 60);
        ?>
</h4></td>
						<td style="text-align:right;vertical-align:middle;padding-right:10px;"><h4><?php 
        echo PlaytimeCon(time() - $player['connect_time']);
        ?>
</h4></td>
					</tr>
<?php 
    }
    ?>
				</tbody>
			</table>
<?php 
} else {
    ?>
	<div style="text-align:center">
		<h1>No Current Players</h1>
	</div>
<?php 
示例#6
0
    echo $i++;
    ?>
</i>
						</span>
					</div>
					<div class="pull-right" style="padding-right: 10px;display:inline-block; vertical-align:top">
						<h1><?php 
    echo htmlentities($log['name']);
    ?>
</h1>
					</div>
				</div>
				<div class="row" style="padding:10px">
					<div class="pull-left" style="padding-right: 10px;display:inline-block; vertical-align:top">
						<h4><?php 
    echo "Kills: " . number_format($log['kills']) . " Assists: " . number_format($log['assists']) . " Dominations: " . number_format($log['dominations']) . " Revenges: " . number_format($log['revenges']) . " Playtime: " . PlaytimeCon($log['playtime']) . " hrs";
    ?>
</h4>
					</div>
				</div>
			</div>
<?php 
}
?>
		</div>
	</div>
<?php 
include "inc/footer.php";
?>
</div>
<!-- Modal -->