Просмотр поста

.
L!MP
<?php 

if ($user_id) { 
    $onltime = $realtime - 300; 
    $q = @ mysql_query("select * from `users` where `lastdate` >= '" . intval($onltime). "' and `sex` = '" . ($datauser[ 'sex' ] == 'm' ? 'zh' : 'm') . "' ORDER BY RAND() LIMIT 1;"); 
    $arr = mysql_fetch_array($q); 

    //echo '<a href="../files/photo/'. $arr['id']. '.jpg"><img src="../files/photo/'. $arr['id']. '_small.jpg" alt="'. $arr['name']. '" border="0" /></a>'; 
    if (file_exists(('../files/avatar/' . $res['user_id'] . '.png')))
        echo '<div class="rmenu"><img src="../files/avatar/'  .  $arr [ 'id' ].  '.png" width="32 " height="32" alt="'  .  $arr [ 'name' ].  '" /><br />' ; 
    else
        echo '<div class="rmenu"><img src="../images/empty.png" width="32" height="32" alt="' . $res['from'] . '" />&nbsp;';

    echo  '<a href="../str/anketa.php?id='  .  $arr [ 'id' ].  '">flirt</a> <b>'  .  $arr [ 'name' ].  ' </b> wants to find <b>'  .  $arr [ 'sex1' ].  '</b> looking for '  .  $arr [ 'relation' ].  '</div>' ; 
}

?>