| Source for file view_cache.phpDocumentation is available at view_cache.php 
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.// All Rights Reserved. See below for details and a complete list of authors.// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.require_once( '../kernel/setup_inc.php' );require_once( WIKI_PKG_PATH.'BitPage.php' );if($gBitSystem->getConfig('wiki_list_pages') != 'y') {  $gBitSmarty->assign('msg',tra("This feature is disabled"));  $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' ));if (isset($_REQUEST['url'])) {    $id = $wikilib->isUrlCached($_REQUEST['url']);        $gBitSmarty->assign('msg', tra("No cache information available"));        $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' ));    $_REQUEST["cache_id"] = $id;if (!isset($_REQUEST["cache_id"])) {    $gBitSmarty->assign('msg', tra("No page indicated"));    $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' ));// 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 textif (substr($info["url"], -4, 4) == ".txt") {    $info["data"] = "<pre>" . $info["data"] . "</pre>";$gBitSmarty->assign('ggcacheurl', $ggcacheurl);$gBitSmarty->assign_by_ref('info', $info);$gBitSystem->display( 'bitpackage:kernel/view_cache.tpl', NULL, array( 'display_mode' => 'display' )); |