if ($next) { $j_url = "{$basename}&action=reset&step={$next}&s_step={$s_step}&tid={$tid}&page={$page}"; adminmsg('updatecache_total_step', EncodeUrl($j_url)); } else { $basename = "{$basename}&action=search&page={$page}"; adminmsg("operate_success"); } } elseif ($action == "delete") { InitGP(array('tids', 'step', 's_step'), 'GP'); !is_array($tids) && ($tids = explode(',', $tids)); !$step && ($step = 1); !$s_step && ($s_step = 1); $index = $step - 1; $total = count($tids); if ($total > $index) { $s_step = $postIndexDB->deletePostIndex($tids[$index], $s_step); $next = $s_step ? $step : $step + 1; } if ($next) { $tids = implode(',', $tids); $j_url = "{$basename}&action=delete&step={$next}&s_step={$s_step}&tids={$tids}"; adminmsg('updatecache_total_step', EncodeUrl($j_url)); } else { adminmsg("operate_success"); } } } else { InitGP(array('replies', 'page', 'tid'), 'GP'); if ($action == "search") { if ($tid) { $threads = $postIndexDB->getThreadsById($tid);