_filename = $filename; $this->writeexcel_workbook($filename); } /** * Send HTTP headers for the Excel file. * * @param string $filename The filename to use for HTTP headers * @access public */ function send($filename) { // attachment global $pref_lang; $this->_tmpfilename = $filename; /* if ($pref_lang == "ru") { header (''); } else { header (''); } */ header("Content-type: application/x-msexcel"); header("Content-Disposition: inline; filename=$filename"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Pragma: public"); } } ?>