0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
vtiger
/
5.0.4
/
standard
/
htdocs
/
include
/
php_writeexcel
/
[
Home
]
File: class.excel.php
<?PHP require_once "Excel/class.writeexcel_workbook.inc.php"; require_once "Excel/class.writeexcel_worksheet.inc.php"; require_once "Excel/functions.writeexcel_utility.inc.php"; class Excel_Workbook extends writeexcel_workbook { /** * The constructor. It just creates a Workbook * * @param string $filename The optional filename for the Workbook. * @return Spreadsheet_Excel_Writer_Workbook The Workbook created */ function Excel_Workbook($filename = '') { $this->_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 ('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">'); } else { header ('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'); } */ 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"); } } ?>