diff --git a/utility/update.php b/utility/update.php index be18c37..eadad14 100644 --- a/utility/update.php +++ b/utility/update.php @@ -425,8 +425,8 @@ if($_GET['step'] == 'start') { } if(isset($settings['thumbsource']) && !$settings['sourcewidth'] && !$settings['sourceheight']) { - $newsettings['sourcewidth'] = $setting['thumbwidth']; - $newsettings['sourceheight'] = $setting['thumbheight']; + $newsettings['sourcewidth'] = $settings['thumbwidth']; + $newsettings['sourceheight'] = $settings['thumbheight']; } if(empty($settings['my_siteid']) && !empty($settings['connectsiteid'])) { @@ -752,7 +752,7 @@ if($_GET['step'] == 'start') { $newsettings['seccodestatus'] = $seccodecheck; } } - $seccodedata = dunserialize($setting['seccodedata']); + $seccodedata = dunserialize($settings['seccodedata']); if(!$seccodedata['rule']) { $seccodestatuss = sprintf('%05b', $seccodecheck); $seccodedata['rule']['register']['allow'] = $seccodestatuss{4}; @@ -760,6 +760,7 @@ if($_GET['step'] == 'start') { $seccodedata['rule']['post']['allow'] = $seccodestatuss{2}; $seccodedata['rule']['password']['allow'] = $seccodestatuss{1}; $seccodedata['rule']['card']['allow'] = $seccodestatuss{0}; + $seccodedata['seccodedata']['type'] = intval($seccodedata['seccodedata']['type']); $newsettings['seccodedata'] = serialize($seccodedata); } if(!isset($settings['collectionteamworkernum'])) { @@ -1891,20 +1892,6 @@ if($_GET['step'] == 'start') { show_msg("默认风格已恢复,进入下一步", "$theurl?step=cache"); } elseif ($_GET['step'] == 'cache') { - $appService = Cloud::loadClass('Service_App'); - try { - $cloudstatus = $appService->checkCloudStatus(); - } catch (Exception $e) { - } - $result = false; - if($cloudstatus == 'cloud' && !$appService->getCloudAppStatus('search')) { - try{ - $cloudAppService = Cloud::loadClass('Service_Client_Cloud'); - $result = $cloudAppService->appOpen(); - } catch(Exception $e) { - } - } - if($result == true) { $opensoso = '

友情提示:
为更好的降低论坛搜索时的数据压力,本次升级已经帮本站开通纵横搜索服务。
你可以在 站点后台->应用->纵横搜索 进行管理。';