check_permission('tiki_p_admin'); if (isset($_REQUEST["remove"])) { $access->check_authenticity(); $tikilib->remove_cache($_REQUEST["remove"]); } if (isset($_REQUEST["refresh"])) { check_ticket('list-cache'); $tikilib->refresh_cache($_REQUEST["refresh"]); } // This script can receive the threshold // for the information as the number of // days to get in the log 1,3,4,etc // it will default to 1 recovering information for today if (! isset($_REQUEST["sort_mode"])) { $sort_mode = 'url_desc'; } else { $sort_mode = $_REQUEST["sort_mode"]; } $smarty->assign_by_ref('sort_mode', $sort_mode); if (! isset($_REQUEST["offset"])) { $offset = 0; } else { $offset = $_REQUEST["offset"]; } $smarty->assign_by_ref('offset', $offset); if (! isset($_REQUEST["find"])) { $find = ''; } else { $find = $_REQUEST["find"]; } $smarty->assign('find', $find); // Get a list of last changes to the Wiki database $listpages = $tikilib->list_cache($offset, $maxRecords, $sort_mode, $find); $smarty->assign_by_ref('cant_pages', $listpages["cant"]); $smarty->assign_by_ref('listpages', $listpages["data"]); ask_ticket('list-cache'); // Display the template $smarty->assign('mid', 'tiki-list_cache.tpl'); $smarty->display("tiki.tpl");