Просмотр файла votes/allvotes.php

Размер файла: 2.95Kb
<?php
#-----------------------------------------------------#
#          ********* WAP-MOTORS *********             #
#             Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]             #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#	
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/maincore.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";


$text = @file("../local/profil/$log.prof"); 
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$privat=trim($udata[10]);}

echo'<img src="../images/img/partners.gif" alt=""> <b>'.$LANGUAGE['va100'].'</b><br><hr>';
if (!$_SESSION['log']=="" && !md5($_SESSION['par'])=="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {
if($udata[10]>0){
echo'<img src="../images/img/mail.gif" alt=""> <b><a href="../pages/privat.php?'.SID.'"><font color="red">'.$LANGUAGE['va101'].' ('.$privat.')</font></a></b><br>';}} 


$file = @file("../local/datavotes/allvotes.dat");
$file = array_reverse($file);
$total = count($file);    
if(!$total<1){
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + $config_allvotes){ $end = $total; }
else {$end = $start + $config_allvotes; }
for ($i = $start; $i < $end; $i++){

$data = explode("|",$file[$i]);
$sumtotal+=$data[11];
echo $LANGUAGE['va102'].' <b>'.$data[0].'</b><br>';
echo $LANGUAGE['va103'].'<br>';
echo $data[1].'<br>';
echo $data[2].'<br>';
echo $data[3].'<br>';
if(!empty($data[4])){echo $data[4].'<br>';}
if(!empty($data[5])){echo $data[5].'<br>';}
echo $LANGUAGE['va104'].' '.$data[11];
echo'<hr>';
}
    
if ($start != 0) {echo '<a href="allvotes.php?start='.($start - $config_allvotes).'&amp;'.SID.'">&lt;-'.$LANGUAGE['va105'].'</a> ';}else{echo'&lt;-'.$LANGUAGE['va105'];}
echo' | '; 
if ($total > $start + $config_allvotes) {echo ' <a href="allvotes.php?start='.($start + $config_allvotes).'&amp;'.SID.'">| '.$LANGUAGE['va106'].'-&gt;</a>';}else{echo $LANGUAGE['va106'].'-&gt;';}
echo'<br><br>'.$LANGUAGE['va107'].' '.$sumtotal;
echo'<br>'.$LANGUAGE['va108'].' '.$total;
}else{echo $LANGUAGE['va109'];}





echo'<br><br><a href="index.php?'.SID.'">'.$LANGUAGE['va110'].'</a><br>';
echo'<a href="../index.php?'.SID.'">'.$LANGUAGE['va111'].'</a>'; 
include_once"../themes/$config_themes/foot.php";
?>