Location: PHPKode > projects > PHPEcho CMS > blocks/statistics/index.php
<?php
/*  +--------------------------------------------
*   |
*   |     Product:       PHPEchoCMS
*   |     Author:        Anas Husseini
*   |     License:       GPL
*   |     Last updated:  23.03.07
*   |     For version:   2.0 
*   |     Desc:          Statistics block
*   |        
*   +--------------------------------------------
*/

if( !@$BASE_LOAD )
{
    die('Application error.');
}

$block_display_name = $lang['023'];
$block_content = "";

if (session_is_registered('login'))
{
	$u_counts = query ("select `user_visits` from `".PREFIX."users` where `username`='".$_SESSION['username']."'", 2);
	$block_content .= $lang['024'].$u_counts.".<br>";
}

$block_content .= $lang['025']."<script>document.write(navigator.platform)</script>.<br>";
$block_content .= $lang['026']."<script>document.write(navigator.appCodeName)</script>.<br>";
$block_content .= $lang['027']."<br>";
?>
Return current item: PHPEcho CMS