| 1 |
<?php
|
| 2 |
|
| 3 |
// $Header: /cvsroot/tikiwiki/tiki/tiki-view_eph.php,v 1.3.2.1 2005/01/01 00:11:27 damosoft Exp $
|
| 4 |
|
| 5 |
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
|
| 6 |
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
|
| 7 |
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
|
| 8 |
|
| 9 |
// Initialization
|
| 10 |
require_once ('tiki-setup.php');
|
| 11 |
|
| 12 |
include_once ('lib/ephemerides/ephlib.php');
|
| 13 |
|
| 14 |
if (!isset($_REQUEST["ephId"])) {
|
| 15 |
die;
|
| 16 |
}
|
| 17 |
|
| 18 |
$info = $ephlib->get_eph($_REQUEST["ephId"]);
|
| 19 |
$type = &$info["filetype"];
|
| 20 |
$file = &$info["filename"];
|
| 21 |
$content = &$info["data"];
|
| 22 |
|
| 23 |
header ("Content-type: $type");
|
| 24 |
header ("Content-Disposition: inline; filename=$file");
|
| 25 |
echo "$content";
|
| 26 |
|
| 27 |
?>
|