本文整理汇总了PHP中user_get_avatar函数的典型用法代码示例。如果您正苦于以下问题:PHP user_get_avatar函数的具体用法?PHP user_get_avatar怎么用?PHP user_get_avatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了user_get_avatar函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: cms_block_user_block
function cms_block_user_block()
{
global $db, $cache, $config, $template, $user, $lang;
/*
if($user->data['session_logged_in'])
{
$sql = "SELECT COUNT(post_id) as total
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $user->data['user_lastvisit'] . " AND poster_id <> " . $user->data['user_id'] . " AND post_time < " . time();
$db->sql_return_on_error(true);
$result = $db->sql_query($sql);
$db->sql_return_on_error(false);
if($result)
{
$row = $db->sql_fetchrow($result);
$lang['Search_new'] = $lang['Search_new'] . " (" . $row['total'] . ")";
$db->sql_freeresult($result);
}
}
*/
// Check For Anonymous User
if ($user->data['user_id'] != ANONYMOUS) {
$name_link = colorize_username($user->data['user_id'], $user->data['username'], $user->data['user_color'], $user->data['user_active']);
$avatar_img = user_get_avatar($user->data['user_id'], $user->data['user_level'], $user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_allowavatar']);
} else {
$name_link = $lang['Guest'];
$avatar_img = '<img src="' . $config['default_avatar_guests_url'] . '" alt="" />';
}
$s_last_visit = create_date($config['default_dateformat'], $user->data['user_lastvisit'], $config['board_timezone']);
$template->assign_vars(array('U_PORTAL_NOSID' => CMS_PAGE_HOME, 'AVATAR_IMG' => $avatar_img, 'U_NAME_LINK' => $name_link, 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'L_REMEMBER_ME' => $lang['Remember_me'], 'L_SEND_PASSWORD' => $lang['Forgotten_password'], 'U_SEND_PASSWORD' => append_sid(CMS_PAGE_PROFILE . '?mode=sendpassword'), 'L_REGISTER_NEW_ACCOUNT' => sprintf($lang['Register_new_account'], '<a href="' . append_sid(CMS_PAGE_PROFILE . '?mode=register') . '">', '</a>'), 'L_NEW_SEARCH' => $lang['Search_new']));
}
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:31,代码来源:user_block.php
示例2: html_start
/**
* Returns html string representing the beginning block of a timeline entry
* @return string
*/
public function html_start()
{
$t_avatar = user_get_avatar($this->user_id, 32);
# Avatar div
if (!empty($t_avatar)) {
$t_class = 'avatar';
$t_src = $t_avatar[0];
} else {
$t_class = 'no-avatar';
$t_src = 'images/notice.gif';
}
return sprintf('<div class="entry"><div class="%s"><img class="%s" src="%s" /></div><div class="timestamp">%s</div>', $t_class, $t_class, $t_src, $this->format_timestamp($this->timestamp));
}
开发者ID:gtn,项目名称:mantisbt,代码行数:17,代码来源:TimelineEvent.class.php
示例3: cms_block_top_posters
function cms_block_top_posters()
{
global $db, $cache, $config, $template, $lang, $block_id, $cms_config_vars;
include_once IP_ROOT_PATH . 'includes/functions_users.' . PHP_EXT;
$top_posters_n = intval($cms_config_vars['md_total_poster'][$block_id]) ? $cms_config_vars['md_total_poster'][$block_id] : 10;
$show_admins = true;
$show_mods = true;
$top_posters_array = top_posters($top_posters_n, $show_admins, $show_mods, true);
$show_avatars = $cms_config_vars['md_show_avatars'][$block_id] == true ? true : false;
$template->assign_var('S_SHOW_AVATARS', $show_avatars);
for ($i = 0; $i < sizeof($top_posters_array); $i++) {
$username2 = $top_posters_array[$i]['username'];
$username = colorize_username($top_posters_array[$i]['user_id'], $top_posters_array[$i]['username'], $top_posters_array[$i]['user_color'], $top_posters_array[$i]['user_active']);
$user_id = $top_posters_array[$i]['user_id'];
$posts = $top_posters_array[$i]['user_posts'] ? $top_posters_array[$i]['user_posts'] : 0;
$poster_avatar = user_get_avatar($top_posters_array[$i]['user_id'], $top_posters_array[$i]['user_level'], $top_posters_array[$i]['user_avatar'], $top_posters_array[$i]['user_avatar_type'], $top_posters_array[$i]['user_allowavatar']);
$template->assign_block_vars('topposter', array('USERNAME' => $username, 'POSTS' => $posts, 'AVATAR_IMG' => $poster_avatar, 'U_VIEWPOSTER' => append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id), 'U_VIEWPOSTS' => append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode(ip_utf8_decode($username2)) . '&showresults=posts')));
}
}
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:19,代码来源:top_posters.php
示例4: append_sid
//
$template->assign_vars(array('L_TITLE' => $lang['Userlist'], 'L_DESCRIPTION' => $lang['Userlist_description'], 'L_OPEN_CLOSE' => $lang['Open_close'], 'L_ACTIVE' => $lang['Active'], 'L_USERNAME' => $lang['Username'], 'L_GROUP' => $lang['Group'], 'L_RANK' => $lang['Rank'], 'L_POSTS' => $lang['Posts'], 'L_FIND_ALL_POSTS' => $lang['Find_all_posts'], 'L_JOINED' => $lang['Joined'], 'L_ACTIVTY' => $lang['Last_activity'], 'L_MANAGE' => $lang['User_manage'], 'L_PERMISSIONS' => $lang['Permissions'], 'L_EMAIL' => $lang['Email'], 'L_PM' => $lang['Private_Message'], 'L_WEBSITE' => $lang['Website'], 'L_BIRTHDAY' => $lang['Birthday'], 'L_LANG' => $lang['Board_lang'], 'L_STYLE' => $lang['Board_style'], 'S_USER_VARIABLE' => POST_USERS_URL, 'S_ACTION' => append_sid(IP_ROOT_PATH . ADM . '/admin_userlist.' . PHP_EXT), 'L_GO' => $lang['Go'], 'L_SELECT' => $lang['Select_one'], 'L_DELETE' => $lang['Delete'], 'L_BAN' => $lang['Ban'], 'L_ACTIVATE_DEACTIVATE' => $lang['Activate_deactivate'], 'L_ADD_GROUP' => $lang['Add_group'], 'S_SHOW' => $show, 'L_SORT_BY' => $lang['Sort_by'], 'L_USER_ID' => $lang['User_id'], 'L_USER_LEVEL' => $lang['User_level'], 'L_ASCENDING' => $lang['Ascending'], 'L_DESCENDING' => $lang['Descending'], 'L_SHOW' => $lang['Show'], 'S_SORT' => $lang['Sort'], 'S_SELECT_SORT' => $select_sort, 'S_SELECT_SORT_ORDER' => $select_sort_order, 'S_HIDDEN_FIELDS' => $hidden_fields));
$order_by = "ORDER BY {$sort_method} {$sort_order} ";
$sql = "SELECT *\n\t\t\tFROM " . USERS_TABLE . "\n\t\t\tWHERE user_id <> " . ANONYMOUS . "\n\t\t\t\t{$alpha_where}\n\t\t\t{$order_by}\n\t\t\tLIMIT {$start}, {$show}";
$result = $db->sql_query($sql);
// Query Ranks
$rank_sql = "SELECT * FROM " . RANKS_TABLE . " ORDER BY rank_special ASC, rank_min ASC";
$rank_result = $db->sql_query($rank_sql);
while ($rank_row = $db->sql_fetchrow($rank_result)) {
$ranksrow[] = $rank_row;
}
$db->sql_freeresult($rank_result);
// loop through users
$i = 1;
while ($row = $db->sql_fetchrow($result)) {
$avatar_img = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar'], '../');
$poster_rank = '';
$rank_image = '';
if ($row['user_rank']) {
for ($ji = 0; $ji < sizeof($ranksrow); $ji++) {
if ($row['user_rank'] == $ranksrow[$ji]['rank_id'] && $ranksrow[$ji]['rank_special']) {
$poster_rank = $ranksrow[$ji]['rank_title'];
$rank_image = $ranksrow[$ji]['rank_image'] ? '<img src="' . IP_ROOT_PATH . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" /><br />' : '';
}
}
} else {
for ($ji = 0; $ji < sizeof($ranksrow); $ji++) {
if ($row['user_posts'] >= $ranksrow[$ji]['rank_min'] && !$ranksrow[$ji]['rank_special']) {
$poster_rank = $ranksrow[$ji]['rank_title'];
$rank_image = $ranksrow[$ji]['rank_image'] ? '<img src="' . IP_ROOT_PATH . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" /><br />' : '';
}
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:31,代码来源:admin_userlist.php
示例5: print_avatar
function print_avatar($p_user_id, $p_size = 80, $t_class = "avatar")
{
$t_avatar_exist = false;
if (OFF === config_get('show_avatar')) {
return;
}
if (!user_exists($p_user_id)) {
return;
}
if (access_has_project_level(config_get('show_avatar_threshold'), null, $p_user_id)) {
$t_use_gravatar = config_get('use_gravatar', false, $p_user_id, ALL_PROJECTS);
if ($t_use_gravatar) {
$t_avatar = user_get_avatar($p_user_id, $p_size);
if (false !== $t_avatar) {
$t_avatar_url = $t_avatar[0];
$t_width = $t_avatar[1];
$t_height = $t_avatar[2];
echo '<a rel="nofollow" href="http://site.gravatar.com">' . '<img class="avatar" src="' . $t_avatar_url . '" alt="User avatar"' . ' width="' . $t_width . '" height="' . $t_height . '" /></a>';
}
} else {
$t_avatar = user_get_local_avatar($p_user_id);
$t_avatar_url = htmlspecialchars($t_avatar[0]);
$t_width = $t_avatar[1];
$t_height = $t_avatar[2];
$t_avatar_exist = $t_avatar[3];
if ($t_avatar_exist) {
echo '<img class="' . $t_class . '" src="' . $t_avatar_url . '" alt=""' . ' width="' . $t_width . '" height="' . $t_height . '" />';
}
}
}
return $t_avatar_exist;
}
开发者ID:khinT,项目名称:mantisbt-master,代码行数:32,代码来源:print_api.php
示例6: get_user_sn_im_array
$avatar_text = !empty($avatar_text) ? $avatar_text : $username;
$template_to_parse = 'profile_avatar_generator.tpl';
// Replaced: $aim, $facebook, $flickr, $googleplus, $icq, $jabber, $linkedin, $msn, $skype, $twitter, $yim, $youtube,
$user_sn_im_array = get_user_sn_im_array();
foreach ($user_sn_im_array as $k => $v) {
$this_user_im[$v['form']] = ${$v}['form'];
}
display_avatar_generator($mode, $avatar_filename, $avatar_image, $avatar_text, $user_id, $email, $current_email, $email_confirm, $coppa, $username, $new_password, $cur_password, $password_confirm, $this_user_im, $website, $location, $user_flag, $user_first_name, $user_last_name, $occupation, $interests, $phone, $selfdes, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $setbm, $allowhtml, $allowbbcode, $allowsmilies, $showavatars, $showsignatures, $allowswearywords, $allowmassemail, $allowpmin, $allowviewonline, $user_style, $user_lang, $user_timezone, $time_mode, $dst_time_lag, $user_dateformat, $profile_view_popup, $user->data['session_id'], $birthday, $gender, $upi2db_which_system, $upi2db_new_word, $upi2db_edit_word, $upi2db_unread_color);
} else {
if (!isset($coppa)) {
$coppa = false;
}
if (!isset($user_style)) {
$user_style = $config['default_style'];
}
$avatar_img = user_get_avatar($user->data['user_id'], $user->data['user_level'], $user_avatar, $user_avatar_type, $user->data['user_allowavatar']);
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="privacy" value="1" /><input type="hidden" name="coppa" value="' . $coppa . '" />';
$s_hidden_fields .= '<input type="hidden" name="sid" value="' . $user->data['session_id'] . '" />';
if ($mode == 'editprofile') {
$s_hidden_fields .= '<input type="hidden" name="user_id" value="' . $user->data['user_id'] . '" />';
//
// Send the users current email address. If they change it, and account activation is turned on
// the user account will be disabled and the user will have to reactivate their account.
//
$s_hidden_fields .= '<input type="hidden" name="current_email" value="' . $user->data['user_email'] . '" />';
}
if (!empty($user_avatar_local)) {
$s_hidden_fields .= '<input type="hidden" name="avatarlocal" value="' . $user_avatar_local . '" /><input type="hidden" name="avatarcatname" value="' . $user_avatar_category . '" />';
}
if (!empty($user_avatar_generator)) {
$s_hidden_fields .= '<input type="hidden" name="avatargenerator" value="' . $user_avatar_generator . '" />';
开发者ID:GabrielAnca,项目名称:icy_phoenix,代码行数:31,代码来源:usercp_register.php
示例7: process_tag
//.........这里部分代码省略.........
if ($tag === 'spoiler') {
if ($this->is_sig && !$config['allow_all_bbcode']) {
return $error;
}
if ($item['iteration'] > 1) {
return $error;
}
$spoiler_id = substr(md5($content . mt_rand()), 0, 8);
$str = '<div class="spoiler">';
$str .= '<div class="code-header" id="spoilerhdr_' . $spoiler_id . '" style="position: relative;">' . $lang['bbcb_mg_spoiler'] . ': [ <a href="#" onclick="ShowHide(\'spoiler_' . $spoiler_id . '\', \'spoiler2_' . $spoiler_id . '\', \'\'); ShowHide(\'spoilerhdr_' . $spoiler_id . '\', \'spoilerhdr2_' . $spoiler_id . '\', \'\'); return false;">' . $lang['Show'] . '</a> ]</div>';
$str .= '<div class="code-header" id="spoilerhdr2_' . $spoiler_id . '" style="position: relative; display: none;">' . $lang['bbcb_mg_spoiler'] . ': [ <a href="#" onclick="ShowHide(\'spoiler_' . $spoiler_id . '\', \'spoiler2_' . $spoiler_id . '\', \'\'); ShowHide(\'spoilerhdr_' . $spoiler_id . '\', \'spoilerhdr2_' . $spoiler_id . '\', \'\'); return false;">' . $lang['Hide'] . '</a> ]</div>';
$str .= '<div class="spoiler-content" id="spoiler2_' . $spoiler_id . '" style="position: relative; display: none;">' . $html;
return array('valid' => true, 'start' => $str, 'end' => '</div></div>');
}
// USER
// Insert the username and avatar for the selected id
if ($tag === 'user') {
if ($this->is_sig) {
return $error;
}
if (isset($item['params']['param'])) {
$bb_userid = (int) $item['params']['param'];
} else {
$bb_userid = (int) $content;
}
if ($bb_userid < 2) {
return $error;
}
$bb_user_data = get_userdata($bb_userid);
if (empty($bb_user_data)) {
return $error;
}
$bb_name_link = colorize_username($bb_user_data['user_id'], $bb_user_data['username'], $bb_user_data['user_color'], $bb_user_data['user_active']);
$bb_avatar_img = user_get_avatar($bb_user_data['user_id'], $bb_user_data['user_level'], $bb_user_data['user_avatar'], $bb_user_data['user_avatar_type'], $bb_user_data['user_allowavatar'], '', 30);
$html = $bb_avatar_img . ' ' . $bb_name_link;
return array('valid' => true, 'html' => $html);
}
// LANGVAR
// Insert the content of a lang var into post... maybe we need to filter something?
if ($tag === 'langvar') {
if (isset($item['params']['param'])) {
$langvar = $item['params']['param'];
} else {
$langvar = $content;
}
$html = isset($lang[$langvar]) ? $lang[$langvar] : '';
return array('valid' => true, 'html' => $html);
}
// LANGUAGE
// Parse the content only if in the same language of the user viewing it!!!
if ($tag === 'language') {
$language = '';
if (isset($item['params']['param'])) {
$language = $item['params']['param'];
}
$content = $config['default_lang'] != $language ? '' : $content;
// We need this trick to process BBCodes withing language BBCode
if (empty($content)) {
return array('valid' => true, 'html' => '');
} else {
return array('valid' => true, 'start' => '', 'end' => '');
}
}
// SEARCH
if ($tag === 'search') {
if (empty($content)) {
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:67,代码来源:bbcode.php
示例8: array
if (album_check_permission($auth_data, ALBUM_AUTH_UPLOAD) == true && $enable_picture_upload_switch == false || ($no_personal_gallery = false)) {
$template->assign_block_vars('enable_picture_upload_pg', array());
}
// Enable download only for own personal galleries
//if (($total_pics > 0) && ($enable_picture_download_switch == false) && ($thiscat['cat_user_id'] == $user->data['user_id']))
if ($total_pics > 0 && $enable_picture_download_switch == false) {
$template->assign_block_vars('enable_picture_download_pg', array());
}
if ($no_personal_gallery == false) {
$auth_data = album_permissions($album_user_id, $cat_id, ALBUM_AUTH_ALL, $thiscat);
$auth_list = album_build_auth_list($album_user_id, $cat_id);
//if((album_check_permission($auth_data, ALBUM_AUTH_MANAGE_PERSONAL_CATEGORIES) == true) && ($is_root_cat) && (!$has_sub_cats && !$has_parent_cats))
if (album_check_permission($auth_data, ALBUM_AUTH_MANAGE_PERSONAL_CATEGORIES) == true && ($is_root_cat && $row['count'] >= 0 || !$is_root_cat)) {
$template->assign_block_vars('manage_personal_gal_folders', array());
}
}
// ------------------------------------------------------------------------
// Check if we should show the view toggle button
// ------------------------------------------------------------------------
if ($album_config['show_all_in_personal_gallery'] == 1) {
$template->assign_block_vars('enable_view_toggle', array());
}
if ($thiscat['cat_user_id'] == $user->data['user_id']) {
$template->assign_block_vars('switch_own_gallery', array());
}
$template->assign_block_vars('personal_gallery_header', array());
// ------------------------------------------------------------------------
// Do our template info...
// ------------------------------------------------------------------------
$template->assign_vars(array('L_ALBUM' => $lang['Album'], 'U_VIEW_CAT' => append_sid(album_append_uid($album_page_url . '?cat_id=' . intval($cat_id))), 'CAT_TITLE' => $is_root_cat || $album_view_mode == ALBUM_VIEW_ALL ? htmlspecialchars(sprintf($lang['Personal_Gallery_Of_User'], $username)) : $thiscat['cat_title'], 'ALBUM_NAVIGATION_ARROW' => ALBUM_NAV_ARROW, 'NAV_CAT_DESC' => $album_nav_cat_desc, 'ALBUM_AUTHOR_AVATAR' => user_get_avatar($album_user['user_id'], $album_user['user_level'], $album_user['user_avatar'], $album_user['user_avatar_type'], $album_user['user_allowavatar']), 'L_PERSONAL_GALLERY_EXPLAIN' => $lang['Personal_Gallery_Explain'], 'L_MODERATORS' => $lang['Moderators'], 'MODERATORS' => $moderators_list, 'L_ALBUM_ALLPICS' => $lang['All_Picture_List_Of_User'], 'L_ALBUM_OTF' => $lang['Pic_Gallery'], 'L_ALBUM_HON' => $lang['Hot_Or_Not'], 'L_ALBUM_RDF' => $lang['Pic_RDF'], 'L_ALBUM_RSS' => $lang['Pic_RSS'], 'U_ALBUM_ALLPICS' => append_sid(album_append_uid('album_allpics.' . PHP_EXT)), 'U_ALBUM_OTF' => append_sid(album_append_uid('album_otf.' . PHP_EXT)), 'U_ALBUM_HON' => append_sid(album_append_uid('album_hotornot.' . PHP_EXT)), 'U_ALBUM_RDF' => append_sid(album_append_uid('album_rdf.' . PHP_EXT)), 'U_ALBUM_RSS' => append_sid(album_append_uid('album_rss.' . PHP_EXT)), 'L_UPLOAD_PIC' => $lang['Upload_Pic'], 'U_UPLOAD_PIC' => $upload_link, 'UPLOAD_PIC_IMG' => $upload_img, 'UPLOAD_LINK' => $upload_link, 'UPLOAD_FULL_LINK' => $upload_full_link, 'L_DOWNLOAD_PICS' => $lang['Download_pics'], 'L_DOWNLOAD_PAGE' => $lang['Download_page'], 'U_DOWNLOAD' => $download_link, 'DOWNLOAD_PIC_IMG' => $download_img, 'DOWNLOAD_LINK' => $download_link, 'DOWNLOAD_FULL_LINK' => $download_full_link, 'U_CREATE_PERSONAL_GALLERY' => $create_personal_cat_link, 'CREATE_CATEGORY_IMG' => $images['manage_pic'], 'U_MANAGE_PIC' => append_sid(album_append_uid('album_personal_cat_admin.' . PHP_EXT . '?cat_id=' . $cat_id)), 'MANAGE_PIC_IMG' => $images['manage_pic'], 'L_MANAGE_PIC' => $lang['manage_Pic'], 'U_TOGGLE_VIEW_ALL' => $view_mode_url, 'TOGGLE_VIEW_ALL_IMG' => $image_toggle_button, 'L_TOGGLE_VIEW_ALL' => $view_mode_text, 'L_CATEGORY' => htmlspecialchars(sprintf($lang['Personal_Gallery_Of_User'], $username)), 'L_NO_PICS' => $no_picture_message, 'L_PERSONAL_GALLERY_NOT_CREATED' => htmlspecialchars(sprintf($lang['Personal_gallery_not_created'], $username)), 'L_RECENT_PUBLIC_PICS' => htmlspecialchars(sprintf($lang['Recent_Personal_Pics'], $username)), 'S_COLS' => $album_config['cols_per_page'], 'S_COL_WIDTH' => 100 / $album_config['cols_per_page'] . '%', 'S_THUMBNAIL_SIZE' => $album_config['thumbnail_size'], 'L_VIEW' => $lang['View'], 'L_PIC_CAT' => $lang['Pic_Cat'], 'L_POSTER' => $lang['Pic_Poster'], 'L_POSTED' => $lang['Posted'], 'ALBUM_JUMPBOX' => $album_jumpbox, 'S_ALBUM_ACTION' => append_sid(album_append_uid($album_page_url . '?cat_id=' . intval($cat_id))), 'TARGET_BLANK' => $album_config['fullpic_popup'] ? 'target="_blank"' : '', 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], 'L_ORDER' => $lang['Order'], 'L_SORT' => $lang['Sort'], 'L_TIME' => $lang['Time'], 'L_PIC_ID' => $lang['Pic_ID'], 'L_PIC_TITLE' => $lang['Pic_Image'], 'SORT_TIME' => $sort_method == 'pic_time' ? 'selected="selected"' : '', 'SORT_PIC_TITLE' => $sort_method == 'pic_title' ? 'selected="selected"' : '', 'SORT_VIEW' => $sort_method == 'pic_view_count' ? 'selected="selected"' : '', 'SORT_RATING_OPTION' => $sort_rating_option, 'SORT_COMMENTS_OPTION' => $sort_comments_option, 'SORT_NEW_COMMENT_OPTION' => $sort_new_comment_option, 'SORT_USERNAME_OPTION' => $sort_username_option, 'L_ASC' => $lang['Sort_Ascending'], 'L_DESC' => $lang['Sort_Descending'], 'SORT_ASC' => $sort_order == 'ASC' ? 'selected="selected"' : '', 'SORT_DESC' => $sort_order == 'DESC' ? 'selected="selected"' : '', 'S_AUTH_LIST' => $auth_list));
开发者ID:GabrielAnca,项目名称:icy_phoenix,代码行数:30,代码来源:album_personal.php
示例9: generate_ranks
$k = 0;
$row_class = (!($k % 2)) ? $theme['td_class1'] : $theme['td_class2'];
$user_id = $staff['user_id'];
// Mighty Gorgon - Multiple Ranks - BEGIN
$user_ranks = generate_ranks($staff, $ranks_array);
if (($user_ranks['rank_01_html'] == '') && ($user_ranks['rank_01_img_html'] == '') && ($user_ranks['rank_02_html'] == '') && ($user_ranks['rank_02_img_html'] == '') && ($user_ranks['rank_03_html'] == '') && ($user_ranks['rank_03_img_html'] == '') && ($user_ranks['rank_04_html'] == '') && ($user_ranks['rank_04_img_html'] == '') && ($user_ranks['rank_05_html'] == '') && ($user_ranks['rank_05_img_html'] == ''))
{
$user_ranks['rank_01_html'] = ' ';
}
// Mighty Gorgon - Multiple Ranks - END
$rank = $user_ranks['rank_01_html'];
$rank_image = $user_ranks['rank_01_img_html'];
$avatar = user_get_avatar($staff['user_id'], $staff['user_level'], $staff['user_avatar'], $staff['user_avatar_type'], $staff['user_allowavatar']);
$forums = '';
if(!empty($staff2[$staff['user_id']]))
{
asort($staff2[$staff['user_id']]);
$forums = implode(' ', $staff2[$staff['user_id']]);
}
/*
// Mighty Gorgon: OLD SQL REMOVED - BEGIN
$sql_posts = "SELECT DISTINCT p.post_time, p.post_id, count(DISTINCT t.topic_id) AS user_topics
FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE p.poster_id = '$user_id' AND t.topic_poster = '$user_id'
GROUP BY p.post_time
ORDER BY p.post_time DESC LIMIT 1";
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:31,代码来源:staff.php
示例10: print_user_avatar
/**
* Print the avatar in the user row of the plugin table
*
* @param $data_row
* @param $group_index
*/
function print_user_avatar($data_row, $group_index)
{
$user_id = $data_row['user_id'];
$user_global_access_level = user_get_field(auth_get_current_user_id(), 'access_level');
$no_user = userprojectapi::get_no_user($user_id);
$no_issue = $data_row['no_issue'];
$assigned_project_id = $data_row['assigned_project_id'];
$assigned_to_project = userprojectapi::get_assigned_to_project($user_id, $assigned_project_id);
$unreachable_issue = userprojectapi::get_unreachable_issue($assigned_to_project);
if (plugin_config_get('ShowAvatar') && config_get('show_avatar')) {
if ($group_index > 0) {
if (!user_exists($user_id) && !$no_user || userprojectapi::check_user_id_is_valid($user_id) && !userprojectapi::check_user_id_is_enabled($user_id) && plugin_config_get('IAUHighlighting')) {
echo '<td align="center" width="25px" style="background-color:' . plugin_config_get('IAUHBGColor') . '">';
} elseif ($no_issue && plugin_config_get('ZIHighlighting')) {
echo '<td align="center" width="25px" style="background-color:' . plugin_config_get('ZIHBGColor') . '">';
} elseif ($no_user && plugin_config_get('NUIHighlighting')) {
echo '<td align="center" width="25px" style="background-color:' . plugin_config_get('NUIHBGColor') . '">';
} elseif ($unreachable_issue && plugin_config_get('URIUHighlighting')) {
echo '<td align="center" width="25px" style="background-color:' . plugin_config_get('URIUHBGColor') . '">';
} else {
echo '<td class="user_row_bg" align="center" width="25px">';
}
if (user_exists($user_id)) {
if ($group_index != 1) {
echo '<a href="search.php?' . userprojectapi::generate_status_link() . '&handler_id=' . userprojectapi::get_link_user_id($user_id) . '&sortby=last_updated' . '&dir=DESC' . '&hide_status_id=-2' . '&match_type=0">';
}
if (config_get('show_avatar') && $user_global_access_level >= config_get('show_avatar_threshold')) {
if ($user_id > 0) {
$avatar = user_get_avatar($user_id);
echo '<img class="avatar" src="' . $avatar[0] . '" />';
}
}
if ($group_index != 1) {
echo '</a>';
}
}
echo '</td>' . PHP_EOL;
} else {
$assigned_to_project = userprojectapi::get_assigned_to_project($user_id, $assigned_project_id);
$unreachable_issue = userprojectapi::get_unreachable_issue($assigned_to_project);
echo '<td>';
if (!$no_user && !$unreachable_issue) {
echo '<label>';
echo '<input type="checkbox" name="dataRow[]" value="' . $user_id . ',' . $assigned_project_id . '"/>';
echo '</label>';
}
echo '</td>' . PHP_EOL;
}
} else {
echo '<td width="25px"></td>';
}
}
开发者ID:Cre-ator,项目名称:Whiteboard.UserProjectView-Plugin,代码行数:58,代码来源:UserProject.php
示例11: cms_block_news_posters
function cms_block_news_posters()
{
global $db, $cache, $config, $template, $images, $lang, $block_id, $cms_config_vars;
include_once IP_ROOT_PATH . 'includes/functions_users.' . PHP_EXT;
$template->_tpldata['news_poster.'] = array();
$page_link = htmlspecialchars($cms_config_vars['md_news_posters_page_link'][$block_id]);
//0 = alphabetical || 1 = News
$list_sort = request_var('list_sort', '');
$list_sort = $list_sort == POST_TOPIC_URL ? 1 : ($list_sort == POST_USERS_URL ? 0 : false);
$list_sort = $list_sort === false ? $cms_config_vars['md_news_posters_sort'][$block_id] == 1 ? 1 : 0 : $list_sort;
$show_avatars = $cms_config_vars['md_news_posters_avatar'][$block_id] == 1 ? 1 : 0;
$start = request_var('start', 0);
$start = $start < 0 ? 0 : $start;
$per_page = request_var('per_page', $config['topics_per_page']);
$per_page = $per_page < 0 ? $config['topics_per_page'] : $per_page;
$quick_list = request_var('quick_list', '');
$index_file = !empty($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : getenv('SCRIPT_NAME');
$portal_page_id = request_var('page', 0);
$portal_page_id = !empty($portal_page_id) ? '&page=' . $portal_page_id : '';
$base_url = htmlspecialchars(urldecode($index_file));
$base_url .= '?list_sort=' . ($list_sort == 1 ? POST_TOPIC_URL : POST_USERS_URL);
$base_url .= '&per_page=' . $per_page;
$base_url .= $portal_page_id;
$sort_sql = "ORDER BY " . ($list_sort == 1 ? "num_topics DESC" : "u.username ASC");
$template->assign_vars(array('S_QUICK_LIST' => $quick_list == 'true' ? true : false, 'U_QUICK_LIST' => $base_url . '&quick_list=true', 'U_NORMAL_LIST' => $base_url, 'L_NEWS_POSTERS' => $lang['cms_block_news_posters'], 'L_USER_PROFILE' => $lang['Profile'], 'L_PM' => $lang['Private_Message'], 'L_USER_WWW' => $lang['Website']));
$tpl_block_var_name = 'news_poster' . ($show_avatars == 1 ? '_av' : '');
if ($quick_list == 'true') {
$sql = "SELECT t.topic_poster, COUNT(t.topic_poster) num_topics,\n\t\t\t\t\t\t\t\tu.user_id, u.username, u.user_active, u.user_color\n\t\t\t\t\t\t\tFROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u\n\t\t\t\t\t\t\tWHERE t.news_id > 0\n\t\t\t\t\t\t\t\tAND t.topic_status <> '" . TOPIC_MOVED . "'\n\t\t\t\t\t\t\t\tAND u.user_id = t.topic_poster\n\t\t\t\t\t\t\tGROUP BY t.topic_poster\n\t\t\t\t\t\t\t" . $sort_sql;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$username_clean = $row['username'];
$username = colorize_username($row['user_id'], $row['username'], $row['user_color'], $row['user_active']);
$user_id = $row['user_id'];
$posts = $row['user_posts'] ? $row['user_posts'] : 0;
$template->assign_block_vars('news_poster', array('USERNAME' => $username . $gender_image, 'NEWS' => $row['num_topics'], 'U_VIEWNEWS' => append_sid($page_link . (strpos($page_link, '?') === false ? '?' : '&') . 'ubid=' . $user_id)));
}
$db->sql_freeresult($result);
} else {
$sql = "SELECT t.topic_poster, COUNT(t.topic_poster) num_topics,\n\t\t\t\t\t\t\t\tu.user_id, u.username, u.user_active, u.user_color, u.user_level, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_posts,\n\t\t\t\t\t\t\t\tu.user_from, u.user_from_flag, u.user_regdate, u.user_gender,\n\t\t\t\t\t\t\t\tu.user_website, u.user_icq, u.user_aim, u.user_msnm, u.user_yim, u.user_skype\n\t\t\t\t\t\t\tFROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u\n\t\t\t\t\t\t\tWHERE t.news_id > 0\n\t\t\t\t\t\t\t\tAND t.topic_status <> '" . TOPIC_MOVED . "'\n\t\t\t\t\t\t\t\tAND u.user_id = t.topic_poster\n\t\t\t\t\t\t\tGROUP BY t.topic_poster\n\t\t\t\t\t\t\t" . $sort_sql . "\n\t\t\t\t\t\t\tLIMIT " . $start . ", " . $per_page;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$username_clean = $row['username'];
$username = colorize_username($row['user_id'], $row['username'], $row['user_color'], $row['user_active']);
$user_id = $row['user_id'];
$posts = $row['user_posts'] ? $row['user_posts'] : 0;
$poster_avatar = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar']);
$poster_from = $row['user_from'] ? $lang['Location'] . ': ' . $row['user_from'] : $lang['Location'] . ': ???';
$poster_from_flag = $row['user_from_flag'] ? ' <img src="images/flags/' . $row['user_from_flag'] . '" alt="' . $row['user_from_flag'] . '" title="' . $row['user_from'] . '" />' : '';
$poster_joined = $lang['Joined'] . ': ' . create_date($lang['JOINED_DATE_FORMAT'], $row['user_regdate'], $config['board_timezone']);
$temp_url = append_sid(CMS_PAGE_PRIVMSG . '?mode=post&' . POST_USERS_URL . '=' . $poster_id);
$pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" /></a>';
$pm = '<a href="' . $temp_url . '">' . $lang['PM'] . '</a>';
switch ($row['user_gender']) {
case 1:
$gender_image = ' <img src="' . $images['icon_minigender_male'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Male'] . '" title="' . $lang['Gender'] . ': ' . $lang['Male'] . '" />';
break;
case 2:
$gender_image = ' <img src="' . $images['icon_minigender_female'] . '" alt="' . $lang['Gender'] . ': ' . $lang['Female'] . '" title="' . $lang['Gender'] . ': ' . $lang['Female'] . '" />';
break;
default:
$gender_image = '';
}
$user_info = array();
$user_info = generate_user_info($row);
foreach ($user_info as $k => $v) {
${$k} = $v;
}
$template->assign_block_vars($tpl_block_var_name, array('USERNAME' => $username . $gender_image, 'POSTS' => $posts, 'NEWS' => $row['num_topics'], 'AVATAR_IMG' => $poster_avatar, 'POSTER_FROM' => $poster_from . $poster_from_flag, 'POSTER_JOINED' => $poster_joined, 'CONTACTS' => $pm_img . $www_img . $icq_img . $aim_img . $msn_img . $yahoo_img . $skype_img, 'PROFILE_IMG' => $profile_img, 'PROFILE' => $profile, 'PM_IMG' => $pm_img, 'PM' => $pm, 'WWW_IMG' => $www_img, 'WWW' => $www, 'AIM_IMG' => $aim_img, 'AIM' => $aim, 'ICQ_STATUS_IMG' => $icq_status_img, 'ICQ_IMG' => $icq_img, 'ICQ' => $icq, 'MSN_IMG' => $msn_img, 'MSN' => $msn, 'SKYPE_IMG' => $skype_img, 'SKYPE' => $skype, 'YIM_IMG' => $yahoo_img, 'YIM' => $yahoo, 'U_PROFILE' => $profile_url, 'U_PM' => $pm_url, 'U_WWW' => $www_url, 'U_AIM' => $aim_url, 'U_ICQ' => $icq_url, 'U_MSN' => $msn_url, 'U_SKYPE' => $skype_url, 'U_YIM' => $yahoo_url, 'U_VIEWPOSTER' => append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id), 'U_VIEWNEWS' => append_sid($page_link . (strpos($page_link, '?') === false ? '?' : '&') . 'ubid=' . $user_id), 'U_VIEWTOPICS' => append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode(ip_utf8_decode($username_clean)) . '&search_topic_starter=1&show_results=topics'), 'U_VIEWPOSTS' => append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode(ip_utf8_decode($username_clean)) . '&showresults=posts')));
}
$db->sql_freeresult($result);
$sql = "SELECT COUNT(DISTINCT t.topic_poster) as news_posters\n\t\t\t\t\t\t\tFROM " . TOPICS_TABLE . " t\n\t\t\t\t\t\t\tWHERE t.news_id > 0\n\t\t\t\t\t\t\t\tAND t.topic_status <> '" . TOPIC_MOVED . "'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$total_news_posters = $row['news_posters'];
$db->sql_freeresult($result);
$number_of_page = ceil($total_news_posters / $per_page) == 0 ? 1 : ceil($total_news_posters / $per_page);
$template->assign_vars(array('PAGINATION' => generate_pagination($base_url, $total_news_posters, $per_page, $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], floor($start / $per_page) + 1, $number_of_page), 'L_GOTO_PAGE' => $lang['Goto_page']));
}
}
开发者ID:ALTUN69,项目名称:icy_phoenix,代码行数:79,代码来源:news_posters.php
示例12: create_date_ip
// BIRTHDAY - END
$post_date = create_date_ip($config['default_dateformat'], $postrow[$i]['post_time'], $config['board_timezone']);
$poster_posts = ($postrow[$i]['user_id'] != ANONYMOUS) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';
$poster_flag_country = ($postrow[$i]['user_from_flag'] == 'blank.gif') ? '' : ucwords(str_replace(array('.gif', '.png', '_'), array('', '', ' '), $postrow[$i]['user_from_flag']));
$poster_from_flag = (!empty($postrow[$i]['user_from_flag']) && ($postrow[$i]['user_id'] != ANONYMOUS)) ? '<img src="images/flags/' . $postrow[$i]['user_from_flag'] . '" alt="' . $postrow[$i]['user_from_flag'] . '" title="' . $postrow[$i]['user_from'] . (!empty($poster_flag_country) ? (' (' . $poster_flag_country . ')') : '') . '" />' : '';
$poster_from = (!empty($postrow[$i]['user_from']) && ($postrow[$i]['user_id'] != ANONYMOUS)) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
$poster_from_full = ((!empty($poster_from_flag) || !empty($postrow[$i]['user_from'])) && ($postrow[$i]['user_id'] != ANONYMOUS)) ? $lang['Location'] . ':' . (!empty($poster_from_flag) ? (' ' . $poster_from_flag) : '') . (!empty($postrow[$i]['user_from']) ? (' ' . $postrow[$i]['user_from']) : '') : '';
$poster_joined = ($postrow[$i]['user_id'] != ANONYMOUS) ? $lang['Joined'] . ': ' . create_date($lang['JOINED_DATE_FORMAT'], $postrow[$i]['user_regdate'], $config['board_timezone']) : '';
$poster_avatar = user_get_avatar($poster_id, $postrow[$i]['user_level'], $postrow[$i]['user_avatar'], $postrow[$i]['user_avatar_type'], $postrow[$i]['user_allowavatar']);
// Define the little post icon
// UPI2DB - BEGIN
if(!$user->data['upi2db_access'])
{
// UPI2DB - END
if ($user->data['session_logged_in'] && ($postrow[$i]['post_time'] > $user->data['user_lastvisit']) && ($postrow[$i]['post_time'] > $topic_last_read) && !$user->data['is_bot'])
{
$mini_post_img = $images['icon_minipost_new'];
$mini_post_alt = $lang['New_post'];
}
else
{
$mini_post_img = $images['icon_minipost'];
$mini_post_alt = $lang['Post'];
开发者ID:GabrielAnca,项目名称:icy_phoenix,代码行数:31,代码来源:viewtopic.php
示例13: generate_user_info
function generate_user_info(&$row, $date_format = false, $is_moderator = false)
{
global $config, $lang, $images, $user;
$date_format = $date_format == false ? $lang['JOINED_DATE_FORMAT'] : $date_format;
$info_array = array('avatar', 'first_name', 'last_name', 'from', 'posts', 'joined', 'gender', 'flag', 'style', 'age', 'birthday', 'avatar', 'profile_url', 'profile_img', 'profile', 'pm_url', 'pm_img', 'pm', 'search_url', 'search_img', 'search', 'ip_url', 'ip_img', 'ip', 'email_url', 'email_img', 'email', 'www_url', 'www_img', 'www', 'online_status_url', 'online_status_class', 'online_status_img', 'online_status');
$user_sn_im_array = get_user_sn_im_array();
foreach ($user_sn_im_array as $k => $v) {
$info_array[] = $k;
$info_array[] = $k . '_img';
$info_array[] = $k . '_url';
}
// Initialize everything...
$user_info = array();
for ($i = 0; $i < sizeof($info_array); $i++) {
$user_info[$info_array[$i]] = '';
}
$user_info['from'] = !empty($row['user_from']) ? $row['user_from'] : ' ';
$user_info['joined'] = create_date($date_format, $row['user_regdate'], $config['board_timezone']);
$user_info['posts'] = $row['user_posts'] ? $row['user_posts'] : 0;
$user_info['style'] = $row['style_name'] ? $row['style_name'] : '';
$user_info['avatar'] = user_get_avatar($row['user_id'], $row['user_level'], $row['user_avatar'], $row['user_avatar_type'], $row['user_allowavatar']);
if (empty($user->data['user_id']) || $user->data['user_id'] == ANONYMOUS) {
if (!empty($row['user_viewemail'])) {
$user_info['email_img'] = '<img src="' . $images['icon_email'] . '" alt="' . $lang['Hidden_email'] . '" title="' . $lang['Hidden_email'] . '" />';
} else {
$user_info['email_img'] = ' ';
}
$user_info['email'] = ' ';
} elseif (!empty($row['user_allow_viewemail']) || $is_moderator || $user->data['user_level'] == ADMIN) {
$user_info['email_url'] = $config['board_email_form'] ? append_sid(CMS_PAGE_PROFILE . '?mode=email&' . POST_USERS_URL . '=' . $row['user_id']) : 'mailto:' . $row['user_email'];
$user_info['email_img'] = '<a href="' . $user_info['email_url'] . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" /></a>';
$user_info['email'] = '<a href="' . $user_info['email_url'] . '">' . $lang['Send_email'] . '</a>';
} else {
$user_info['email_img'] = ' ';
$user_info['email'] = ' ';
}
if (isset($row['ct_last_used_ip']) && $user->data['user_level'] == ADMIN) {
$user_info['ip_url'] = 'http://www.nic.com/cgi-bin/whois.cgi?query=' . htmlspecialchars(urlencode($row['ct_last_used_ip']));
$user_info['ip_img'] = '<a href="' . $user_info['ip_url'] . '" target="_blank"><img src="' . $images['icon_ip2'] . '" alt="' . $lang['View_IP'] . ' (' . htmlspecialchars($row['ct_last_used_ip']) . ')" title="' . $lang['View_IP'] . ' (' . htmlspecialchars($row['ct_last_used_ip']) . ')" /></a>';
$user_info['ip'] = '<a href="' . $user_info['ip_url'] . '">' . $lang['View_IP'] . '</a>';
}
$user_info['profile_url'] = append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&' . POST_USERS_URL . '=' . $row['user_id']);
$user_info['profile_img'] = '<a href="' . $user_info['profile_url'] . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>';
$user_info['profile'] = '<a href="' . $user_info['profile_url'] . '">' . $lang['Read_profile'] . '</a>';
$user_info['pm_url'] = append_sid(CMS_PAGE_PRIVMSG . '?mode=post&' . POST_USERS_URL . '=' . $row['user_id']);
$user_info['pm_img'] = '<a href="' . $user_info['pm_url'] . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" /></a>';
$user_info['pm'] = '<a href="' . $user_info['pm_url'] . '">' . $lang['Send_private_message'] . '</a>';
$user_info['search_url'] = append_sid(CMS_PAGE_SEARCH . '?search_author=' . urlencode($username) . '&showresults=posts');
$user_info['search_img'] = '<a href="' . $search_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $username) . '" title="' . sprintf($lang['Search_user_posts'], $username) . '" /></a>';
$user_info['search'] = '<a href="' . $search_url . '">' . sprintf($lang['Search_user_posts'], $username) . '</a>';
$user_info['www_img'] = !empty($row['user_website']) ? '<a href="' . $row['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" /></a>' : '';
$user_info['www'] = !empty($row['user_website']) ? '<a href="' . $row['user_website'] . '" target="_blank">' . $lang['Visit_website'] . '</a>' : '';
$user_info['www_url'] = !empty($row['user_website']) ? $row['user_website'] : '';
$user_sn_im_array = get_user_sn_im_array();
$im_links_array = array();
foreach ($user_sn_im_array as $k => $v) {
$im_links_array[$k] = $v['alt_name'];
}
$im_links_array['chat'] = 'id';
$all_ims = array();
foreach ($im_links_array as $im_k => $im_v) {
$all_ims[$im_k] = array('plain' => '', 'img' => '', 'url' => '');
if (!empty($row['user_' . $im_v])) {
$all_ims[$im_k] = array('plain' => build_im_link($im_k, $row, false, false, false, false, false), 'img' => build_im_link($im_k, $row, 'icon_tpl_vt', true, false, false, false), 'url' => build_im_link($im_k, $row, false, false, true, false, false));
}
$user_info[$im_k . '_img'] = $all_ims[$im_k]['img'];
$user_info[$im_k] = $all_ims[$im_k]['plain'];
$user_info[$im_k . '_url'] = $all_ims[$im_k]['url'];
}
$user_info['icq_status_img'] = !empty($row['user_icq']) ? '<a href="http://wwp.icq.com/' . $row['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&img=5" width="18" height="18" /></a>' : '';
// ONLINE / OFFLINE - BEGIN
$user_info['online_status_url'] = append_sid(CMS_PAGE_VIEWONLINE);
// Start as offline...
$user_info['online_status_img'] = '<img src="' . $images['icon_offline2'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" />';
$user_info['online_status_lang'] = $lang['Offline'];
$user_info['online_status_class'] = 'offline';
if ($row['user_session_time']
|
请发表评论