1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80 foldmethod=marker:
2 -------------------------------------------------------------------------------
5 -------------------------------------------------------------------------------
6 This file is part of YATTA!.
8 YATTA! is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 YATTA! is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: jue nov 27 18:58:19 ART 2003
22 Autor: Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
28 require_once 'HTML/Table.php';
29 require_once 'MECON/HTML/Tabla.php';
30 require_once 'MECON/HTML/Image.php';
31 require_once 'MECON/HTML/Link.php';
34 //TODO Este path es el del tacho segun el usuario, etc.
35 $path = '/var/www/sistemas/yatta/test/'. $_SESSION['usuario'];
37 //Actuar segun la accion, etc {{{
38 $accion = @$_REQUEST['accion'];
39 $archivo = @$_REQUEST['archivo'];
40 if (@$accion && @$archivo) {
41 $archivo2 = $path.'/'.$archivo;
44 header("Content-Disposition: attachment; filename=".$archivo);
45 header("Pragma: no-cache");
47 header("Content-Type: application");
48 header("Content-Length: ".filesize($archivo2));