| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:27:23 2008 ] | [ Legal Case 0.6.4b ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 This file is part of the Legal Case Management System (LCM). 5 (C) 2004-2005 Free Software Foundation, Inc. 6 7 This program is free software; you can redistribute it and/or modify it 8 under the terms of the GNU General Public License as published by the 9 Free Software Foundation; either version 2 of the License, or (at your 10 option) any later version. 11 12 This program is distributed in the hope that it will be useful, but 13 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 for more details. 16 17 You should have received a copy of the GNU General Public License along 18 with this program; if not, write to the Free Software Foundation, Inc., 19 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA 20 21 $Id: export.php,v 1.4 2005/04/28 01:06:32 antzi Exp $ 22 */ 23 24 include ('inc/inc_version.php'); 25 include_lcm('inc_auth'); 26 include_lcm('inc_filters'); 27 include_lcm('inc_impex'); 28 include_lcm('inc_xml'); 29 30 if ($GLOBALS['author_session']['status'] != 'admin') 31 lcm_panic("You don't have permission to export!"); 32 33 $item = clean_input($_REQUEST['item']); 34 if (!empty($_REQUEST['id'])) 35 $id = intval($_REQUEST['id']); 36 37 $data = array(); 38 switch ($item) { 39 case 'case' : 40 load_case($id, $data, _LOAD_ALL); 41 break; 42 case 'followup' : 43 $data = load_followup($id, $data, _LOAD_ALL); 44 break; 45 case 'client' : 46 $data = load_client($id, $data, _LOAD_ALL); 47 break; 48 case 'org' : 49 $data = load_org($id, $data, _LOAD_ALL); 50 break; 51 default : 52 lcm_panic("Incorrect export item type!"); 53 exit; 54 } 55 56 // Send proper headers to browser 57 header("Content-Type: text/xml"); 58 header("Content-Disposition: filename={$item}_{$id}.xml"); 59 header("Content-Description: " . "Export of {$item} ID{$id}"); 60 61 echo '<?xml version="1.0"?>' . "\n"; 62 echo xml_encode("{$item}_{$id}",$data); 63 64 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |