Не выводится виджет на главную, где я накосорезил? Заранее спасибо!
[code] <?
include_
once'sys/
inc/
start.php';
include_
once'sys/
inc/
compress.php';
include_
once'sys/
inc/
sess.php';
include_
once'sys/
inc/
home.php';
include_
once'sys/
inc/
settings.php';
include_
once'sys/
inc/db_
connect.php';
include_
once'sys/
inc/
ipua.php';
include_
once'sys/
inc/fnc.php';
include_
once'sys/
inc/
user.php';
include_
once'sys/
inc/
icons.php';//Иконки главного меню
include_
once'sys/
inc/
thead.php';
title();
err();
$qqqq=mysql_
fetch_array
(mysql_query
("SELECT*FROM`truncate`"
);
if(isset($
user)&&$qqqq
['time']
<=time()){
if(isset($
user)&&$qqqq
['mail']==1)
mysql_query
("TRUNCATETABLE`mail`"
;
i
f(isset($
user)&&$qqqq
['jurnal']
==1)
mysql_query
("TRUNCATETABLE`jurnal`"
;
i
f(isset($
user)&&$qqqq
['lenta']==1)
mysql_query
("TRUNCATETABLE`lenta`"
;
$timer=$time
+=$qqqq[time_
dat]
*60*60*24*7;
mysql_query
("UPDATE`truncate`SET`time`='$
timer' LIMIT1"
;
}
include'sys/
inc/
inc.ruler.php';
if(!$set
['web'])
{
?>
<divclass="title">
<center>
<ahref="/
online.php"title="онлайн"style="color:#
cdcecf;text-
decoration:none">
<fontcolor="#
fee300"size="2">Онлайн </
font>
<
fontcolor="#
ffffff"><?
=mysql_result
(mysql_query
("SELECTCOUNT
(*)
FROM`user`WHERE`date_
last`>".
(time()-600)
.""
,0)?></
font>
<
/a>
<fontcolor="#
fee300"size="2">
(</font>
<fontcolor="#
ffffff">+<?
=mysql_result
(mysql_query
("SELECTCOUNT
(*)
FROM`guests`WHERE`date_
last`>".
(time()-600)
."AND`pereh`>'0'"
,0)?></font>
<fontcolor="#
fee300"size="2">гостей )
</font>
</center>
</div>
<divclass='main_
menu'>
<?
if(isset
($user))
{
?>
<imgsrc="/
style/icons/
icon_
stranica.gif"alt="DS"/
>
<?
=user::nick($
user['id'])?
>|
<ahref="exit.php"><fontcolor="#
ff0000">Выход</
font></a>
<?
}
else
{
?>
<ahref="/
aut.php">Вход</
a>|
<ahref="/
reg.php">Регистрация</
a>
<?
}
?></
div><?
//новости
include_
once'sys/
inc/news_
main.php';
//Дни рождения на главной
$ank=mysql_
fetch_assoc
(mysql_query
("SELECT*FROM`user`WHERE`ank_
d_
r`='".date
('d')
."'AND`ank_
m_
r`='".date
('m')
."'AND`date_
last`>'".
(time()
-86400)
."'ORDERbyrand
()"
);
if($ank
['id'])
{
echo'<tablecellspasing="0"cellpadding="0"style="width:
100%">';
echo'<tr>';
echo'<tdstyle="vertical-
align:top;">';
echogroup($
ank['id']);
echouser::nick
($ank['id']);
echomedal($
ank['id']);
echoonline($
ank['id'])
. '<br/>';
echo'<imgsrc="/
user/
holidays/img/
bd.png"/
>День рождения';
echo'</td>';
echo'<tdstyle="width:50px;vertical-
align:top;text-
align:center;float:right;">'; echo'<fontstyle="color:red;font-
size:x-
small;">сегодня</
font>';
echo'<br/
><ahref="/
user/gift/
categories.php?
id=' .$ank
['id']
. '"><imgsrc="/
user/
holidays/img/
gift.png"/
></a>';
echo'</td>';
echo'</tr>';
echo'</
table>';
}
$
s
exwars=mysql_
fetch_assoc
(mysql_query
("SELECT*FROM`sexwars`WHERE`active`='1'LIMIT1"
);
if(isset($
sexwars['id']
))
{
?>
<divclass="mess"style="background-
color:#
ffedc8;">
<imgsrc="/
plugins/
sexwar/
images/mf-
icon.png"/
><ahref="/
plugins/
sexwar/
wars.php?
id=<?=$
sexwars['id']
?
>">Война Полов</
a>
<tablestyle="width:100%
;">
<tr>
<tdstyle="width:50px;">
<ahref="/
plugins/
sexwar/"><imgsrc="/
plugins/
sexwar/
images/
icon.png"/
></a>
</td>
<tdstyle="padding:2px;">
<divstyle="padding:2px;">
Девушки <?
=(100-$
sexwars
['male'])?>%
</
div>
<divstyle="position:relative;width:100%
;height:4px;">
<divstyle="position:absolute;width:<?
=(100-$
sexwars
['male'])?>%
;height:4px;background-
color:#
96ed94;"></
div>
</
div>
<divstyle="padding:2px;">
Парни <?
=(100-$
sexwars
['female'])?>
%
</
div>
<divstyle="position:relative;width:100%
;height:4px;">
<divstyle="position:absolute;width:<?
=(100-$
sexwars
['female'])?>
%
;height:4px;background-
color:#
96ed94;"></
div>
</
div>
</td>
</tr>
</table>
</div>
<?
}
//главное меню
include_
once'sys/
inc/main_
menu.php';
include_
once'sys/
inc/forum_
nw.php';
}
else
{
//главная webтемы
include_
once'style/
themes/' .$
set['set_
them']. '/
index.php';
}
include_
once'sys/
inc/
tfoot.php';
?> [/code] (echo $a