applemobile; return false; } function safe_site_url(){ global $xoops_config,$blog_id,$blogname; if (is_xpress_index_page_call()){ if (!empty($_POST['submit_url_change'])) { if (!empty($_POST['site_url_set'])) { update_option('siteurl' , $_POST['site_url_set']); } if (!empty($_POST['home_url_set'])) { update_option('home' , $_POST['home_url_set']); } } $siteurl = get_option('siteurl'); $home = get_option('home'); $module_url = $xoops_config->module_url; $module_name = $xoops_config->module_name; $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; $guess_url = preg_replace('|/' . $module_name . '/.*|i', '/' . $module_name, $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $blog_sub_path = ''; if(function_exists('is_multisite') && is_multisite()){ if ($blog_id > 1){ $blog_sub_path = '/' .$blogname; } } $guess_url .= $blog_sub_path; $xoops_module_url = $module_url.$blog_sub_path; $site_url_error = false; if(strcmp($siteurl,$guess_url) !== 0) { if (!@fclose(@fopen($siteurl . '/xoops_version.php', "r"))){ $site_url_error = true; } } $home_url_error = false; if(strcmp($guess_url,$home) !== 0) { $home_url_error = true; } if ($site_url_error || $home_url_error){ include $xoops_config->xoops_root_path ."/header.php"; $form = '