} if (helper_access::check_module('follow')) { $followerlist = C::t('home_follow')->fetch_all_following_by_uid($uid, 0, 9); } $seccodecheck = $_G['setting']['seccodestatus'] & 4 && (!$_G['setting']['seccodedata']['minposts'] || getuserprofile('posts') < $_G['setting']['seccodedata']['minposts']); $secqaacheck = $_G['setting']['secqaa']['status'] & 2 && (!$_G['setting']['secqaa']['minposts'] || getuserprofile('posts') < $_G['setting']['secqaa']['minposts']); } elseif ($do == 'follower') { $count = C::t('home_follow')->count_follow_user($uid, 1); if ($viewself && !empty($_G['member']['newprompt_num']['follower'])) { $newfollower = C::t('home_notification')->fetch_all_by_uid($uid, -1, 'follower', 0, $_G['member']['newprompt_num']['follower']); $newfollower_list = array(); foreach ($newfollower as $val) { $newfollower_list[] = $val['from_id']; } C::t('home_notification')->delete_by_type('follower', $_G['uid']); helper_notification::update_newprompt($_G['uid'], 'follower'); } if ($count) { $list = C::t('home_follow')->fetch_all_follower_by_uid($uid, $start, $perpage); $multi = multi($count, $perpage, $page, $theurl); } if (helper_access::check_module('follow')) { $followerlist = C::t('home_follow')->fetch_all_following_by_uid($uid, 0, 9); } $navactives = array($do => ' class="a"'); } elseif ($do == 'following') { $count = C::t('home_follow')->count_follow_user($uid); if ($count) { $status = $_GET['status'] ? 1 : 0; $list = C::t('home_follow')->fetch_all_following_by_uid($uid, $status, $start, $perpage); $multi = multi($count, $perpage, $page, $theurl);
if ($value['from_num'] > 0) { $value['from_num'] = $value['from_num'] - 1; } $list[$value['id']] = $value; } $multi = ''; $multi = multi($count, $perpage, $page, "home.php?mod=space&do={$do}&isread=1"); } if ($newnotify) { C::t('home_notification')->ignore($_G['uid'], $type, $category, true, true); if ($_G['setting']['cloud_status']) { $noticeService = Cloud::loadClass('Service_Client_Notification'); $noticeService->setNoticeFlag($_G['uid'], TIMESTAMP); } } helper_notification::update_newprompt($_G['uid'], $type ? $type : $category); if ($_G['setting']['my_app_status']) { $mynotice = C::t('common_myinvite')->count_by_touid($_G['uid']); } if ($_G['member']['newprompt']) { $recountprompt = 0; foreach ($_G['member']['category_num'] as $promptnum) { $recountprompt += $promptnum; } $recountprompt += $mynotice; if ($recountprompt == 0) { C::t('common_member')->update($_G['uid'], array('newprompt' => 0)); } } $readtag = array($type => ' class="a"'); }