Kip-OK,
if ($postres['sex'])
echo '<img src="../theme/' . $set_user['skin'] . '/images/' . ($postres['sex'] == 'm' ? 'm' : 'f') . ($postres['lastdate'] > $realtime - 300 ? '_off' : 'on') . ($postres['datereg'] > $realtime - 86400 ? '_new.gif" width="14"' : '.gif" width="10"') . ' height="10"/> ';Пробуй, картинки должны называтся m_on.gif, m_on_new.gif и тд.