云平台功能删除
This commit is contained in:
parent
1adf3d84fe
commit
2e9ada8ca4
|
@ -2060,8 +2060,7 @@ EOT;
|
|||
showtableheader();
|
||||
} elseif($operation == 'search') {
|
||||
|
||||
$setting['search'] = dunserialize($setting['search']);
|
||||
$appService = Cloud::loadClass('Service_App');
|
||||
$setting['search'] = dunserialize($setting['search']);
|
||||
showtableheader('setting_search_status', 'fixpadding');
|
||||
showsubtitle(array('setting_search_onoff', 'search_item_name', 'setting_serveropti_searchctrl', 'setting_serveropti_maxspm', 'setting_serveropti_maxsearchresults'));
|
||||
if(helper_access::check_module('portal')) {
|
||||
|
@ -2072,16 +2071,15 @@ EOT;
|
|||
'<input type="text" class="txt" name="settingnew[search][portal][maxspm]" value="'.$setting['search']['portal']['maxspm'].'" />',
|
||||
'<input type="text" class="txt" name="settingnew[search][portal][maxsearchresults]" value="'.$setting['search']['portal']['maxsearchresults'].'" />',
|
||||
);
|
||||
}
|
||||
if(!$appService->getCloudAppStatus('search')) {
|
||||
$search_forum = array(
|
||||
$setting['search']['forum']['status'] ? '<input type="checkbox" class="checkbox" name="settingnew[search][forum][status]" value="1" checked="checked" />' : '<input type="checkbox" class="checkbox" name="settingnew[search][forum][status]" value="1" />',
|
||||
cplang('setting_search_status_forum'),
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][searchctrl]" value="'.$setting['search']['forum']['searchctrl'].'" />',
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][maxspm]" value="'.$setting['search']['forum']['maxspm'].'" />',
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][maxsearchresults]" value="'.$setting['search']['forum']['maxsearchresults'].'" />',
|
||||
);
|
||||
}
|
||||
}
|
||||
$search_forum = array(
|
||||
$setting['search']['forum']['status'] ? '<input type="checkbox" class="checkbox" name="settingnew[search][forum][status]" value="1" checked="checked" />' : '<input type="checkbox" class="checkbox" name="settingnew[search][forum][status]" value="1" />',
|
||||
cplang('setting_search_status_forum'),
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][searchctrl]" value="'.$setting['search']['forum']['searchctrl'].'" />',
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][maxspm]" value="'.$setting['search']['forum']['maxspm'].'" />',
|
||||
'<input type="text" class="txt" name="settingnew[search][forum][maxsearchresults]" value="'.$setting['search']['forum']['maxsearchresults'].'" />',
|
||||
);
|
||||
|
||||
if(helper_access::check_module('blog')) {
|
||||
$search_blog = array(
|
||||
$setting['search']['blog']['status'] ? '<input type="checkbox" class="checkbox" name="settingnew[search][blog][status]" value="1" checked="checked" />' : '<input type="checkbox" class="checkbox" name="settingnew[search][blog][status]" value="1" />',
|
||||
|
@ -2125,34 +2123,29 @@ EOT;
|
|||
showtablerow('', '', $search_group);
|
||||
showtablerow('', '', $search_collection);
|
||||
showtablefooter();
|
||||
|
||||
showtableheader('setting_search_srchhotkeywords');
|
||||
showsetting('setting_search_srchhotkeywords', 'settingnew[srchhotkeywords]', $setting['srchhotkeywords'], 'textarea');
|
||||
|
||||
showtablefooter();
|
||||
|
||||
if (!$appService->getCloudAppStatus('search')) {
|
||||
showtableheader('setting_search_srchhotkeywords');
|
||||
showsetting('setting_search_srchhotkeywords', 'settingnew[srchhotkeywords]', $setting['srchhotkeywords'], 'textarea');
|
||||
|
||||
showtablefooter();
|
||||
|
||||
showtableheader('settings_sphinx', 'fixpadding');
|
||||
showsetting('settings_sphinx_sphinxon', 'settingnew[sphinxon]', $setting['sphinxon'], 'radio');
|
||||
showsetting('settings_sphinx_sphinxhost', 'settingnew[sphinxhost]', $setting['sphinxhost'], 'text');
|
||||
showsetting('settings_sphinx_sphinxport', 'settingnew[sphinxport]', $setting['sphinxport'], 'text');
|
||||
showsetting('settings_sphinx_sphinxsubindex', 'settingnew[sphinxsubindex]', $setting['sphinxsubindex'], 'text');
|
||||
showsetting('settings_sphinx_sphinxmsgindex', 'settingnew[sphinxmsgindex]', $setting['sphinxmsgindex'], 'text');
|
||||
showsetting('settings_sphinx_sphinxmaxquerytime', 'settingnew[sphinxmaxquerytime]', $setting['sphinxmaxquerytime'], 'text');
|
||||
showsetting('settings_sphinx_sphinxlimit', 'settingnew[sphinxlimit]', $setting['sphinxlimit'], 'text');
|
||||
$spx_ranks = array('SPH_RANK_PROXIMITY_BM25', 'SPH_RANK_BM25', 'SPH_RANK_NONE');
|
||||
$selectspxrank = '';
|
||||
$selectspxrank = '<select name="settingnew[sphinxrank]">';
|
||||
foreach($spx_ranks as $spx_rank) {
|
||||
$selectspxrank.= '<option value="'.$spx_rank.'"'.($spx_rank == $setting['sphinxrank'] ? 'selected="selected"' : '').'>'.$spx_rank.'</option>';
|
||||
}
|
||||
$selectspxrank .='</select>';
|
||||
showsetting('settings_sphinx_sphinxrank', '', '', $selectspxrank);
|
||||
showtablefooter();
|
||||
} else {
|
||||
showtablerow('', 'colspan="10" class="lineheight"', $lang['setting_search_srchhotkeywords_disabled']);
|
||||
showtableheader('settings_sphinx', 'fixpadding');
|
||||
showsetting('settings_sphinx_sphinxon', 'settingnew[sphinxon]', $setting['sphinxon'], 'radio');
|
||||
showsetting('settings_sphinx_sphinxhost', 'settingnew[sphinxhost]', $setting['sphinxhost'], 'text');
|
||||
showsetting('settings_sphinx_sphinxport', 'settingnew[sphinxport]', $setting['sphinxport'], 'text');
|
||||
showsetting('settings_sphinx_sphinxsubindex', 'settingnew[sphinxsubindex]', $setting['sphinxsubindex'], 'text');
|
||||
showsetting('settings_sphinx_sphinxmsgindex', 'settingnew[sphinxmsgindex]', $setting['sphinxmsgindex'], 'text');
|
||||
showsetting('settings_sphinx_sphinxmaxquerytime', 'settingnew[sphinxmaxquerytime]', $setting['sphinxmaxquerytime'], 'text');
|
||||
showsetting('settings_sphinx_sphinxlimit', 'settingnew[sphinxlimit]', $setting['sphinxlimit'], 'text');
|
||||
$spx_ranks = array('SPH_RANK_PROXIMITY_BM25', 'SPH_RANK_BM25', 'SPH_RANK_NONE');
|
||||
$selectspxrank = '';
|
||||
$selectspxrank = '<select name="settingnew[sphinxrank]">';
|
||||
foreach($spx_ranks as $spx_rank) {
|
||||
$selectspxrank.= '<option value="'.$spx_rank.'"'.($spx_rank == $setting['sphinxrank'] ? 'selected="selected"' : '').'>'.$spx_rank.'</option>';
|
||||
}
|
||||
$selectspxrank .='</select>';
|
||||
showsetting('settings_sphinx_sphinxrank', '', '', $selectspxrank);
|
||||
showtablefooter();
|
||||
showtableheader();
|
||||
|
||||
} elseif($operation == 'uc' && $isfounder) {
|
||||
|
@ -3207,15 +3200,7 @@ EOT;
|
|||
unset($settingnew['allowfloatwin']);
|
||||
}
|
||||
|
||||
if($operation == 'search') {
|
||||
$appService = Cloud::loadClass('Service_App');
|
||||
if($appService->getCloudAppStatus('search')) {
|
||||
$setting['search'] = dunserialize($setting['search']);
|
||||
$settingnew['search']['forum']['status'] = 1;
|
||||
$settingnew['search']['forum']['searchctrl'] = $setting['search']['forum']['searchctrl'];
|
||||
$settingnew['search']['forum']['maxspm'] = $setting['search']['forum']['maxspm'];
|
||||
$settingnew['search']['forum']['maxsearchresults'] = $setting['search']['forum']['maxsearchresults'];
|
||||
}
|
||||
if($operation == 'search') {
|
||||
foreach($settingnew['search'] as $key => $val) {
|
||||
foreach($val as $k => $v) {
|
||||
$settingnew['search'][$key][$k] = max(0, intval($v));
|
||||
|
|
Loading…
Reference in New Issue