移除行为日志模块
This commit is contained in:
@@ -1 +1 @@
|
|||||||
APP_DEBUG = false
|
APP_DEBUG = false
|
||||||
@@ -17,37 +17,37 @@ use \think\facade\Db;
|
|||||||
|
|
||||||
class Plugin extends \sent\Addons{
|
class Plugin extends \sent\Addons{
|
||||||
|
|
||||||
public $info = array(
|
public $info = array(
|
||||||
'name'=>'Sitestat',
|
'name'=>'Sitestat',
|
||||||
'title'=>'站点统计信息',
|
'title'=>'站点统计信息',
|
||||||
'description'=>'统计站点的基础信息',
|
'description'=>'统计站点的基础信息',
|
||||||
'status'=>1,
|
'status'=>1,
|
||||||
'author'=>'molong',
|
'author'=>'molong',
|
||||||
'version'=>'0.2'
|
'version'=>'0.2'
|
||||||
);
|
);
|
||||||
|
|
||||||
public function install(){
|
public function install(){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uninstall(){
|
public function uninstall(){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//实现的AdminIndex钩子方法
|
//实现的AdminIndex钩子方法
|
||||||
public function AdminIndex($param){
|
public function AdminIndex($param){
|
||||||
$config = $this->getConfig();
|
$config = $this->getConfig();
|
||||||
$this->assign('addons_config', $config);
|
$this->assign('addons_config', $config);
|
||||||
$map['status'] = array('egt',0);
|
$map['status'] = array('egt',0);
|
||||||
$maps['is_read'] = array('eq',0);
|
$maps['is_read'] = array('eq',0);
|
||||||
if($config['display']){
|
if($config['display']){
|
||||||
$info['users'] = Db::name('Member')->where($map)->count();
|
$info['users'] = Db::name('Member')->where($map)->count();
|
||||||
$info['userall'] = Db::name('Member')->count();
|
$info['userall'] = Db::name('Member')->count();
|
||||||
$info['action'] = Db::name('ActionLog')->where(array('create_time'=>array('gt',strtotime(date('Y-m-d')))))->count();
|
$info['form'] = Db::name('Form')->count();
|
||||||
$info['category'] = Db::name('Category')->count();
|
$info['category'] = Db::name('Category')->count();
|
||||||
$info['model'] = Db::name('Model')->count();
|
$info['model'] = Db::name('Model')->count();
|
||||||
$this->assign('info',$info);
|
$this->assign('info',$info);
|
||||||
return $this->fetch('index/info');
|
return $this->fetch('index/info');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
<!-- small box -->
|
<!-- small box -->
|
||||||
<div class="small-box bg-aqua">
|
<div class="small-box bg-aqua">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h3>{$info['action']}</h3>
|
<h3>{$info['form']}</h3>
|
||||||
<p>操作日志</p>
|
<p>自定义表单数</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<i class="fa fa-envelope"></i>
|
<i class="fa fa-envelope"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user