getPreference('feature_listPages') != 'y') { $smarty->assign('msg',tra("This feature is disabled")); $gBitSystem->display( 'error.tpl' ); die; } */ if (isset($_REQUEST['url'])) { $id = $wikilib->isCached($_REQUEST['url']); if (!$id) { $smarty->assign('msg', tra("No cache information available")); $gBitSystem->display( 'error.tpl' ); die; } $_REQUEST["cache_id"] = $id; } if (!isset($_REQUEST["cache_id"])) { $smarty->assign('msg', tra("No page indicated")); $gBitSystem->display( 'error.tpl' ); die; } // Get a list of last changes to the Wiki database $info = $gBitSystem->get_cache($_REQUEST["cache_id"]); $ggcacheurl = 'http://google.com/search?q=cache:'.urlencode(strstr($info['url'],'http://')); // test if url ends with .txt : formatting for text if (substr($info["url"], -4, 4) == ".txt") { $info["data"] = "
" . $info["data"] . "
"; } $smarty->assign('ggcacheurl', $ggcacheurl); $smarty->assign_by_ref('info', $info); $gBitSystem->display( 'bitpackage:kernel/view_cache.tpl'); $smarty->display('bitpackage:kernel/view_cache.tpl'); ?>