getConfig('wiki_list_pages') != 'y') { $gBitSmarty->assign('msg', KernelTools::tra("This feature is disabled")); $gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'display' )); die; } */ if (isset($_REQUEST['url'])) { $id = $wikilib->isUrlCached($_REQUEST['url']); if (!$id) { $gBitSmarty->assign('msg', KernelTools::tra("No cache information available")); $gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'display' ]); die; } $_REQUEST["cache_id"] = $id; } if (!isset($_REQUEST["cache_id"])) { $gBitSmarty->assign('msg', KernelTools::tra("No page indicated")); $gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'display' ]); 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"] . ""; } $gBitSmarty->assign('ggcacheurl', $ggcacheurl); $gBitSmarty->assign('info', $info); $gBitSystem->display( 'bitpackage:kernel/view_cache.tpl', null, [ 'display_mode' => 'display' ]);