switch ($_POST['do']) { case 'doattachmentdelete': { $inline_mod_authenticate = true; break; } default: { $inline_mod_authenticate = false; ($hook = vBulletinHook::fetch_hook('attachment_inlinemod_authenticate_switch')) ? eval($hook) : false; } } if ($inline_mod_authenticate AND !inlinemod_authenticated()) { show_inline_mod_login(); } switch ($_POST['do']) { case 'attachmentunapprove': case 'attachmentapprove': case 'attachmentdelete': if (empty($vbulletin->GPC['attachmentslist'])) { standard_error(fetch_error('you_did_not_select_any_valid_attachments')); }
$gmessagelist = explode('-', $vbulletin->GPC['vbulletin_inlinegmessage']); $gmessagelist = $vbulletin->input->clean($gmessagelist, TYPE_ARRAY_UINT); $vbulletin->GPC['gmessagelist'] = array_unique(array_merge($gmessagelist, $vbulletin->GPC['gmessagelist'])); } if (!$vbulletin->userinfo['userid']) { print_no_permission(); } switch ($_POST['do']) { case 'doinlinedelete': $inline_mod_authenticate = true; break; default: $inline_mod_authenticate = false; ($hook = vBulletinHook::fetch_hook('group_inlinemod_authenticate_switch')) ? eval($hook) : false; } if ($inline_mod_authenticate and !inlinemod_authenticated()) { show_inline_mod_login(); } switch ($_POST['do']) { case 'inlinedelete': case 'inlineapprove': case 'inlineunapprove': case 'inlineundelete': if (empty($vbulletin->GPC['gmessagelist'])) { standard_error(fetch_error('you_did_not_select_any_valid_messages')); } if (count($vbulletin->GPC['gmessagelist']) > $itemlimit) { standard_error(fetch_error('you_are_limited_to_working_with_x_messages', $itemlimit)); } if ($vbulletin->GPC['userid']) { $userinfo = fetch_userinfo($vbulletin->GPC['userid'], 1);
case 'dodeletethreads': case 'domovethreads': case 'domergethreads': case 'dodeleteposts': case 'domergeposts': case 'domoveposts': case 'docopyposts': case 'spamconfirm': case 'dodeletespam': $inline_mod_authenticate = true; break; default: $inline_mod_authenticate = false; ($hook = vBulletinHook::fetch_hook('inlinemod_authenticate_switch')) ? eval($hook) : false; } if ($inline_mod_authenticate and !inlinemod_authenticated() and !VB_API) { show_inline_mod_login(false, true); } switch ($_POST['do']) { case 'mergethreadcompat': $vbulletin->input->clean_gpc('p', 'mergethreadurl', TYPE_STR); $mergethreadid = extract_threadid_from_url($vbulletin->GPC['mergethreadurl']); if (!$mergethreadid) { // Invalid URL eval(standard_error(fetch_error('mergebadurl'))); } $threadids = "{$threadid},{$mergethreadid}"; break; case 'open': case 'close': case 'stick':