[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/services/ -> cacheview.php (source)

   1  <?php
   2  /**
   3   * $Horde: horde/services/cacheview.php,v 1.9.10.3 2006/01/01 21:29:10 jan Exp $
   4   *
   5   * Copyright 2002-2006 Chuck Hagenbuch <chuck@horde.org>
   6   *
   7   * See the enclosed file COPYING for license information (LGPL). If you
   8   * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
   9   */
  10  
  11  @define('HORDE_BASE', dirname(__FILE__) . '/..');
  12  require_once  HORDE_BASE . '/lib/base.php';
  13  require_once 'Horde/Cache.php';
  14  
  15  $cid = Util::getFormData('cid');
  16  if (empty($cid)) {
  17      exit;
  18  }
  19  
  20  $cache = &Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver']));
  21  $cdata = @unserialize($cache->get($cid, $conf['cache']['default_lifetime']));
  22  if (!$cdata) {
  23      exit;
  24  }
  25  
  26  $browser->downloadHeaders('cacheObject', $cdata['ctype'], true, strlen($cdata['data']));
  27  echo $cdata['data'];


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7