вот этот код
if($result['ban'] == 0) {
if (mysql_num_rows($contacts) == 0)
echo '<div><img src="../images/users.png" width="16" height="16"/> <a href="../mail/index.php?id=' . $user['id'] . '">' . $lng_profile['add_contacts'] . '</a></div>';
else
echo '<div><img src="../images/users.png" width="16" height="16"/> <a href="../mail/index.php?act=deluser&id=' . $user['id'] . '">' . $lng_profile['delete_contacts'] . '</a></div>';
}
if ($result['ban'] == 0 && $user['rights'] == 0 && $user['rights'] < $rights)
echo '<div><img src="../images/del.png" width="16" height="16"/> <a href="../mail/index.php?act=ignor&id=' . $user['id'] . '&add">' . $lng_profile['add_ignor'] . '</a></div>';
else
echo '<div><img src="../images/del.png" width="16" height="16"/> <a href="../mail/index.php?act=ignor&id=' . $user['id'] . '&del">' . $lng_profile['delete_ignor'] . '</a></div>';
if($result['ban'] == 0 && empty($ban['1']) && empty($ban['3']))
echo '<div><img src="../images/write.gif" width="16" height="16"/> <a href="../mail/index.php?act=write&id=' . $user['id'] . '">' . $lng['write'] . '</a></div>';
}