Changeset 524
- Timestamp:
- Mar 8, 2010, 12:43:53 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 3 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); -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r490 r524 14 14 15 15 return $xoops_config->is_wpmu; 16 } 17 18 function xpress_is_multiblog() { 19 global $xoops_config; 20 21 if (defined('MULTISITE')) return MULTISITE; 22 return $xoops_config->multiblog; 16 23 } 17 24 -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/header.php
r289 r524 42 42 <div class="xpress-operation-link"> 43 43 <?php 44 if(xpress_is_ wpmu()){44 if(xpress_is_multiblog()){ 45 45 $blog_details = get_blog_details(1); 46 46 $site_url = $blog_details->siteurl;
Note: See TracChangeset
for help on using the changeset viewer.