showsetting($langs['memo'], 'memo', $result['memo'], 'textarea');
        showsubmit('addsubmit');
        showtablefooter();
        showformfooter();
    }
} elseif ($do == 'batchbrand') {
    $control = $_G['sr_control'];
    if (!in_array($control, array('allopenallowalbum', 'allcloseallowalbum', 'allopenallowfastpost', 'allcloseallowfastpost', 'fixtemplateconfig', 'allopenallowmultiple', 'allcloseallowmultiple'))) {
        $control = '';
    }
    if (submitcheck('fixmodulecolumn', 1)) {
        $pertask = isset($_G['sr_pertask']) ? intval($_G['sr_pertask']) : 100;
        $current = isset($_G['sr_current']) && $_G['sr_current'] > 0 ? intval($_G['sr_current']) : 0;
        $next = $current + $pertask;
        $nextlink = "action=plugins&operation=config&act=businesseslist&do=batchbrand&identifier=sanree_brand&pmod=admincp&current={$next}&pertask={$pertask}&fixmodulecolumn=yes";
        if (fixmodule($current, $pertask)) {
            cpmsg("{$langs['fixmodulecolumn_processing']}: " . cplang('counter_processing', array('current' => $current, 'next' => $next)), $nextlink, 'loading');
        } else {
            cpmsg($langs['fixmodulecolumn_succeed'], 'action=plugins&operation=config&act=' . $act . '&do=batchbrand&identifier=sanree_brand&pmod=admincp', 'succeed');
        }
    } elseif (submitcheck('fixalbum', 1)) {
        $pertask = isset($_G['sr_pertask']) ? intval($_G['sr_pertask']) : 100;
        $current = isset($_G['sr_current']) && $_G['sr_current'] > 0 ? intval($_G['sr_current']) : 0;
        $next = $current + $pertask;
        $nextlink = "action=plugins&operation=config&act=businesseslist&do=batchbrand&identifier=sanree_brand&pmod=admincp&current={$next}&pertask={$pertask}&fixalbum=yes";
        if (fixalbumall($current, $pertask)) {
            cpmsg("{$langs['fixalbum_processing']}: " . cplang('counter_processing', array('current' => $current, 'next' => $next)), $nextlink, 'loading');
        } else {
            cpmsg($langs['fixalbum_succeed'], 'action=plugins&operation=config&act=' . $act . '&do=batchbrand&identifier=sanree_brand&pmod=admincp', 'succeed');
        }
    } elseif (submitcheck('forumsubmit', 1)) {
Esempio n. 2
0
function manmenuDispatch($op)
{
    switch ($op) {
        //main menu
        case "manmenu":
            manmenu();
            break;
        case "addmenuvoice":
            editmenuvoice();
            break;
        case "modmenuvoice":
            editmenuvoice(true);
            break;
        case "savemenuvoice":
            savemenuvoice();
            break;
        case "delmenuvoice":
            delmenuvoice();
            break;
        case "mdmenuvoice":
            movemenuvoice('down');
            break;
        case "mumenuvoice":
            movemenuvoice('up');
            break;
        case "fixmenuvoice":
            fixmenuvoice();
            break;
        case "manmodule":
            manmodule();
            break;
        case "addmodule":
            editmodule();
            break;
        case "modmodule":
            editmodule(true);
            break;
        case "upmodule":
            upmodule();
            break;
        case "delmodule":
            delmodule();
            break;
        case "mdmodule":
            movemodule('down');
            break;
        case "mumodule":
            movemodule('up');
            break;
        case "fixmodule":
            fixmodule();
            break;
    }
}