if ($tid) { $threads = $postIndexDB->getThreadsById($tid); } else { $threads = $postIndexDB->getThreadsByReplies($replies, $page); } } elseif ($action == "update") { InitGP(array('threads'), 'GP'); if (!is_array($threads)) { $threads = explode(',', $threads); } InitGP(array('step', 't_step'), 'GP'); !$step && ($step = 1); !$t_step && ($t_step = 1); $index = $step - 1; $total = count($threads); if ($total > $index) { $t_step = $postIndexDB->addPostIndex($threads[$index], $t_step); $next = $t_step ? $step : $step + 1; } if ($next) { $threads = implode(',', $threads); $j_url = "{$basename}&sub=y&action=update&step={$next}&t_step={$t_step}&threads={$threads}"; adminmsg('updatecache_total_step', EncodeUrl($j_url)); } else { $basename = "{$basename}&sub=y&action=search"; adminmsg("operate_success"); } } } include PrintEot('postindex'); exit;