case "saveConnections": case "saveconnections": $oldignoreuserabort = ignore_user_abort(true); saveConnections(cbGetParam($_POST,'uid')); break; case "processConnectionActions": case "processconnectionactions": $oldignoreuserabort = ignore_user_abort(true); processConnectionActions(cbGetParam($_POST,'uid')); break; case "teamCredits": case "teamcredits": teamCredits(1); break; case "fieldclass": case "tabclass": case "pluginclass": tabClass( $option, $task, $_CB_framework->myId() ); break; case "done": break; case "performcheckusername": performCheckUsername( cbGetParam( $_POST, 'value' ), cbGetParam( $_GET, 'function' ) ); break;
checkCanAdminPlugins('core.admin'); installPluginURL(); break; case 'latestVersion': latestVersion(); break; case "fieldclass": case "tabclass": case "pluginclass": tabClass($option, $task, cbGetParam($_REQUEST, 'user', 0)); break; case "finishinstallation": finishInstallation($option); break; default: teamCredits(2); break; } function saveList($option) { global $_CB_framework, $_CB_database, $_POST; $oldrow = new moscomprofilerLists($_CB_database); if (isset($_POST['listid']) && $_POST['listid']) { $oldrow->load((int) $_POST['listid']); // Check if user is a super user: if (!$_CB_framework->acl->amIaSuperAdmin()) { // Check if user belongs to useraccessgroupid: if (!in_array($oldrow->useraccessgroupid, $_CB_framework->acl->get_groups_below_me(null, true))) { echo "<script type=\"text/javascript\"> alert('" . addslashes(CBTxt::T('Unauthorized Access')) . "'); window.history.go(-1);</script>\n"; exit; }