<?php

if ( $cat == 0 ) {
echo<<<PPPRINT
<!-- BEGIN TEMPLATE: indexstats.tmpl -->
    $ppopen
        <tr>
        <td class="{$Style['tddetails']}" align="left" width="100%">
            <font class="{$Style['small']}"><b>{$Globals['pp_lang']['stats']}</b><br />
            {$Globals['pp_lang']['regusers']}: {$cache['stats']['usertotal']}<br />
            {$Globals['pp_lang']['photos']}:  {$cache['stats']['totalphotos']}<br />
PPPRINT;

    if ( $Globals['allowpost'] == "yes" ) {
echo<<<PPPRINT
            {$Globals['pp_lang']['comments']}: {$cache['stats']['posttotal']}<br />
PPPRINT;
    }

echo<<<PPPRINT
            {$Globals['pp_lang']['views']}: {$cache['stats']['totalviews']}<br />
            {$Globals['pp_lang']['diskspace']}: {$cache['stats']['diskspace']}</font>
        </td>
PPPRINT;

    if ( $Globals['topposterspal'] == "yes" ) {
echo<<<PPPRINT
        <td class="{$Style['tddetails']}" align="right" nowrap="nowrap">
            <font class="{$Style['small']}"><b>{$Globals['pp_lang']['toposter']}</b><br />
PPPRINT;

        for ( $x=1; $x < count($cache['top']['topposters']); $x++ ) {
echo<<<PPPRINT
            <a href="{$cache['top']['toplink'][$x]}"><span class="{$Style['small']}">{$cache['top']['topposters'][$x]}</span></a><br />
PPPRINT;
        }
        
echo<<<PPPRINT
        </td>
PPPRINT;
    }

echo<<<PPPRINT
        </tr>
PPPRINT;

    if ( !empty($whoonline) ) {
echo<<<PPPRINT
        <tr>
        <td class="{$Style['tddetails']}" colspan="2" align="left">
            <font class="{$Style['small']}">$whoonline</font>
        </td>
        </tr>
PPPRINT;
    }
}

echo<<<PPPRINT
$ppclose
<br />
<!-- END TEMPLATE: indexstats.tmpl -->
PPPRINT;

?>
