getPostOrGetSanitize('rowsPerPage')); $subpage = $abj404dao->getPostOrGetSanitize('subpage'); $nonce = $abj404dao->getPostOrGetSanitize('nonce'); wp_verify_nonce($nonce); // update the perpage option $abj404logic->updatePerPageOption($rowsPerPage); $data = array(); $data['paginationLinksTop'] = $abj404view->getPaginationLinks($subpage); $data['paginationLinksBottom'] = $abj404view->getPaginationLinks($subpage, false); if ($subpage == 'abj404_redirects') { $data['table'] = $abj404view->getAdminRedirectsPageTable($subpage); } else if ($subpage == 'abj404_captured') { $data['table'] = $abj404view->getCapturedURLSPageTable($subpage); } else if ($subpage == 'abj404_logs') { $data['table'] = $abj404view->getAdminLogsPageTable($subpage); } else { $data['table'] = 'Error: Unexpected subpage requested.'; } header('Content-type: application/json; charset=UTF-8'); header('Content-Encoding: gzip'); echo gzencode(json_encode($data)); exit; } } ABJ_404_Solution_ViewUpdater::init();