- Timestamp:
- Mar 9, 2010, 10:47:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/config_from_xoops.class.php
r492 r531 37 37 var $is_impress; 38 38 var $impress_db_config_file; 39 var $is_wpmu;40 var $mu_domain_current_site;41 var $mu_path_current_site;42 39 var $wp_db_version; 43 40 var $wp_version; … … 104 101 $this->set_module_version(); 105 102 $this->set_wp_version(); 106 $this->set_mu_current_site();107 103 $this->xpress_get_module_id(); 108 104 $this->xoops_language = $this->xpress_get_xoops_config('language'); … … 292 288 include dirname(dirname(__FILE__)) . '/wp-includes/version.php'; 293 289 294 if (empty($wpmu_version))295 $this->is_wpmu = false;296 else297 $this->is_wpmu = true;298 299 290 $this->wp_db_version = $wp_db_version; 300 291 … … 309 300 } 310 301 311 function set_mu_current_site(){312 $pattern = 'http:\/\/([^\/]*).*';313 if (preg_match('/' . $pattern . '/' ,$this->xoops_url,$matchs)){314 $this->mu_domain_current_site = $matchs[1];315 }316 317 $pattern = 'http:\/\/[^\/]*(\/.*)';318 if (preg_match('/' . $pattern . '/' ,$this->module_url,$matchs)){319 $this->mu_path_current_site = $matchs[1] . '/';320 }321 }322 323 302 function xpress_get_xoops_config($config_name = '',$mid = 0){ 324 303 $ret = '';
Note: See TracChangeset
for help on using the changeset viewer.