- Timestamp:
- Dec 3, 2009, 3:38:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r454 r475 14 14 $home = get_option('home'); 15 15 $module_url = $xoops_config->module_url; 16 $guess_url = wp_guess_url(); 17 $guess_url = preg_replace('/\/$/','',$guess_url); 18 19 if($siteurl != $module_url) { 16 $module_name = $xoops_config->module_name; 17 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 18 $guess_url = preg_replace('|/' . $module_name . '/.*|i', '/' . $module_name, $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); 19 20 if(strcmp($siteurl,$module_url) !== 0) { 20 21 if (!@fclose(@fopen($siteurl . '/xoops_version.php', "r"))){ 21 22 update_option('siteurl' , $module_url); 22 23 } 23 24 } 24 25 if( $guess_url != $home) {26 if ( !@fclose(@fopen($home. '/xoops_version.php', "r"))){25 26 if(strcmp($guess_ur,$home) !== 0) { 27 if (@fclose(@fopen($guess_url . '/xoops_version.php', "r"))){ 27 28 update_option('home' , $guess_url); 28 29 }
Note: See TracChangeset
for help on using the changeset viewer.