Code

Replaced /tmp with "CACHE_DIR" constant
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 07:01:34 +0000 (07:01 +0000)
committerhickert <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
gosa-core/include/utils/excel/class.writeexcel_workbook.inc.php

index 736db99cf295c868f0089ad5ae7d1cded0446568..0b7b0cedbb3ccc8cec4f0edb4e5f42914c116595 100644 (file)
@@ -24,6 +24,7 @@
 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);
index cdaac1557224f63c56876113e14c5f154b4073c8..634f93638a86b6ba94a884c1a6fbf50c0a017ef9 100644 (file)
@@ -482,8 +482,8 @@ function _store_workbook() {
 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 = '';