break; case $LANG_ADMIN['delete']: case 'delete': if (SEC_checkToken()) { $display .= handleDelete($formtype); // moved to function for readibility } else { $display .= COM_refresh($_CONF['site_url'] . '/index.php'); } break; case 'view': $display .= handleView(true); // moved to function for readibility break; case 'display': $display .= handleView(false); // moved to function for readibility break; case 'report': $display .= COM_siteHeader('menu', $LANG03[27]) . CMT_reportAbusiveComment(COM_applyFilter($_GET['cid'], true), COM_applyFilter($_GET['type'])) . COM_siteFooter(); break; case 'sendreport': if (SEC_checkToken()) { $display .= CMT_sendReport(COM_applyFilter($_POST['cid'], true), COM_applyFilter($_POST['type'])); } else { $display .= COM_refresh($_CONF['site_url'] . '/index.php'); } break; case 'editsubmission': if (!SEC_hasRights('comment.moderate')) { $display .= COM_refresh($_CONF['site_url'] . '/index.php');
} else { $type = ''; } $pageBody .= CMT_sendReport(COM_sanitizeID(COM_applyFilter($_POST['cid'], true)), $type); } else { echo COM_refresh($_CONF['site_url'] . '/index.php'); exit; } } else { // finished with button checks, now look at $_GET items... switch ($mode) { case 'view': $pageBody .= handleView(true); break; case 'display': $pageBody .= handleView(false); break; case 'report': if (isset($_POST['type'])) { $type = $_POST['type']; if ($type != 'article') { if (!in_array($type, $_PLUGINS)) { $type = 'article'; } } } else { $type = ''; } $pageTitle = $LANG03[27]; $pageBody .= CMT_reportAbusiveComment(COM_applyFilter($_GET['cid'], true), $type); break;