Example #1
0
function mx_showfanpage($id, $simul = '')
{
    global $mxuser;
    $dbuser = $mxuser->getuserinfo($id);
    if ($dbuser->acctype == MXACCOUNTARTIST) {
        return mx_showartistpage($id, 0, $simul);
    }
    if ($dbuser->status == MXACCTDISABLED) {
        __('This account doesn\'t exist');
        return;
    }
    if (!$dbuser) {
        mx_optiontitle('error', _('This account doesn\'t exist'));
        return;
    }
    /*if ($dbuser->acctype==MXACCOUNTFAN || $option=='viewprof' || $option=='fanprof') {
    		mx_optionsubtitle('→ '.mx_getname($dbuser));
    	} else {
    		mx_optionsubtitle('→ '.mx_getartistname($dbuser));
    	}*/
    $authflds = $mxuser->getauthorizedfields($dbuser->id);
    $authgrps = $mxuser->getauthorizedgroups($authflds);
    $section = '';
    if (!$authgrps || !$authflds) {
        __('No information available.');
        return;
    }
    $custpage = $dbuser->custompage ? $dbuser->custompage : MXDEFFANPAGE;
    mx_showcustompage($custpage, $dbuser, 0, $simul);
    if ($id != $mxuser->id) {
        mx_fbaction('musxpand:check_out?fan=' . urlencode(mx_actionurl('fans', 'fanprof', $id)));
    }
    return;
}
Example #2
0
function mx_mnartprof($page, $option, $action, $simul = '')
{
    global $mxuser;
    if ($action) {
        $mediaid = mx_secureword($_GET['m']);
        if (!$mediaid) {
            $mediaid = -1;
        }
        mx_showartistpage($action, $mediaid, $simul);
    } else {
        mx_showhtmlpage('artprof');
    }
}