View file installtop.php

File size: 801B
<?
session_start();
$title="Установка\n";
include ("header.php");
echo $div["header"];
echo "<b>Установка</b>";
echo $div["end"];
echo $div["ten"];
$qi = mysql_query("select * from `uzvers`");
while($row=mysql_fetch_array($qi))
{
if (empty($row['col'])) 
{$row['col']='0';}
$n=$row['id'];
$qs = mysql_query("select * from `uzvers` where `allmonth`>0");
while($ros=mysql_fetch_array($qs))
{
$r=$ros['partid'];
if ($r==$n) 
{
@mysql_query("UPDATE `uzvers` SET `col`=`col`+'1' where `id`='$n'");
}
}
}
@mysql_query("UPDATE `uzvers` SET `col`='19' where `id`='47'");
@mysql_query("UPDATE `uzvers` SET `col`='17' where `id`='13'");

echo "Рейтинг рефералов успешно установлен";
echo $div["end"];
include ("footer.php");
?>