/[pkg-tikiwiki]/trunk/tiki-view_eph.php
ViewVC logotype

Contents of /trunk/tiki-view_eph.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download)
Tue Jul 11 06:27:24 2006 UTC (6 years, 10 months ago) by marcusb-guest
File size: 742 byte(s)
Imported into trunk (integration branch).
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.5