View file themes/2011/foot.php

File size: 1.74Kb
  <?php
## Конец вывода центрального основного блока ##
## Начало нижнего блока ##
if(!isset($glav))
 {
  echo'<div class="c"><p align="center"><img src="/images/st/home.gif"alt=""/> <a href="'.$home.'/index.php?'.session_name().'='.session_id().'">На главную</a></p></div>';
 }
echo '<div class="copy"><p align="center">';
  if ($online=='1')
   {
    include $dob_url.'/modules/counter/online.php';
   }

echo'<br />';
  if($counter=='1')
   {
	include $dob_url.'/modules/counter/counter.php';
   }

  if($generacia=='1')
    {
     include $dob_url.'/templates/generacia.php';
    }

  if($gzip=='1' && isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw)
    {
     $contents = ob_get_contents();
     $gzip_file = strlen($contents);
     $gzip_file_out = strlen(gzcompress($contents,9));
     $gzip_pro = round(100 - (100 / ($gzip_file / $gzip_file_out)), 1);

     echo'Сжатие '.$gzip_pro.'%';
    }
  if($gzip=='0' && isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw && $status == 1)
    {
     echo'<br />';
     echo'<span style="color:red">gzip - off</span>';
    }
echo '</p></div>';


if(empty($glav))
 {
  $file_top_counters = $dob_url.'/data/top_counters.txt';
  $top_counters = file_get_contents($file_top_counters);
  echo'<div class="count"><p align="center">'.$top_counters.'</p></div>';
 }
else
 {
  $file_top_counters = $dob_url.'/data/top_counters_g.txt';
  $top_counters = file_get_contents($file_top_counters);
  echo'<div class="count"><p align="center">'.$top_counters.'</p></div>';
 }

echo'<p align="center" class="copy"><a href="'.$home.'">'.$copyright.'</a></p>';
?>