- Timestamp:
- Sep 17, 2010, 11:13:52 AM (14 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/config_from_xoops.class.php
r614 r657 20 20 var $xoops_url; 21 21 var $xoops_trust_path; 22 var $xoops_cache_path; 22 23 var $xoops_db_prefix; 23 24 var $xoops_db_name; … … 101 102 $this->xoops_time_zone = date_default_timezone_get(); 102 103 } 104 $this->_get_cache_path(); 103 105 } 104 106 … … 253 255 if(defined('XOOPS_SALT')) $this->xoops_salt = XOOPS_SALT; else $this->xoops_salt = ''; 254 256 } // end of if file_exists 255 } 257 } 258 259 // call after the $this->xoops_trust_path is set 260 function _get_cache_path(){ 261 $cache_path = $this->xoops_trust_path . '/cache'; 262 if (file_exists($cache_path) && is_writable($cache_path)){ 263 $this->xoops_cache_path = $cache_path; 264 return; 265 } 266 $this->xoops_cache_path = $this->xoops_root_path . '/cache'; 267 } 256 268 257 269 function get_xoops_mainfile_path(){ -
trunk/xpressme_integration_kit/include/xpress_block_render.php
r656 r657 122 122 { 123 123 global $xoops_config; 124 if(defined('XOOPS_ROOT_PATH')){ 125 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 126 } else { 127 $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 128 } 124 125 $cache_dir = $xoops_config->xoops_cache_path . '/'; 129 126 $xml_name = $block_name . '.xml'; 130 127 … … 280 277 $pattern = '(' . $pattern . ')'; 281 278 282 $cache_dir = $xoops_config->xoops_ root_path . '/cache/';279 $cache_dir = $xoops_config->xoops_cache_path . '/'; 283 280 $cache_time = 0; 284 281 if ($dh = opendir($cache_dir)) { -
trunk/xpressme_integration_kit/include/xpress_cache.php
r96 r657 18 18 { 19 19 global $xoops_config; 20 if(defined('XOOPS_ROOT_PATH')){ 21 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 22 } else { 23 $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 24 } 20 21 $cache_dir = $xoops_config->xoops_cache_path . '/'; 25 22 $filename = $cache_dir .$mydirname . '_' . $collation_key; 26 23 if (xpress_cache_found($filename)) { … … 36 33 { 37 34 global $xoops_config; 38 $cache_dir = $xoops_config->xoops_ root_path . '/cache/';35 $cache_dir = $xoops_config->xoops_cache_path . '/'; 39 36 $cache_time = 0; 40 37 … … 53 50 { 54 51 global $xoops_config; 55 $cache_dir = $xoops_config->xoops_ root_path . '/cache/';52 $cache_dir = $xoops_config->xoops_cache_path . '/'; 56 53 $cache_time = 0; 57 54 if ($dh = opendir($cache_dir)) {
Note: See TracChangeset
for help on using the changeset viewer.