case 'finish_moder': finish_moderate_pool($_GET['pool_id']); header("Location:index.php?page=pool_charts"); break; case 'finish_and_merge': $pool_id = $_GET['pool_id']; finish_moderate_pool($pool_id); begin_pool_merge($pool_id); header("Location:index.php?page=pool_charts"); break; case 'begin_merge': begin_pool_merge($_GET['pool_id']); header("Location:index.php?page=pool_charts"); break; default: $smarty->assign('moder_id', isset($GET['moder_id']) ? $_GET['moder_id'] : 0); $type = isset($_GET['type']) ? $_GET['type'] : 0; $smarty->assign('type', $type); if ($type == MA_POOLS_STATUS_FOUND_CANDIDATES) { $types = get_morph_pool_types($_GET['filter']); uasort($types, function ($a, $b) { return $a['found_samples'] < $b['found_samples'] ? 1 : -1; }); $smarty->assign('types', $types); $smarty->display('qa/pools_notready.tpl'); } else { $smarty->assign('pools', get_morph_pools_page($type, (int) $_GET['moder_id'], $_GET['filter'])); $smarty->display('qa/pools.tpl'); } } log_timing();
$smarty->display('qa/empty_books.tpl'); break; case 'dl_urls': $smarty->assign('urls', get_downloaded_urls()); $smarty->display('qa/dl_urls.tpl'); break; case 'book_tags': $smarty->assign('errata', get_tag_errors()); $smarty->display('qa/book_tags.tpl'); break; case 'merge_fails': $smarty->assign('data', get_merge_fails()); $smarty->display('qa/merge_fails.tpl'); break; case 'good_sentences': $smarty->assign('sentences', get_good_sentences(isset($_GET['no_zero']))); $smarty->display('qa/good_sentences.tpl'); break; case 'useful_pools': $smarty->assign('pools', get_most_useful_pools(isset($_GET['type']) ? $_GET['type'] : 0)); $smarty->assign('types', get_morph_pool_types()); $smarty->display('qa/useful_pools.tpl'); break; case 'unkn': $smarty->assign('tokens', get_unknowns()); $smarty->display('qa/unknowns.tpl'); break; default: header("Location:index.php"); } log_timing();