Beispiel #1
0
function mx_mnerrpage()
{
    mx_pagetitle('errpage', mx_pagename('errpage'));
    __('<p>You tried to access a page that does not exist on MusXpand,' . ' that was moved away or that you are simply not allowed access to.</p>');
    echo sprintf(_('<p>If necessary, please contact our support at %s.</p>'), MXSUPPORTEMAIL);
    __('Thank you.');
}
Beispiel #2
0
function mx_content()
{
    global $mxuser;
    $locale = $mxuser->locale ? $mxuser->locale : 'en_US';
    // message and media frame
    echo '<div id="contentframe" class="contentframe form list">';
    echo '<div></div>';
    //media or message will be inserted here
    echo '</div>';
    // contentframe
    echo '<div id="overlay"></div>';
    if (array_key_exists('q', $_REQUEST)) {
        $query = mx_securestring(urldecode($_REQUEST['q']));
    }
    if ($query) {
        $page = 'search';
        $option = '';
        $action = $query;
    } else {
        $page = mx_secureword($_REQUEST['p']);
        if (!$page) {
            $page = 'main';
        }
        $option = mx_secureword($_REQUEST['o']);
        $action = mx_secureword($_REQUEST['a']);
    }
    // log it!
    $referer = $_SERVER['HTTP_REFERER'];
    if (preg_match('%^https?://[^.]+.musxpand.[^/]+%', $referer) > 0) {
        $referer = '';
    }
    $mxuser->logme($page, $option, $action, $referer);
    // define page and option functions
    $pagefunc = 'mx_mn' . $page;
    $optionfunc = 'mx_mn' . $option;
    if (MXDEFFEATURES & MXFTDROPMENU) {
        if (function_exists($pagefunc)) {
            $pagefunc($page, $option, $action);
        }
        if (function_exists($optionfunc)) {
            $optionfunc($page, $option, $action);
        }
        return;
    }
    if ($mxuser->id || $page != 'main') {
        mx_pagetitle($page, mx_pagename($page));
    }
    if ($page == 'artists' && $option == 'artprof' || $page == 'fans' && $option == 'fanprof') {
        $pagefunc($page, $option, $action);
        $optionfunc($page, $option, $action);
        return;
    }
    if (function_exists($pagefunc)) {
        $pagefunc($page, $option, $action);
        $ok = 1;
    } else {
        mx_showhtmlpage($page);
    }
    if ($option) {
        mx_optiontitle($option, mx_optionname($page, $option));
        if (function_exists($optionfunc)) {
            $optionfunc($page, $option, $action);
            $ok = 1;
        } else {
            mx_showhtmlpage($option);
        }
    }
}