Changeset 454 for trunk/xpressme_integration_kit/include
- Timestamp:
- Nov 24, 2009, 3:49:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r430 r454 5 5 if (is_object($wptouch_plugin)) return $wptouch_plugin->applemobile; 6 6 return false; 7 } 8 9 function safe_site_url(){ 10 global $xoops_config; 11 12 if (is_xpress_index_page_call()){ 13 $siteurl = get_option('siteurl'); 14 $home = get_option('home'); 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) { 20 if (!@fclose(@fopen($siteurl . '/xoops_version.php', "r"))){ 21 update_option('siteurl' , $module_url); 22 } 23 } 24 25 if($guess_url != $home) { 26 if (!@fclose(@fopen($home . '/xoops_version.php', "r"))){ 27 update_option('home' , $guess_url); 28 } 29 } 30 } 7 31 } 8 32 … … 16 40 unset($offset); 17 41 require_once(ABSPATH.'wp-settings.php'); 42 43 safe_site_url(); 44 18 45 if (!is_object($xoopsUser)){ // before login auth cookie clear 19 46 wp_logout();
Note: See TracChangeset
for help on using the changeset viewer.