Example #1
0
     }
     $tpl->set('{user-id}', $row['friend_id']);
     $tpl->set('{name}', $row['user_search_pref']);
     if ($row['user_photo']) {
         $tpl->set('{ava}', $config['home_url'] . 'uploads/users/' . $row['friend_id'] . '/100_' . $row['user_photo']);
     } else {
         $tpl->set('{ava}', '{theme}/images/100_no_ava.png');
     }
     if ($row['user_last_visit'] >= $online_time) {
         $tpl->set('{online}', $lang['online']);
     } else {
         $tpl->set('{online}', '');
     }
     //Возраст юзера
     $user_birthday = explode('-', $row['user_birthday']);
     $tpl->set('{age}', user_age($user_birthday[0], $user_birthday[1], $user_birthday[2]));
     if ($get_user_id == $user_info['user_id']) {
         $tpl->set('[owner]', '');
         $tpl->set('[/owner]', '');
     } else {
         $tpl->set_block("'\\[owner\\](.*?)\\[/owner\\]'si", "");
     }
     if ($row['friend_id'] == $user_info['user_id']) {
         $tpl->set_block("'\\[viewer\\](.*?)\\[/viewer\\]'si", "");
     } else {
         $tpl->set('[viewer]', '');
         $tpl->set('[/viewer]', '');
     }
     $tpl->compile('content');
 }
 navigation($gcount, $friends_sql['user_friends_num'], $config['home_url'] . 'friends/' . $get_user_id . '/page/');
                            }
                            //Страна город
                            $expCountry = explode('|', $row['user_country_city_name']);
                            if ($expCountry[0]) {
                                $countr = $expCountry[0];
                            } else {
                                $countr = '';
                            }
                            if ($expCountry[1]) {
                                $city = ', ' . $expCountry[1];
                            } else {
                                $city = '';
                            }
                            //Возраст юзера
                            $user_birthday = explode('-', $row['user_birthday']);
                            $age = user_age($user_birthday[0], $user_birthday[1], $user_birthday[2]);
                            $img_width = '';
                            $row['user_id'] = 'u' . $row['user_id'];
                        }
                    }
                    echo <<<HTML
<a href="/{$row['user_id']}" onClick="Page.Go(this.href); return false;" onMouseOver="FSE.ClrHovered(this.id)" id="all_fast_res_clr{$i}"><img src="{$ava}" width="{$img_width}" id="fast_img" /><div id="fast_name">{$row['user_search_pref']}</div><div><span>{$countr}{$city}</span></div><span>{$age}</span><div class="clear"></div></a> 
HTML;
                }
            }
        }
    }
} else {
    echo 'no_log';
}
die;