Арессс,
if($msg[\'login\'] == $log or $udata[\'clan_prava\'] > 1){
if($msg[\'time\']+900 > time() or $udata[\'clan_prava\'] > 1){
echo \' <a href=\"posting.php?act=msg_edit&id=\'.$msg[\'id\'].\'\">ред</a> | \';
}
}
if($udata[\'clan_prava\'] > 1){ echo \'<a href=\"posting.php?act=msg_del&id=\'.$msg[\'id\'].\'\">X</a>\';}
echo \'<br/>\'.smiles(addslashes(AddBB(s(htmlspecialchars($msg[\'text\']))))).\'</div>\';
}
}
$count = mysql_result(mysql_query(\"SELECT COUNT(*) FROM `forum_msg_clan` WHERE `id_topic` = \'$id\' and `clan` = \'$udata[clan]\'\"
, 0);
if($udata[\'clan_prava\'] > 1){
if($topic[\'closed\'] == 0){
echo \'<div class=\"m_bg\"><a href=\"posting.php?act=topic_close&id=\'.$id.\'\">Закр</a>|\';
}
}
if($udata[\'clan_prava\'] > 1){
if($topic[\'closed\'] == 1){
echo \'<div class=\"m_bg\"><a href=\"posting.php?act=topic_open&id=\'.$id.\'\">Откр</a>|\';
}
}
if($udata[\'clan_prava\'] > 1){
if($topic[\'closed\'] == 0 or $udata[\'prava\'] > 1){
echo \'<a href=\"posting.php?act=topic_edit&id=\'.$id.\'\">Ред</a>\';
}
}
if($udata[\'clan_prava\'] > 1){
echo \'|<a href=\"posting.php?act=topic_del&id=\'.$id.\'\">Удал</a>\';
}
if($udata[\'clan_prava\'] > 1){
echo\'</div>\';
}