summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71f20c0)
raw | patch | inline | side by side (parent: 71f20c0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 May 2008 07:01:34 +0000 (07:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 May 2008 07:01:34 +0000 (07:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10840 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history | |
gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php | patch | blob | history |
index 736db99cf295c868f0089ad5ae7d1cded0446568..0b7b0cedbb3ccc8cec4f0edb4e5f42914c116595 100644 (file)
define ("CONFIG_DIR", "/etc/gosa");
define ("CONFIG_FILE", "gosa.conf");
define ("CONFIG_TEMPLATE_DIR", "../contrib/");
+define ("CACHE_DIR","/var/cache/gosa/tmp");
/* Define get_list flags */
define("GL_NONE", 0);
diff --git a/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php b/gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php
index cdaac1557224f63c56876113e14c5f154b4073c8..634f93638a86b6ba94a884c1a6fbf50c0a017ef9 100644 (file)
function _store_OLE_file() {
## ABR
if ($this->_tmpfilename != '') {
- $OLE = new writeexcel_olewriter('/tmp/'.$this->_tmpfilename);
- $OLE->_OLEtmpfilename = '/tmp/'.$this->_tmpfilename;
+ $OLE = new writeexcel_olewriter(CACHE_DIR.'/tmp/'.$this->_tmpfilename);
+ $OLE->_OLEtmpfilename = CACHE_DIR.$this->_tmpfilename;
} else {
$OLE = new writeexcel_olewriter($this->_filename);
$OLE->_OLEtmpfilename = '';