mirror of https://github.com/1099438829/apeblog
清理废弃代码
This commit is contained in:
parent
671abbab68
commit
b38f4e5bf9
|
|
@ -29,29 +29,17 @@ class SystemConfig extends AuthController
|
||||||
if ($tab_id < 5)
|
if ($tab_id < 5)
|
||||||
{
|
{
|
||||||
$system = cModel::getLstByTabId($tab_id);
|
$system = cModel::getLstByTabId($tab_id);
|
||||||
//特殊处理主题信息
|
//特殊处理主题信息,这里不允许修改主题信息
|
||||||
if ($tab_id == 1){
|
if ($tab_id == 1){
|
||||||
foreach ($system as &$form){
|
foreach ($system as $key=>&$form){
|
||||||
if ($form['form_name'] == 'web_template'){
|
if ($form['form_name'] == 'web_template'){
|
||||||
$templateDir = public_path('template');
|
unset($system[$key]);
|
||||||
$templateList = get_dir($templateDir);
|
|
||||||
if ($templateList){
|
|
||||||
$form['param'] = '';
|
|
||||||
foreach ($templateList as $value){
|
|
||||||
$form['param'] .= ($form['param']?"\n":'').$value .'=>'.$value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->assign("tab_id",$tab_id);
|
$this->assign("tab_id",$tab_id);
|
||||||
$this->assign("system",$system);
|
$this->assign("system",$system);
|
||||||
return $this->fetch();
|
return $this->fetch();
|
||||||
}else if ($tab_id == 38 || $tab_id == 39)
|
|
||||||
{
|
|
||||||
$this->assign("tab_id",$tab_id);
|
|
||||||
$this->assign("system",cModel::getLstByTabId($tab_id));
|
|
||||||
return $this->fetch("pay");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -73,36 +61,6 @@ class SystemConfig extends AuthController
|
||||||
return $this->fetch();
|
return $this->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 上传配置
|
|
||||||
* @return string
|
|
||||||
* @throws \Exception
|
|
||||||
*/
|
|
||||||
public function upload()
|
|
||||||
{
|
|
||||||
return $this->fetch();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 短信配置
|
|
||||||
* @return string
|
|
||||||
* @throws \Exception
|
|
||||||
*/
|
|
||||||
public function sms()
|
|
||||||
{
|
|
||||||
return $this->fetch();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*邮件配置
|
|
||||||
* @return string
|
|
||||||
* @throws \Exception
|
|
||||||
*/
|
|
||||||
public function email()
|
|
||||||
{
|
|
||||||
return $this->fetch();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表
|
* 列表
|
||||||
* @param int $tab_id
|
* @param int $tab_id
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<ul class="nav nav-tabs page-tabs">
|
<ul class="nav nav-tabs page-tabs">
|
||||||
<li {eq name="tab_id" value="1"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=1">基本</a></li>
|
<li {eq name="tab_id" value="1"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=1">基本</a></li>
|
||||||
<li {eq name="tab_id" value="2"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=2">上传</a></li>
|
<!-- <li {eq name="tab_id" value="2"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=2">上传</a></li>-->
|
||||||
<li {eq name="tab_id" value="3"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=3">短信</a></li>
|
<!-- <li {eq name="tab_id" value="3"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=3">短信</a></li>-->
|
||||||
<li {eq name="tab_id" value="4"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=4">邮件</a></li>
|
<!-- <li {eq name="tab_id" value="4"}class="active"{/eq}><a href="/admin/system_config/base?tab_id=4">邮件</a></li>-->
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active">
|
<div class="tab-pane active">
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
'listen' => [
|
'listen' => [
|
||||||
'AdminLog' => [], // 操作日志记录
|
'AppInit' => [],
|
||||||
|
'HttpRun' => [],
|
||||||
|
'HttpEnd' => [],
|
||||||
|
'LogLevel' => [],
|
||||||
|
'LogWrite' => [],
|
||||||
],
|
],
|
||||||
|
|
||||||
'subscribe' => [
|
'subscribe' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue