修复 验证码更新问题

This commit is contained in:
Comsenz 2017-08-01 09:15:01 +08:00
parent 5174f32834
commit 2a05c8f83d
1 changed files with 4 additions and 17 deletions

View File

@ -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 = '<br><br>友情提示:<br>为更好的降低论坛搜索时的数据压力,本次升级已经帮本站开通纵横搜索服务。<br>你可以在 <a href=\\\'../admin.php?frames=yes&action=cloud&operation=search\\\' target=\\\'_blank\\\'>站点后台-&gt;应用-&gt;纵横搜索 进行管理</a>。';