1<?php 2/** 3 * Copyright 2002-2017 Horde LLC (http://www.horde.org/) 4 * 5 * See the enclosed file COPYING for license information (LGPL-2). If you 6 * did not receive this file, see http://www.horde.org/licenses/lgpl. 7 * 8 * @author Chuck Hagenbuch <chuck@horde.org> 9 * @category Horde 10 * @license http://www.horde.org/licenses/lgpl LGPL-2 11 * @package Horde 12 */ 13 14require_once __DIR__ . '/../lib/Application.php'; 15Horde_Registry::appInit('horde', array('nologintasks' => true)); 16 17$cid = Horde_Util::getFormData('cid'); 18if (!strlen($cid)) { 19 exit; 20} 21 22$cdata = @unserialize($injector->getInstance('Horde_Cache')->get($cid, $conf['cache']['default_lifetime'])); 23if (!$cdata) { 24 exit; 25} 26 27$browser->downloadHeaders('cacheObject', $cdata['ctype'], true, strlen($cdata['data'])); 28echo $cdata['data']; 29