- Timestamp:
- Mar 8, 2010, 12:43:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r479 r524 8 8 9 9 function safe_site_url(){ 10 global $xoops_config ;10 global $xoops_config,$blog_id,$blogname; 11 11 12 12 if (is_xpress_index_page_call()){ … … 17 17 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 18 18 $guess_url = preg_replace('|/' . $module_name . '/.*|i', '/' . $module_name, $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); 19 $blog_sub_path = ''; 20 if (defined('MULTISITE') && MULTISITE){ 21 if ($blog_id > 1){ 22 $blog_path = '/cube_mu/modules/xpress3/toy/'; 23 $blog_sub_path = '/' .$blogname; 24 } 25 } 26 $guess_url .= $blog_sub_path; 19 27 20 if(strcmp($siteurl,$module_url ) !== 0) {28 if(strcmp($siteurl,$module_url.$blog_sub_path) !== 0) { 21 29 if (!@fclose(@fopen($siteurl . '/xoops_version.php', "r"))){ 22 update_option('siteurl' , $module_url );30 update_option('siteurl' , $module_url.$blog_sub_path); 23 31 } 24 32 } 25 33 26 if(strcmp($guess_ur ,$home) !== 0) {34 if(strcmp($guess_url,$home) !== 0) { 27 35 if (@fclose(@fopen($guess_url . '/xoops_version.php', "r"))){ 28 36 update_option('home' , $guess_url);
Note: See TracChangeset
for help on using the changeset viewer.