-elseif (isset($_GET['xml']))
-{
- $filename = $_GET['filename'];
- $unique_name = preg_replace('/[^0-9a-z.]/i', '', $_GET['unique']);
- $path = company_path(). '/pdf_files/';
- header("content-type: text/xml");
- header("Content-Disposition: attachment; filename=$filename");
- header("Expires: 0");
- header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
- header("Pragma: public");
- echo file_get_contents($path.$unique_name);
- exit();
-}
-