View file birref.php

File size: 1.79Kb
<?
session_start();
$title="Биржа\n";
include ("header.php");
include ("func/aut.php");
if ($_SESSION['wap']=="xml")print '<div class="contur"><div class="header">';
echo "<b>Биржа рефералов</b><br/>";
if ($_SESSION['wap']=="xml")print '</div></div>';
if ($_SESSION['wap']=="xml")print '<div class="contur"><div class="header">';
echo "+ ";echo "<a href=\"prodref.php?".session_name()."=".session_id()."\">Продать реферала</a><br/>";
echo "+ ";echo "<a href=\"birh.php?".session_name()."=".session_id()."\">История операций</a><br/>";
if ($_SESSION['wap']=="xml")print '</div></div>';
$n=$autorize['id'];
if(empty($startan)) $startan = 0;
$startan=intval($startan);
if($startan<0) $startan=0; $num_msgs_an=3000;
$qi = mysql_query("select * from `uzvers` order by `cena` limit $startan,$num_msgs_an;;");
if (mysql_affected_rows()==0)
{
echo "Нет сайтов!";
}
else
{
while($row=mysql_fetch_array($qi))
{
$x=$row['prod'];
if ($x==1)
{
$r1=$row['id']; $r2=$row['cena']; $r3=$row['partid'];
echo "ID: $r1 Цена: $r2<br/>";
$s=$row['allmonth']+$row['opl'];
echo "Общий заработок: $s<br/>";
echo "Продавец: id $r3<br/>";
echo "<a href=\"kupref.php?r1=$r1&amp;r2=$r2&amp;r3=$r3&amp;".session_name()."=".session_id()."\">Купить</a><br/>";
if ($r3==$n)
{
echo "<a href=\"otmena.php?r1=$r1&amp;".session_name()."=".session_id()."\">Отменить продажу</a><br/>";
}
if ($_SESSION['wap']=="xml")echo "<hr/>";
else echo "<br/>";
}
}
}

if ($autorize) {echo "<img src=\"pics/st.gif\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><br/>";}
else {echo "<img src=\"pics/st.gif\" alt=\"*\"/>";echo "<a href=\"index.php?".session_name()."=".session_id()."\">Назад</a><br/>";}
include ("footer.php");
?>