File size: 1.22Kb
<?
require("functionChat.ssp");
require("headerwml.ssp");
$r = GetRandom();
echo "<card id=\"$MagForum\" title=\"".win2utf($forum[$lev1][0])."\">";
echo "<p align=\"center\">";
openDB();
for ($i=1; $i<count($forum[$lev1]); $i++)
{
$s = GetThemeID($lev1,$i);
if (isadmin($login)) $CountAdvs_ = CountRec("select count(*) from forum where tonick = '$s'");
$CountAdvs = CountRec("select count(*) from forum where tonick = '$s' and messtype='$ThemeType'");
if ($forum[$lev1][$i] != "")
{
if (isadmin($login)) echo "<a href=\"dispT.php?p=$r&login=$login&pass=$pass&lev1=$lev1&lev2=$i&page=1\">".win2utf($forum[$lev1][$i])." ($CountAdvs/$CountAdvs_)</a><br/>\n";
else echo "<a href=\"dispT.php?p=$r&login=$login&pass=$pass&lev1=$lev1&lev2=$i&page=1\">".win2utf($forum[$lev1][$i])." ($CountAdvs)</a><br/>\n";
}
}
mysql_close();
echo "</p><p>";
echo "<a href=\"forums.php?login=$login&pass=$pass\">- ".utf(18)."</a><br/>\n";
echo "<a href=\"moders.php?login=$login&pass=$pass&lev1=$lev1\">- ".utf(66)."</a><br/>\n";
echo "</p>"
?>
<p align="center"><small><a href="/index.php">© ComputerMag </a>2003<br/>
</small>
</p>
</card>
</wml>