View file index.php

File size: 692B
<?php
include 'inc/db.php';
include 'inc/1.php';
//echo rekl(1);
if ($web==0){
include 'inc/menu.php';
}
else
{
echo "<div class='msg'><center><font color='red' size='+1'>Добро пожаловать!";
echo "</font></center></div>";
div("p1");
$q=mysql_query("SELECT `id`, `name`, `user`, `time` FROM `forum` ORDER BY `time` DESC LIMIT 8");
$b=0;
while ($f=mysql_fetch_assoc($q)){
$ank=gus($f['user']);
echo im($ank['id'])." <a href='ank.php?id=$ank[id]'>$ank[name]</a> ".on($ank['id'])."<br><a href='theme.php?id=$f[id]'><b>".out($f['name'])."</b></a> [".vremja($f['time'])."]";
$b++;
if (($b<8) && ($f['name']))echo "<hr>";
}
nodiv();
}
include 'inc/foot.php';
?>