if (!($acl->acl_check('administration', 'edit', 'users', $my->usertype, 'mambots', 'all') | $acl->acl_check('administration', 'install', 'users', $my->usertype, 'mambots', 'all'))) { mosRedirect('index2.php', _NOT_AUTH); } require_once $mainframe->getPath('admin_html'); $client = mosGetParam($_REQUEST, 'client', ''); $cid = mosGetParam($_POST, 'cid', array(0)); if (!is_array($cid)) { $cid = array(0); } switch ($task) { case 'new': case 'edit': editMambot($option, $cid[0], $client); break; case 'save': saveMambot($option, $client); break; case 'remove': removeMambot($cid, $option, $client); break; case 'cancel': cancelMambot($option, $client); break; case 'publish': case 'unpublish': publishMambot($cid, $task == 'publish', $option, $client); break; case 'orderup': case 'orderdown': orderMambot($cid[0], $task == 'orderup' ? -1 : 1, $option, $client); break;
$client = mosGetParam($_REQUEST, 'client', ''); $cid = mosGetParam($_POST, 'cid', array(0)); if (!is_array($cid)) { $cid = array(0); } switch ($task) { case 'new': case 'edit': editMambot($option, $cid[0], $client); break; case 'editA': editMambot($option, $id, $client); break; case 'save': case 'apply': saveMambot($option, $client, $task); break; case 'remove': removeMambot($cid, $option, $client); break; case 'cancel': cancelMambot($option, $client); break; case 'publish': case 'unpublish': publishMambot($cid, $task == 'publish', $option, $client); break; case 'orderup': case 'orderdown': orderMambot($cid[0], $task == 'orderup' ? -1 : 1, $option, $client); break;