<?php
include_once("files/zag.php");
include_once("files/ini.php");
mysql_query("UPDATE `users` SET `udata37`='' WHERE `udata0`='$log'");
$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(mysql_num_rows($polz)==0){
header ("Location: index.php?error");
}else{
if ($udata67 == "200" or $udata67 == "777")
{
if(@file("local/pay.dat")){
$file = @file("local/pay.dat");
$total = count($file);
echo"История доната SMS <hr><b> Всего доната[<font color=lime>$total</font>] </b><hr>";
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 5){ $end = $total; }
else {$end = $start + 5; }
for ($i = $start; $i < $end; $i++){
$file = @file("local/pay.dat");
$file = array_reverse($file);
$data = explode("/",$file[$i]);
$i2=round($i+1);
$id=$total-$i-1;
$data[0]=trim($data[0]);
$data[1]=trim($data[1]);
$data[2]=trim($data[2]);
$data[3]=trim($data[3]);
echo"<font color=#FFDEAD>Дата</font> $data[0]<br/><font color=#FFE4E1>Ник:</font> $data[1]<br/><font color=red>Количество coin of luck: $data[2]</font><hr/>";
}
if($total=="0"){echo"Доната нет.";}
}else{echo"Доната нет.";}
if ($start != 0) {echo '<a href="donatesms.php?start='.($start - 5).'&'.$sd.'&go=list&num='.$num.'">Назад</a> ';}
if ($total > $start + 5) {echo ' <a href="donatesms.php?start='.($start + 5).'&'.$sd.'&go=list&num='.$num.'">Далее</a>';}
}}
include_once"files/down.php";
?>