View file banners.ru/www/forum/temp.php

File size: 2.18Kb
<?
header("Content-Type: text/vnd.wap.wml");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">';
if(isset($HTTP_COOKIE_VARS['username']))
{
$name1=$HTTP_COOKIE_VARS['username'];
}
else
{
$name1="Guest";
}
$conn=mysql_connect("localhost", "wapdriv8_blindaz", "ekkleziast");
mysql_select_db("wapdriv8_blindazh", $conn);
$sql22="select * from topic";
$res22=mysql_query($sql22);
$n22=0;
while ($row22=mysql_fetch_object($res22))
{
$n22=$n22+1;
}
echo '<wml>';
echo '<head>';
echo '<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>';
echo '</head>';
?>
<card id="who" title="Форум (<?=$n22?>)">
<?
echo '<p>';
echo '<br/>';
$n1=0;
$sql1="select name from topic where room='1'";
$result1=mysql_query($sql1);
while ($row1=mysql_fetch_object($result1))
    {
    $n1=$n1+1;
    }
echo '<a href="main.php?room=1">WAP (';
?><?=$n1?><? echo ')</a><br/>';
echo '<br/>';
echo '-----------<br/>';
$n2=0;
$sql2="select name from topic where room='2'";
$result2=mysql_query($sql2);
while ($row2=mysql_fetch_object($result2))
    {

    $n2=$n2+1;

    }
echo '<a href="main.php?room=2">Чат (';
?><?=$n2?><? echo ')</a><br/>';
echo '<br/>';
echo '-----------<br/>';
$n3=0;
$sql3="select name from topic where room='3'";
$result3=mysql_query($sql3);
while ($row3=mysql_fetch_object($result3))
    {


    $n3=$n3+1;

    }
echo '<a href="main.php?room=3">Музыка, кино (';
?><?=$n3?><? echo ')</a><br/>';
echo '<br/>';
echo '-----------<br/>';
$n4=0;
$sql4="select name from topic where room='4'";
$result4=mysql_query($sql4);
while ($row4=mysql_fetch_object($result4))
    {

    $n4=$n4+1;

    }
echo '<a href="main.php?room=4">Флеймить тут (';
?><?=$n4?><? echo ')</a><br/>';

$sql="select name from who where room='4' order by userid";
$result=mysql_query($sql);
echo '<br/>';
echo '-----------<br/>';
$n6=0;
$sql6="select name from topic where room='6'";
$result6=mysql_query($sql6);
while ($row6=mysql_fetch_object($result6))
    {


    $n6=$n6+1;

    }
echo '<a href="main.php?room=6">Вопросы администратору (';
?><?=$n6?><? echo ')</a><br/>';
echo '<br/>';
echo '-----------<br/>';
}
}
mysql_close($conn);
?>
</p>
</card>
</wml>