<?php
/*===================================================+ 
|| # HoloCMS - Website and Content Management System
|+===================================================+ 
|| # Copyright © 2012 DnT [Tutti i diritti riservati]
|| # http://dnt.webnet32.com/
|+===================================================+ 
|| # DnT HoloCMS v2 - Created By Donatello (DnT)
|| # http://code.google.com/p/dnt-project/downloads/list
|+===================================================*/ 

$allow_guests = true;

include('core.php');
include('includes/session.php');

$tmp = HoloText(getContent('mod_staff-enabled'), true);
if($tmp !== "1"){
        header("Location: index.php"); exit;
}

$pagename = "Statistiche";
$pageid = "statistics";

include('templates/community/subheader.php');
include('templates/community/header.php');

?>

<div id="container">
	<div id="content">
    <div id="column1" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">Statistiche di <?php echo $sitename; ?>
							</h2>
						<div class="habblet box-content">
<h3>Il tuo account</h3>

<i>Il tuo nickname</i>: <?php echo "".$name.""; ?>
<br><br>


<i>Crediti</i>: <?php echo $myrow['credits']; ?>
<br><br>


<i>Club</i>: <?php if( !IsHCMember($my_id) ){ echo "Non fai parte del Club!"; } else { echo HCDaysLeft($my_id) . " </a>giorni rimanenti"; }?>
<br><br>




<i>Rank</i>: <?php
                if($user_rank == "1"){
                $user_rank2 = "Utente";
                }
                                if($user_rank == "2"){
                $user_rank2 = "Soccer Plus";
                }
                                if($user_rank == "3"){
                $user_rank2 = "Football Manager";
                }
                                if($user_rank == "4"){
                $user_rank2 = "Arbitro";
                }
                                if($user_rank == "5"){
                $user_rank2 = "Moderatore";
                }
                if($user_rank == "6"){
                $user_rank2 = "Amministratore";
                }
                if($user_rank == "7"){
                $user_rank2 = "Fondatore";
                 }
                 echo "$user_rank2"; ?>
                </li>
<br><br>







<i>Ultima visita</i>: <?php echo $myrow['lastvisit']; ?>


<h3>Statistiche Hotel</h3>

<i>Utenti Online</i>: <?php echo $online_count; ?>


<h3>Statistiche Server</h3>

<i>Version</i>: v<?php echo $holocms['version'] . "&nbsp;" . $holocms['stable']; ?>
<br><br>
<i>Utenti registrati</i>: <?php echo mysql_evaluate("SELECT COUNT(*) FROM users") ?>
<br><br>
<i>Stanze create</i>: <?php echo mysql_evaluate("SELECT COUNT(*) FROM rooms"); ?>
	
<br><br>
<i>Totale furni</i>: <?php echo mysql_evaluate("SELECT COUNT(*) FROM furniture"); ?>
<br><br>
<i>Totale gruppi</i>: <?php echo mysql_evaluate("SELECT COUNT(*) FROM groups"); ?>
<br><br>
<i>Filtro Bobba</i>: <?php echo FetchServerSetting('wordfilter_enable', true); ?> (<?php echo FetchServerSetting('wordfilter_censor'); ?>)
<br><br>
<i>Ecotron</i>: <?php echo FetchServerSetting('recycler_enable', true); ?>
<br><br>
<i>Scambio</i>: <?php echo FetchServerSetting('trading_enable', true); ?>
<br><br>
<i>Massimo Online</i>: <?php echo FetchServerSetting('server_game_maxconnections'); ?><br>
</center>

<br>
</div>


					</div>
				</div>
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

</div>
<div id="column2" class="column">





<div class='habblet-container '>		
						<div class='cbb clearfix green '>
	










							<h2 class="title">Cosa sono le statistiche?</h2>
						<div id="notfound-looking-for" class="box-content">
    <p><img class="statistics-image" src="./web-gallery/v2/images/statistics.png" align="left" width="98" height="104"/> Le statistiche sono le informazioni fondamentali dell' hotel.</p>
</div>


					</div>









				</div>
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>








</div>



<?php

include('templates/community/footer.php');

?>
