View file index.php

File size: 4.63Kb
<?
session_start();
$title="Заработок для всех!";
include ("header.php");
$_SESSION['pid']=$_GET['pid'];
$_SESSION['script']=true;
if ($mod="exit") { unset($_SESSION['login']); unset($_SESSION['pass']); }

          if ($_SESSION['wap']=="xml")
           {
           print '<div class="contur_rek"><div class="header_rek"><center>';
           print '<img src="banner.gif" alt="wmTRAF.cn"><br/>';
			print '</center></div></div>';
			print '<div class="contur"><div class="header"><div class="count">';
print "<a href=\"http://rubibablo.biz/advpage.php?sub=261\">50 рублей на мобилу!</a><br/>";
print "<a href=\"http://partners.vipwap.mobi/advpage.php?sub=289\">Дополнительный заработок!</a><br/>";
        print "<form action=\"login.php?mod=enter&amp;".session_name()."=".session_id()."\" method=\"post\">";
           print $div["div"];

           print "Логин: <br>";
           print "<input name=\"login\" maxlength=\"12\" title=\"Text\"><br>";

           print "Пароль: <br>";
           print "<input name=\"pass\" maxlength=\"20\" type=\"password\"><br>";
           print "<input class=\"ibutton\" type=\"submit\" value=\"Войти\">";
           print $div["end"];
           print "</form>";
           print '</div></div></div>';
           }
           else
           {

           print "Логин: <br/>";
           print "</small><input name=\"login\" maxlength=\"12\" title=\"Text\"/><br/><small>";

           print "Пароль: <br/>";
           print "</small><input name=\"pass\" maxlength=\"20\" type=\"password\"/><br/><small>";
           print "<anchor title=\"send\">Войти<go href=\"login.php?wap=wml&amp;mod=enter&amp;".session_name()."=".session_id()."\" method=\"post\">";
           print "<postfield name=\"login\" value=\"$(login)\"/>";
           print "<postfield name=\"pass\" value=\"$(pass)\"/>";
           print "</go></anchor><br/>";
           }
if ($_SESSION['wap']=="xml")print '<div class="contur"><div class="header">';
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"reg.php?".session_name()."=".session_id()."\">Регистрация</a><br />";
$qi = mysql_query("select * from `news` order by id desc limit 1;");
$row=mysql_fetch_array($qi);
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"traf_gl.php?".session_name()."=".session_id()."\">Продаем трафик</a><br/>";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"mob_pay.php?".session_name()."=".session_id()."\">Выплаты на мобильный</a>
<br />";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"news.php?".session_name()."=".session_id()."\">Новости</a>[".$row['date']."]<br />";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"cost.php?".session_name()."=".session_id()."\">Расценки</a><br />";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"help.php?".session_name()."=".session_id()."\">Правила</a><br />";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"vyplata.php\">О выплатах</a><br/>";
echo "<img src=\"pics/bonys.png\" alt=\"*\"/>";print "<a href=\"rek.php\">Рекламодателям!</a><br/>";
print "<b>Статистика:</b><br/>";
$q = mysql_query("select * from uzvers;");

$reg=mysql_num_rows($q);
print "Активных: <b>$reg</b>";
$q = mysql_query("select * from uzvers where `allmonth`>'0';");
$reg=mysql_num_rows($q);
           while ($field=mysql_fetch_array($q))
           {
           $w=$field['allmonth'];
           $all=$all+$w;
           }

print "<br/>На счетах: <b>$all</b> у.е. ";
$q = mysql_query("select * from uzvers where `opl`>'0';");
$reg=mysql_num_rows($q);
           while ($field=mysql_fetch_array($q))
           {
           $w=$field['opl'];
           $all1=$all1+$w;
           }
print "<br/>Bыплачено: <b>$all1</b> у.е.";
if ($_SESSION['wap']=="xml")print '</div></div>';
if ($_SESSION['wap']=="xml")print '<div class="contur"><div class="header"><div class="count">';
echo "<b>Рекомендуем:</b><br/>";
print "<a href=\"http://download.jep.ru/4860/11/help\">Заработай на смс!Без обмана!</a><br/>";
print "<a href=\"http://rubibablo.biz/?uid=261\">Руби бабло здесь (2 рубля за клик)!</a><br/>";
if ($_SESSION['wap']=="xml")print '</div></div></div>';
if ($_SESSION['wap']=="xml")print '<div class="contur_rek"><div class="header_rek"><center>';
echo '<img src="http://status.icq.com/online.gif?icq=413754228&amp;img=5" alt="*"/>';echo '<b>413754228</b><br/>';
if ($_SESSION['wap']=="xml")print '</center></div></div>';
include ("footergl.php");
?>