} // display user info $userperms = cache_permissions($userinfo, false); $show['edit_profile'] = ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'] or can_moderate(0, 'canviewprofile')); // Check if blog is installed, and show link if so $show['viewblog'] = $vbulletin->products['vbblog']; // Check if CMS is installed, and show link if so $show['viewarticles'] = $vbulletin->products['vbcms']; ($hook = vBulletinHook::fetch_hook('member_execute_start')) ? eval($hook) : false; require_once DIR . '/includes/class_userprofile.php'; require_once DIR . '/includes/class_profileblock.php'; $vbulletin->input->clean_array_gpc('r', array('pagenumber' => TYPE_UINT, 'tab' => TYPE_NOHTML, 'perpage' => TYPE_UINT, 'vmid' => TYPE_UINT, 'showignored' => TYPE_BOOL, 'simple' => TYPE_BOOL, 'type' => TYPE_NOHTML)); if ($vbulletin->GPC['vmid'] and !$vbulletin->GPC['tab']) { $vbulletin->GPC['tab'] = 'visitor_messaging'; } $profileobj = new vB_UserProfile($vbulletin, $userinfo); $profileobj->prepare_blogurl(); // Add birthday and age to the response VBIV-15751 if (defined('VB_API') and VB_API === true) { $profileobj->prepare_birthday(); } $blockfactory = new vB_ProfileBlockFactory($vbulletin, $profileobj); $prepared =& $profileobj->prepared; $blocks = array(); $tabs = array(); $tablinks = array(); $blocklist = array('stats_mini' => array('class' => 'MiniStats', 'title' => $vbphrase['mini_statistics']), 'friends_mini' => array('class' => 'Friends', 'title' => $vbphrase['friends']), 'albums' => array('class' => 'Albums', 'title' => $vbphrase['albums']), 'visitors' => array('class' => 'RecentVisitors', 'title' => $vbphrase['recent_visitors'], 'options' => array('profilemaxvisitors' => $vbulletin->options['profilemaxvisitors'])), 'groups' => array('class' => 'Groups', 'title' => $vbphrase['group_memberships']), 'visitor_messaging' => array('class' => 'VisitorMessaging', 'title' => $vbphrase['visitor_messages_tab'], 'options' => array('pagenumber' => $vbulletin->GPC['pagenumber'], 'tab' => $vbulletin->GPC['tab'], 'vmid' => $vbulletin->GPC['vmid'], 'showignored' => $vbulletin->GPC['showignored'])), 'stats' => array('class' => 'Statistics', 'title' => $vbphrase['statistics']), 'aboutme' => array('class' => 'AboutMe', 'title' => $vbphrase['about_me'], 'options' => array('simple' => $vbulletin->GPC['simple'])), 'contactinfo' => array('class' => 'ContactInfo', 'title' => $vbphrase['contact_info']), 'friends' => array('class' => 'Friends', 'title' => $vbphrase['friends'], 'type' => 'tab', 'options' => array('fetchamount' => $vbulletin->options['friends_per_page'], 'membertemplate' => 'memberinfo_small', 'template_override' => 'memberinfo_block_friends', 'pagenumber' => $vbulletin->GPC['pagenumber'], 'tab' => $vbulletin->GPC['tab'], 'fetchorder' => 'asc')), 'infractions' => array('class' => 'Infractions', 'title' => $vbphrase['infractions'], 'options' => array('pagenumber' => $vbulletin->GPC['pagenumber'], 'tab' => $vbulletin->GPC['tab'])), 'profile_picture' => array('class' => 'ProfilePicture'), 'reputation' => array('wrap' => false, 'class' => 'Reputation', 'title' => $vbphrase['reputation'], 'options' => array('tab' => $vbulletin->GPC['tab'], 'comments' => $vbulletin->options['member_rep_comments'], 'showraters' => $permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseeownrep'])), 'activitystream' => array('class' => 'ActivityStream', 'title' => $userinfo['userid'] == $vbulletin->userinfo['userid'] ? $vbphrase['my_activity'] : construct_phrase($vbphrase['x_activity'], $userinfo['username']), 'options' => array('tab' => $vbulletin->GPC['tab'], 'type' => $vbulletin->GPC['type'], 'pagenumber' => $vbulletin->GPC['pagenumber']))); if (!empty($vbulletin->GPC['tab']) and !empty($vbulletin->GPC['perpage']) and isset($blocklist["{$vbulletin->GPC['tab']}"])) { $blocklist["{$vbulletin->GPC['tab']}"]['options']['perpage'] = $vbulletin->GPC['perpage']; } $vbulletin->GPC['simple'] = $prepared['myprofile'] ? $vbulletin->GPC['simple'] : false;
$vbulletin->input->clean_array_gpc('r', array( 'pagenumber' => TYPE_UINT, 'tab' => TYPE_NOHTML, 'perpage' => TYPE_UINT, 'vmid' => TYPE_UINT, 'showignored' => TYPE_BOOL, 'simple' => TYPE_BOOL, )); if ($vbulletin->GPC['vmid'] AND !$vbulletin->GPC['tab']) { $vbulletin->GPC['tab'] = 'visitor_messaging'; } $profileobj = new vB_UserProfile($vbulletin, $userinfo); $profileobj->prepare_blogurl(); $blockfactory = new vB_ProfileBlockFactory($vbulletin, $profileobj); $prepared =& $profileobj->prepared; $blocks = array(); $tabs = array(); $tablinks = array(); $blocklist = array( 'stats_mini' => array( 'class' => 'MiniStats', 'title' => $vbphrase['mini_statistics'], ), 'friends_mini' => array( 'class' => 'Friends',