<?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 /><br />
            {$Globals['pp_lang']['extra2totalb']}: {$cache['stats']['extra2total']}<br /><br />
            {$Globals['pp_lang']['extra1total']}: {$cache['stats']['extra1total']}<br /><br />
            {$Globals['pp_lang']['extra4total']}: {$cache['stats']['extra4total']} {$Globals['pp_lang']['extra12']}: {$cache['stats']['extra12']} (acres)<br /><br />
            {$Globals['pp_lang']['extra5total']}: {$cache['stats']['extra5total']} {$Globals['pp_lang']['extra8total']}: {$cache['stats']['extra8total']} (lbs)<br /><br />
            {$Globals['pp_lang']['extra6total']}: {$cache['stats']['extra6total']}<br /><br />
            {$Globals['pp_lang']['extra11']}: {$cache['stats']['extra11']}<br /><br />
            {$Globals['pp_lang']['regusers1']}: {$cache['stats']['usertotal']}<br /><br />
            {$Globals['pp_lang']['photos']}:  {$cache['stats']['totalphotos']}<br /><br />
PPPRINT;


echo<<<PPPRINT
            {$Globals['pp_lang']['views']}: {$cache['stats']['totalviews']}<br /><br />
            {$Globals['pp_lang']['diskspace']}: {$cache['stats']['diskspace']}<br /><br />
            *Hourly rate based on research by Independent Sector</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> ....(<span class="{$Style['small']}">{$cache['top']['topposts'][$x]}</span>)<br /><br />
PPPRINT;
        }


        for ( $x=1; $x < count($cache['popular']['link']); $x++ ) {
echo<<<PPPRINT
        
           <a href="{$cache['popular']['link'][$x]}"><span class="{$Style['small']}">{$cache['popular']['title'][$x]}</span></a> (<span class="{$Style['small']}">{$cache['popular']['views'][$x]}</span>)<br /><br />
                
PPPRINT;
        }


echo<<<PPPRINT
        </td>
PPPRINT;
    }

echo<<<PPPRINT
        </tr>
PPPRINT;

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

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

?>
