function BuildNewTagged($tags, $callback = null) { global $DB, $C; $GLOBALS['_build_type'] = BT_BUILD_WITH_NEW; $pages = array(); $pages =& $DB->FetchAll('SELECT `page_id` FROM `tx_pages` WHERE MATCH(`tags`) AGAINST (? IN BOOLEAN MODE) ORDER BY `build_order`', array($tags)); BuildPages($pages, $callback); }
function tlxPageBuild() { global $json, $DB; VerifyAdministrator(TRUE); BuildPages(); echo $json->encode(array('status' => JSON_SUCCESS, 'message' => 'Your ranking pages are being rebuilt; this may take a few minutes to complete')); }