Пример #1
0
 public function process()
 {
     vB::$vbulletin->input->clean_array_gpc('p', array('userid' => TYPE_UINT, 'tab' => TYPE_NOHTML, 'mindateline' => TYPE_UNIXTIME, 'maxdateline' => TYPE_UNIXTIME, 'minscore' => TYPE_NUM, 'minid' => TYPE_STR, 'maxid' => TYPE_STR, 'pagenumber' => TYPE_UINT, 'perpage' => TYPE_UINT));
     vB::$vbulletin->GPC['ajax'] = 1;
     vB_dB_Assertor::init(vB::$vbulletin->db, vB::$vbulletin->userinfo);
     vB_ProfileCustomize::getUserTheme(vB::$vbulletin->GPC['userid']);
     $userhastheme = vB_ProfileCustomize::getUserThemeType(vB::$vbulletin->GPC['userid']) == 1 ? 1 : 0;
     $showusercss = vB::$vbulletin->userinfo['options'] & vB::$vbulletin->bf_misc_useroptions['showusercss'] ? 1 : 0;
     if ($userhastheme and $showusercss) {
         define('AS_PROFILE', true);
     }
     $userinfo = verify_id('user', vB::$vbulletin->GPC['userid'], 1, 1);
     $this->fetchMemberStreamSql(vB::$vbulletin->GPC['tab'], $userinfo['userid']);
     $this->processExclusions();
     $this->setPage(1, vB::$vbulletin->GPC['perpage']);
     $result = $this->fetchStream();
     $this->processAjax($result);
 }
Пример #2
0
    $show['showusercss'] = 0;
    $usercss_switch_phrase = $vbphrase['show_user_customizations'];
}
if (!isset($vbulletin->bf_ugp_usercsspermissions['canusetheme'])) {
    $canusetheme = false;
} else {
    $canusetheme = $vbulletin->userinfo['permissions']['usercsspermissions'] & $vbulletin->bf_ugp_usercsspermissions['canusetheme'] ? true : false;
}
$cancustomize = $vbulletin->userinfo['permissions']['usercsspermissions'] & $vbulletin->bf_ugp_usercsspermissions['cancustomize'] ? true : false;
//Fairly complex permissions check. Does the admin allow customization?
$show_customize_profile = (bool) ($vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_profile_styling']);
//Even if so, there are a number of reasons not to show the link.
if (!intval($vbulletin->userinfo['userid']) or $vbulletin->userinfo['userid'] != intval($userinfo['userid']) or !$canusetheme and !$cancustomize) {
    $show_customize_profile = false;
}
vB_dB_Assertor::init($vbulletin->db, $vbulletin->userinfo);
$usertheme = vB_ProfileCustomize::getUserTheme($vbulletin->GPC['userid']);
$show['userhastheme'] = vB_ProfileCustomize::getUserThemeType($vbulletin->GPC['userid']) == 1 ? 1 : 0;
if ($show['userhastheme'] and $show['showusercss']) {
    define('AS_PROFILE', true);
}
($hook = vBulletinHook::fetch_hook('member_build_blocks_start')) ? eval($hook) : false;
if (!empty($vbulletin->GPC['tab']) and isset($blocklist["{$vbulletin->GPC['tab']}"])) {
    $selected_tab = $vbulletin->GPC['tab'];
} else {
    $selected_tab = '';
}
foreach ($blocklist as $blockid => $blockinfo) {
    $blockobj = $blockfactory->fetch($blockinfo['class']);
    // added a new param for $blocklist var 'wrap'. if it's set to true,
    // the block html will be wrapped by memberinfo_block template.
Пример #3
0
 /**
  * Returns a by-reference the assertor object
  * @return vB_dB_Assertor
  */
 public static function &getDbAssertor()
 {
     if (!isset(self::$db_assertor)) {
         vB_dB_Assertor::init(self::getConfig());
         self::$db_assertor = vB_dB_Assertor::instance();
     }
     return self::$db_assertor;
 }
Пример #4
0
    if (intval($vbulletin->userinfo['userid'])) {
        $vbulletin->input->clean_array_gpc('r', array('albumid' => TYPE_UINT));
        if ($vbulletin->GPC_exists['albumid']) {
            //class db_Assertor needs to be initialized.
            vB_dB_Assertor::init(vB::$vbulletin->db, vB::$vbulletin->userinfo);
            echo vB_ProfileCustomize::getAlbumContents($vbulletin->GPC['albumid'], $vbulletin->userinfo);
        }
    }
}
// #############################################################################
// get the asset picker
//
if ($_REQUEST['do'] == 'getassetpicker') {
    if (intval($vbulletin->userinfo['userid'])) {
        //class db_Assertor needs to be initialized.
        vB_dB_Assertor::init(vB::$vbulletin->db, vB::$vbulletin->userinfo);
        vB_ProfileCustomize::getAssetPicker($vbulletin->userinfo, $vbulletin);
    }
}
// #############################################################################
// get the confirm close dialog box
//
if ($_REQUEST['do'] == 'getconfirmclosebox') {
    if (intval($vbulletin->userinfo['userid'])) {
        echo vB_ProfileCustomize::getConfirmCloseBox();
    }
}
// #############################################################################
// get the confirm close dialog box
//
if ($_REQUEST['do'] == 'getprofiledialog') {