寰亚红人来自不同的地方,却有着相同信念。有人离开过,决然或依依不舍,有人又来了,怀着梦想和激动。
<?php
namespace app\admin\controller;
use think\Controller;
class Index extends Common
{
public function index()
{
$admin=db('user')->count();
$this->assign('admin',$admin);
$banner=db('banner')->count();
$this->assign('banner',$banner);
$artists=db('artists')->count();
$this->assign('artists',$artists);
$ar1=db('graphic')->where('graphic_type=1')->count();
$ar2=db('graphic')->where('graphic_type=2')->count();
$this->assign('ar1',$ar1);
$this->assign('ar2',$ar2);
$config = [
'url' => $_SERVER['HTTP_HOST'],
'document_root' => $_SERVER['DOCUMENT_ROOT'],
'server_os' => PHP_OS,
'server_port' => $_SERVER['SERVER_PORT'],
'server_soft' => $_SERVER['SERVER_SOFTWARE'],
'php_version' => PHP_VERSION,
'max_upload_size' => ini_get('upload_max_filesize')
];
$this->assign('config', $config);
return view();
}
}
评论