Beispiel #1
0
}
?>
	</table>
	<?php 
// if so show a timeline of player count
if ($g_options['showChart'] == "1") {
    require 'class/chart.class.php';
    $chartObj = new Chart($game);
    $chart = $chartObj->getChart('playerActivity', $playersObj);
    if (!empty($chart)) {
        echo '<h2>', l('Players per day'), ' - ', l('Last'), ' ', $g_options['DELETEDAYS'], ' ', l('Days'), '</h2>';
        echo '<div class="chart"><img src="', $chart, '" /></div>';
    }
    $chartObj2 = new Chart($game);
    $chartObj2->setOption('height', 350);
    $chart = $chartObj2->getChart('mostTimeOnline', $playersObj);
    if (!empty($chart)) {
        echo '<h2>', l('Most time online (hours)'), ' - ', l('Last'), ' ', $g_options['DELETEDAYS'], ' ', l('Days'), '</h2>';
        echo '<div class="chart"><img src="', $chart, '" /></div>';
        $chartData = $chartObj2->getChartData();
        if (!empty($chartData)) {
            echo '<h2></h2>';
            echo "<ol>\n";
            foreach ($chartData as $playerId => $entry) {
                echo '<li><a href="index.php?mode=playerinfo&amp;player=', $playerId, '">', makeSavePlayerName($entry['playerName']), '</a> ', getTimeFromSec($entry['timeSec']), '</li>';
            }
            echo "</ol>\n";
        }
    }
}
?>
Beispiel #2
0
        echo l('Direct Link');
        ?>
" /></a>
			(<?php 
        echo l('Last'), ' ', DELETEDAYS, ' ', l('Days');
        ?>
)
		</h1>
		<img src="<?php 
        echo $playtimeChart;
        ?>
" />
<?php 
    }
    $chartObj = new Chart($game);
    $killDayChart = $chartObj->getChart('killsPerDay', $player);
    if (!empty($killDayChart)) {
        ?>
		<a name="playerkillsperday"></a>
		<h1>
			<?php 
        echo l('Player Kill Statistics per Day');
        ?>
			<a href="index.php?mode=playerinfo&amp;player=<?php 
        echo $player;
        ?>
#playerkillsperday"><img src="hlstatsimg/link.gif" alt="<?php 
        echo l('Direct Link');
        ?>
" title="<?php 
        echo l('Direct Link');
Beispiel #3
0
        }
    } else {
        echo "[1]";
    }
    echo '</td></tr>', "\n";
} else {
    echo '<tr><td colspan="6">', l('No players recorded'), '</td></tr>', "\n";
}
?>
	</table>
	<?php 
// if so show a timeline of player count
if ($g_options['showChart'] == "1") {
    require 'class/chart.class.php';
    $chartObj = new Chart($game);
    $chart = $chartObj->getChart('playerActivity');
    echo '<img src="', $chart, '" />';
    /*
       	$chart = $chartObj->getChart('mostTimeOnline');
    		echo '<img src="',$chart,'" />';
    
       	// most time online
       	$query = mysql_query("SELECT ".DB_PREFIX."_Events_StatsmeTime.*,
    					TIME_TO_SEC(".DB_PREFIX."_Events_StatsmeTime.time) as tTime
    					FROM ".DB_PREFIX."_Events_StatsmeTime
    					LEFT JOIN ".DB_PREFIX."_Servers
    						ON ".DB_PREFIX."_Servers.serverId=".DB_PREFIX."_Events_StatsmeTime.serverId
    					WHERE ".DB_PREFIX."_Servers.game='".mysql_escape_string($game)."'");
    
    		while($result = mysql_fetch_assoc($query)) {
    			$onlineArr[$result['playerId']][] = $result;