作者 景龙

去掉进入后台index页多余的内容

@@ -13,8 +13,7 @@ use cmf\controller\HomeBaseController; @@ -13,8 +13,7 @@ use cmf\controller\HomeBaseController;
13 use think\Cookie; 13 use think\Cookie;
14 use think\Session; 14 use think\Session;
15 use anerg\OAuth2\OAuth; 15 use anerg\OAuth2\OAuth;
16 -//use think\Config;  
17 -use think\facade\Config; 16 +use think\Config;
18 17
19 class LoginController extends HomeBaseController 18 class LoginController extends HomeBaseController
20 { 19 {
@@ -131,4 +130,48 @@ class LoginController extends HomeBaseController @@ -131,4 +130,48 @@ class LoginController extends HomeBaseController
131 // } 130 // }
132 // $res = $userModel->isUpdate(true)->save($data); 131 // $res = $userModel->isUpdate(true)->save($data);
133 // } 132 // }
  133 +
  134 + //第三方微信登录
  135 + public function wx_login(){
  136 + $config = Config::get('wx_login');
  137 + $app_id = $config['app_id'];
  138 + $redirect_uri = $config['redirect_uri'];
  139 + $scope = $config['scope'];
  140 + $state = md5(uniqid(rand(), TRUE));
  141 + $url = 'https://open.weixin.qq.com/connect/qrconnect?appid='.$app_id.'&redirect_uri='.$redirect_uri.'&response_type=code&scope='.$scope.'&state='.$state.'#wechat_redirect';
  142 + $res = $this->http_get($url);
  143 + var_dump(11);
  144 + var_dump($res);exit;
  145 + }
  146 +
  147 + //curl get请求
  148 + public function http_get($url){
  149 + $curl = curl_init();//启动一个CURL会话
  150 + curl_setopt($curl, CURLOPT_URL,$url);
  151 + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // 对认证证书来源的检查
  152 + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); // 从证书中检查SSL加密算法是否存在
  153 + curl_setopt($curl, CURLOPT_TIMEOUT, 30); // 设置超时限制防止死循环
  154 + curl_setopt($curl, CURLOPT_HEADER, false);//不开启header
  155 + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // 获取的信息以文件流的形式返回
  156 + $result = curl_exec($curl); //执行操作
  157 + curl_close($curl);
  158 + return $result;
  159 + }
  160 +
  161 + //curl post请求
  162 + public function http_post($url,$data,$headers){
  163 + $curl = curl_init();//启动一个CURL会话
  164 + curl_setopt($curl, CURLOPT_URL, $url); // 要访问的地址
  165 + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // 对认证证书来源的检查
  166 + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); // 从证书中检查SSL加密算法是否存在
  167 + curl_setopt($curl, CURLOPT_POST, true); // 发送一个常规的Post请求
  168 + curl_setopt($curl, CURLOPT_POSTFIELDS, $data); // Post提交的数据包
  169 + curl_setopt($curl, CURLOPT_TIMEOUT, 30); // 设置超时限制防止死循环
  170 + curl_setopt($curl, CURLOPT_HEADER, true); // 开启header
  171 + curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);//请求头部
  172 + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // 获取的信息以文件流的形式返回
  173 + $result = curl_exec($curl); //执行操作
  174 + curl_close($curl);
  175 + return $result;
  176 + }
134 } 177 }
@@ -4,9 +4,10 @@ return array ( @@ -4,9 +4,10 @@ return array (
4 'cmf_admin_default_theme' => 'admin_simpleboot3', 4 'cmf_admin_default_theme' => 'admin_simpleboot3',
5 ), 5 ),
6 'TENGXUN_KEY' => 'HGLBZ-WD66X-2H74V-TJ6NI-NHNWZ-DNBJ5', 6 'TENGXUN_KEY' => 'HGLBZ-WD66X-2H74V-TJ6NI-NHNWZ-DNBJ5',
7 - 'sns_wx' => [ 7 + 'wx_login' => [
8 'app_id' => 'wx882ed4633b1d71fb', 8 'app_id' => 'wx882ed4633b1d71fb',
9 'app_secret' => '00053c785b11c34e278ed8fe0f9cf484', 9 'app_secret' => '00053c785b11c34e278ed8fe0f9cf484',
10 - 'scope' => 'snsapi_userinfo',//如果需要静默授权,这里改成snsapi_base,扫码登录系统会自动改为snsapi_login 10 + 'scope' => 'snsapi_login',//如果需要静默授权,这里改成snsapi_base,扫码登录系统会自动改为snsapi_login
  11 + 'redirect_uri' => ''
11 ] 12 ]
12 ); 13 );
1 <?php 1 <?php
2 return array ( 2 return array (
3 'ADMIN_ABOUTUS_EDIT' => '关于我们', 3 'ADMIN_ABOUTUS_EDIT' => '关于我们',
  4 + 'ADMIN_ABOUTUS_EDITPOST' => '编辑提交',
  5 + 'ADMIN_COOPERATION_ADD' => '添加显示',
  6 + 'ADMIN_COOPERATION_ADDPOST' => '添加提交',
  7 + 'ADMIN_COOPERATION_DELETE' => '删除',
  8 + 'ADMIN_COOPERATION_EDIT' => '编辑显示',
  9 + 'ADMIN_COOPERATION_EDITPOST' => '编辑提交',
4 'ADMIN_COOPERATION_INDEX' => '合作伙伴', 10 'ADMIN_COOPERATION_INDEX' => '合作伙伴',
  11 + 'ADMIN_COOPERATION_TOGGLE' => '显示隐藏',
  12 + 'ADMIN_FOCUS_ADD' => '添加显示',
  13 + 'ADMIN_FOCUS_ADDPOST' => '添加提交',
  14 + 'ADMIN_FOCUS_EDIT' => '编辑显示',
  15 + 'ADMIN_FOCUS_EDITPOST' => '编辑添加',
5 'ADMIN_FOCUS_INDEX' => '关注我们', 16 'ADMIN_FOCUS_INDEX' => '关注我们',
  17 + 'ADMIN_FOCUS_TOGGLE' => '显示隐藏',
6 'ADMIN_HOOK_INDEX' => '钩子管理', 18 'ADMIN_HOOK_INDEX' => '钩子管理',
7 'ADMIN_HOOK_PLUGINLISTORDER' => '钩子插件排序', 19 'ADMIN_HOOK_PLUGINLISTORDER' => '钩子插件排序',
8 'ADMIN_HOOK_PLUGINS' => '钩子插件管理', 20 'ADMIN_HOOK_PLUGINS' => '钩子插件管理',
@@ -122,6 +134,11 @@ return array ( @@ -122,6 +134,11 @@ return array (
122 'ADMIN_USER_INDEX' => '管理员', 134 'ADMIN_USER_INDEX' => '管理员',
123 'ADMIN_USER_USERINFO' => '个人信息', 135 'ADMIN_USER_USERINFO' => '个人信息',
124 'ADMIN_USER_USERINFOPOST' => '管理员个人信息修改提交', 136 'ADMIN_USER_USERINFOPOST' => '管理员个人信息修改提交',
  137 + 'PORTAL_ADMINACTIVE_ADD' => '添加显示',
  138 + 'PORTAL_ADMINACTIVE_ADDPOST' => '添加提交',
  139 + 'PORTAL_ADMINACTIVE_DELETE' => '删除',
  140 + 'PORTAL_ADMINACTIVE_EDIT' => '编辑显示',
  141 + 'PORTAL_ADMINACTIVE_EDITPOST' => '编辑提交',
125 'PORTAL_ADMINACTIVE_INDEX' => '星际活动', 142 'PORTAL_ADMINACTIVE_INDEX' => '星际活动',
126 'PORTAL_ADMINARTICLE_ADD' => '添加文章', 143 'PORTAL_ADMINARTICLE_ADD' => '添加文章',
127 'PORTAL_ADMINARTICLE_ADDPOST' => '添加文章提交', 144 'PORTAL_ADMINARTICLE_ADDPOST' => '添加文章提交',
@@ -145,9 +162,29 @@ return array ( @@ -145,9 +162,29 @@ return array (
145 'PORTAL_ADMINDATA_INDEX' => '数据统计', 162 'PORTAL_ADMINDATA_INDEX' => '数据统计',
146 'PORTAL_ADMINDATADATA_DEFAULT' => '数据统计', 163 'PORTAL_ADMINDATADATA_DEFAULT' => '数据统计',
147 'PORTAL_ADMINENJOY_DEFAULT' => '星享体验', 164 'PORTAL_ADMINENJOY_DEFAULT' => '星享体验',
  165 + 'PORTAL_ADMINENJOYFEAST_ADD' => '添加显示',
  166 + 'PORTAL_ADMINENJOYFEAST_ADDPOST' => '添加提交',
  167 + 'PORTAL_ADMINENJOYFEAST_DELETE' => '删除',
  168 + 'PORTAL_ADMINENJOYFEAST_EDIT' => '编辑显示',
  169 + 'PORTAL_ADMINENJOYFEAST_EDITPOST' => '编辑提交',
148 'PORTAL_ADMINENJOYFEAST_INDEX' => '视听盛宴', 170 'PORTAL_ADMINENJOYFEAST_INDEX' => '视听盛宴',
  171 + 'PORTAL_ADMINENJOYOWN_ADD' => '添加显示',
  172 + 'PORTAL_ADMINENJOYOWN_ADDPOST' => '添加提交',
  173 + 'PORTAL_ADMINENJOYOWN_DELETE' => '删除',
  174 + 'PORTAL_ADMINENJOYOWN_EDIT' => '编辑显示',
  175 + 'PORTAL_ADMINENJOYOWN_EDITPOST' => '编辑提交',
149 'PORTAL_ADMINENJOYOWN_INDEX' => '亲临现场', 176 'PORTAL_ADMINENJOYOWN_INDEX' => '亲临现场',
  177 + 'PORTAL_ADMINENJOYROAM_ADD' => '添加显示',
  178 + 'PORTAL_ADMINENJOYROAM_ADDPOST' => '添加提交',
  179 + 'PORTAL_ADMINENJOYROAM_DELETE' => '删除',
  180 + 'PORTAL_ADMINENJOYROAM_EDIT' => '编辑显示',
  181 + 'PORTAL_ADMINENJOYROAM_EDITPOST' => '编辑提交',
150 'PORTAL_ADMINENJOYROAM_INDEX' => '市井漫游', 182 'PORTAL_ADMINENJOYROAM_INDEX' => '市井漫游',
  183 + 'PORTAL_ADMINENJOYSKY_ADD' => '添加显示',
  184 + 'PORTAL_ADMINENJOYSKY_ADDPOST' => '添加提交',
  185 + 'PORTAL_ADMINENJOYSKY_DELETE' => '删除',
  186 + 'PORTAL_ADMINENJOYSKY_EDIT' => '编辑显示',
  187 + 'PORTAL_ADMINENJOYSKY_EDITPOST' => '编辑提交',
151 'PORTAL_ADMINENJOYSKY_INDEX' => '户外天堂', 188 'PORTAL_ADMINENJOYSKY_INDEX' => '户外天堂',
152 'PORTAL_ADMINEXE_DEFAULT' => '星际活动', 189 'PORTAL_ADMINEXE_DEFAULT' => '星际活动',
153 'PORTAL_ADMININDEX_DEFAULT' => '门户管理', 190 'PORTAL_ADMININDEX_DEFAULT' => '门户管理',
@@ -158,23 +195,103 @@ return array ( @@ -158,23 +195,103 @@ return array (
158 'PORTAL_ADMINPAGE_EDITPOST' => '编辑页面提交', 195 'PORTAL_ADMINPAGE_EDITPOST' => '编辑页面提交',
159 'PORTAL_ADMINPAGE_INDEX' => '页面管理', 196 'PORTAL_ADMINPAGE_INDEX' => '页面管理',
160 'PORTAL_ADMINREGION_DEFAULT' => '星域秀场', 197 'PORTAL_ADMINREGION_DEFAULT' => '星域秀场',
  198 + 'PORTAL_ADMINREGIONFUTURE_ADD' => '添加显示',
  199 + 'PORTAL_ADMINREGIONFUTURE_ADDPOST' => '添加提交',
  200 + 'PORTAL_ADMINREGIONFUTURE_DELETE' => '删除',
  201 + 'PORTAL_ADMINREGIONFUTURE_EDIT' => '编辑显示',
  202 + 'PORTAL_ADMINREGIONFUTURE_EDITPOST' => '编辑提交',
161 'PORTAL_ADMINREGIONFUTURE_INDEX' => '童趣未来', 203 'PORTAL_ADMINREGIONFUTURE_INDEX' => '童趣未来',
  204 + 'PORTAL_ADMINREGIONGALLERY_ADD' => '添加显示',
  205 + 'PORTAL_ADMINREGIONGALLERY_ADDPOST' => '添加提交',
  206 + 'PORTAL_ADMINREGIONGALLERY_DELETE' => '删除',
  207 + 'PORTAL_ADMINREGIONGALLERY_EDIT' => '编辑显示',
  208 + 'PORTAL_ADMINREGIONGALLERY_EDITPOST' => '编辑提交',
162 'PORTAL_ADMINREGIONGALLERY_INDEX' => '星球画廊', 209 'PORTAL_ADMINREGIONGALLERY_INDEX' => '星球画廊',
  210 + 'PORTAL_ADMINREGIONNEWS_ADD' => '添加显示',
  211 + 'PORTAL_ADMINREGIONNEWS_ADDPOST' => '添加提交',
  212 + 'PORTAL_ADMINREGIONNEWS_DELETE' => '删除',
  213 + 'PORTAL_ADMINREGIONNEWS_EDIT' => '编辑显示',
  214 + 'PORTAL_ADMINREGIONNEWS_EDITPOST' => '编辑提交',
163 'PORTAL_ADMINREGIONNEWS_INDEX' => '独角快报', 215 'PORTAL_ADMINREGIONNEWS_INDEX' => '独角快报',
  216 + 'PORTAL_ADMINREGIONNOTE_ADD' => '添加显示',
  217 + 'PORTAL_ADMINREGIONNOTE_ADDPOST' => '添加提交',
  218 + 'PORTAL_ADMINREGIONNOTE_DELETE' => '删除',
  219 + 'PORTAL_ADMINREGIONNOTE_EDIT' => '编辑显示',
  220 + 'PORTAL_ADMINREGIONNOTE_EDITPOST' => '编辑提交',
164 'PORTAL_ADMINREGIONNOTE_INDEX' => '独角日志', 221 'PORTAL_ADMINREGIONNOTE_INDEX' => '独角日志',
  222 + 'PORTAL_ADMINREGIONSTAR_ADD' => '添加显示',
  223 + 'PORTAL_ADMINREGIONSTAR_ADDPOST' => '添加提交',
  224 + 'PORTAL_ADMINREGIONSTAR_DELETE' => '删除',
  225 + 'PORTAL_ADMINREGIONSTAR_EDIT' => '编辑显示',
  226 + 'PORTAL_ADMINREGIONSTAR_EDITPOST' => '编辑提交',
165 'PORTAL_ADMINREGIONSTAR_INDEX' => '明星访谈', 227 'PORTAL_ADMINREGIONSTAR_INDEX' => '明星访谈',
  228 + 'PORTAL_ADMINREGIONVIDEO_ADD' => '添加显示',
  229 + 'PORTAL_ADMINREGIONVIDEO_ADDPOST' => '添加提交',
  230 + 'PORTAL_ADMINREGIONVIDEO_DELETE' => '删除',
  231 + 'PORTAL_ADMINREGIONVIDEO_EDIT' => '编辑显示',
  232 + 'PORTAL_ADMINREGIONVIDEO_EDITPOST' => '编辑提交',
166 'PORTAL_ADMINREGIONVIDEO_INDEX' => '星球影院', 233 'PORTAL_ADMINREGIONVIDEO_INDEX' => '星球影院',
167 'PORTAL_ADMINSCOUT_DEFAULT' => '星探推荐', 234 'PORTAL_ADMINSCOUT_DEFAULT' => '星探推荐',
  235 + 'PORTAL_ADMINSCOUTDESIGN_ADD' => '添加显示',
  236 + 'PORTAL_ADMINSCOUTDESIGN_ADDPOST' => '添加提交',
  237 + 'PORTAL_ADMINSCOUTDESIGN_DELETE' => '删除',
  238 + 'PORTAL_ADMINSCOUTDESIGN_EDIT' => '编辑显示',
  239 + 'PORTAL_ADMINSCOUTDESIGN_EDITPOST' => '编辑提交',
168 'PORTAL_ADMINSCOUTDESIGN_INDEX' => '创意设计', 240 'PORTAL_ADMINSCOUTDESIGN_INDEX' => '创意设计',
  241 + 'PORTAL_ADMINSCOUTLIKE_ADD' => '添加显示',
  242 + 'PORTAL_ADMINSCOUTLIKE_ADDPOST' => '添加提交',
  243 + 'PORTAL_ADMINSCOUTLIKE_DELETE' => '删除',
  244 + 'PORTAL_ADMINSCOUTLIKE_EDIT' => '编辑显示',
  245 + 'PORTAL_ADMINSCOUTLIKE_EDITPOST' => '编辑提交',
169 'PORTAL_ADMINSCOUTLIKE_INDEX' => '悦己悦人', 246 'PORTAL_ADMINSCOUTLIKE_INDEX' => '悦己悦人',
  247 + 'PORTAL_ADMINSCOUTSCENERY_ADD' => '添加显示',
  248 + 'PORTAL_ADMINSCOUTSCENERY_ADDPOST' => '添加提交',
  249 + 'PORTAL_ADMINSCOUTSCENERY_DELETE' => '删除',
  250 + 'PORTAL_ADMINSCOUTSCENERY_EDIT' => '编辑显示',
  251 + 'PORTAL_ADMINSCOUTSCENERY_EDITPOST' => '编辑提交',
170 'PORTAL_ADMINSCOUTSCENERY_INDEX' => '地道风物', 252 'PORTAL_ADMINSCOUTSCENERY_INDEX' => '地道风物',
  253 + 'PORTAL_ADMINSCOUTTRAVEL_ADD' => '添加显示',
  254 + 'PORTAL_ADMINSCOUTTRAVEL_ADDPOST' => '添加提交',
  255 + 'PORTAL_ADMINSCOUTTRAVEL_DELETE' => '删除',
  256 + 'PORTAL_ADMINSCOUTTRAVEL_EDIT' => '编辑显示',
  257 + 'PORTAL_ADMINSCOUTTRAVEL_EDITPOST' => '编辑提交',
171 'PORTAL_ADMINSCOUTTRAVEL_INDEX' => '旅游路线', 258 'PORTAL_ADMINSCOUTTRAVEL_INDEX' => '旅游路线',
172 'PORTAL_ADMINSTAR_DEFAULT' => '星球奇境', 259 'PORTAL_ADMINSTAR_DEFAULT' => '星球奇境',
  260 + 'PORTAL_ADMINSTARECOLOGY_ADD' => '添加显示',
  261 + 'PORTAL_ADMINSTARECOLOGY_ADDPOST' => '添加提交',
  262 + 'PORTAL_ADMINSTARECOLOGY_DELETE' => '删除',
  263 + 'PORTAL_ADMINSTARECOLOGY_EDIT' => '编辑显示',
  264 + 'PORTAL_ADMINSTARECOLOGY_EDITPOST' => '编辑提交',
173 'PORTAL_ADMINSTARECOLOGY_INDEX' => '活力生态', 265 'PORTAL_ADMINSTARECOLOGY_INDEX' => '活力生态',
  266 + 'PORTAL_ADMINSTARFOOD_ADD' => '添加显示',
  267 + 'PORTAL_ADMINSTARFOOD_ADDPOST' => '添加提交',
  268 + 'PORTAL_ADMINSTARFOOD_DELETE' => '删除',
  269 + 'PORTAL_ADMINSTARFOOD_EDIT' => '编辑显示',
  270 + 'PORTAL_ADMINSTARFOOD_EDITPOST' => '编辑提交',
174 'PORTAL_ADMINSTARFOOD_INDEX' => '异域珍馐', 271 'PORTAL_ADMINSTARFOOD_INDEX' => '异域珍馐',
  272 + 'PORTAL_ADMINSTARHOTEL_ADD' => '添加显示',
  273 + 'PORTAL_ADMINSTARHOTEL_ADDPOST' => '添加提交',
  274 + 'PORTAL_ADMINSTARHOTEL_DELETE' => '删除',
  275 + 'PORTAL_ADMINSTARHOTEL_EDIT' => '编辑显示',
  276 + 'PORTAL_ADMINSTARHOTEL_EDITPOST' => '编辑提交',
175 'PORTAL_ADMINSTARHOTEL_INDEX' => '良宿美寝', 277 'PORTAL_ADMINSTARHOTEL_INDEX' => '良宿美寝',
  278 + 'PORTAL_ADMINSTARSCENERY_ADD' => '添加显示',
  279 + 'PORTAL_ADMINSTARSCENERY_ADDPOST' => '添加提交',
  280 + 'PORTAL_ADMINSTARSCENERY_DELETE' => '删除',
  281 + 'PORTAL_ADMINSTARSCENERY_EDIT' => '编辑显示',
  282 + 'PORTAL_ADMINSTARSCENERY_EDITPOST' => '编辑提交',
176 'PORTAL_ADMINSTARSCENERY_INDEX' => '网红美景', 283 'PORTAL_ADMINSTARSCENERY_INDEX' => '网红美景',
  284 + 'PORTAL_ADMINSTARSTORY_ADD' => '添加显示',
  285 + 'PORTAL_ADMINSTARSTORY_ADDPOST' => '添加提交',
  286 + 'PORTAL_ADMINSTARSTORY_DELETE' => '删除',
  287 + 'PORTAL_ADMINSTARSTORY_EDIT' => '编辑显示',
  288 + 'PORTAL_ADMINSTARSTORY_EDITPOST' => '编辑提交',
177 'PORTAL_ADMINSTARSTORY_INDEX' => '星球故事', 289 'PORTAL_ADMINSTARSTORY_INDEX' => '星球故事',
  290 + 'PORTAL_ADMINSTARTRIP_ADD' => '添加显示',
  291 + 'PORTAL_ADMINSTARTRIP_ADDPOST' => '添加提交',
  292 + 'PORTAL_ADMINSTARTRIP_DELETE' => '删除',
  293 + 'PORTAL_ADMINSTARTRIP_EDIT' => '编辑显示',
  294 + 'PORTAL_ADMINSTARTRIP_EDITPOST' => '编辑提交',
178 'PORTAL_ADMINSTARTRIP_INDEX' => '便利出行', 295 'PORTAL_ADMINSTARTRIP_INDEX' => '便利出行',
179 'PORTAL_ADMINTAG_ADD' => '添加文章标签', 296 'PORTAL_ADMINTAG_ADD' => '添加文章标签',
180 'PORTAL_ADMINTAG_ADDPOST' => '添加文章标签提交', 297 'PORTAL_ADMINTAG_ADDPOST' => '添加文章标签提交',
1 -<php>  
2 - if (!function_exists('_get_system_widget')) {  
3 - function _get_system_widget($name){  
4 -</php> 1 +<php>function _get_system_widget($name){</php>
5 <switch name="name"> 2 <switch name="name">
6 - <case value="CmfHub">  
7 - <div class="panel panel-default">  
8 - <div class="panel-heading">  
9 - <h3 class="panel-title">交流方式</h3>  
10 - </div>  
11 - <div class="panel-body home-info">  
12 - <ul class="list-unstyled">  
13 - <li>  
14 - <em>官网</em> <span><a href="http://www.thinkcmf.com" target="_blank">www.thinkcmf.com</a></span>  
15 - </li>  
16 - <li><em>QQ 群</em> <span>100828313,316669417</span></li>  
17 - <li><em>联系邮箱</em> <span>catman@thinkcmf.com</span></li>  
18 - </ul>  
19 - </div>  
20 - </div>  
21 - </case>  
22 - <case value="CmfDocuments">  
23 - <div class="panel panel-default">  
24 - <div class="panel-heading">  
25 - <h3 class="panel-title">开发手册</h3>  
26 - </div>  
27 - <div class="panel-body home-info">  
28 - <ul class="list-unstyled">  
29 - <li>  
30 - <em>完全开发手册</em>  
31 - <span>  
32 - <a class="label label-success" href="http://www.thinkcmf.com/doc.html"  
33 - target="_blank">立即阅读</a>  
34 - </span>  
35 - </li>  
36 - <li>  
37 - <em>常见问题手册</em>  
38 - <span>  
39 - <a class="label label-success" href="http://www.thinkcmf.com/faq.html"  
40 - target="_blank">立即阅读</a>  
41 - </span>  
42 - </li>  
43 - <li>  
44 - <em>模板开发教程</em>  
45 - <span>  
46 - <a class="label label-success" href="http://www.thinkcmf.com/theme_tutorial.html"  
47 - target="_blank">立即阅读</a>  
48 - </span>  
49 - </li>  
50 - <li>  
51 - <em>API开发手册</em>  
52 - <span>  
53 - <a class="label label-success" href="http://www.thinkcmf.com/cmf5api.html"  
54 - target="_blank">立即阅读</a>  
55 - </span>  
56 - </li>  
57 - </ul>  
58 - </div>  
59 - </div>  
60 - </case>  
61 <case value="MainContributors"> 3 <case value="MainContributors">
62 <div class="panel panel-default"> 4 <div class="panel panel-default">
63 <div class="panel-heading"> 5 <div class="panel-heading">
64 - <h3 class="panel-title">主要贡献者</h3> 6 + <h3 class="panel-title">技术支持</h3>
65 </div> 7 </div>
66 <div class="panel-body home-info"> 8 <div class="panel-body home-info">
67 <ul class="list-inline"> 9 <ul class="list-inline">
68 - <li>老猫</li>  
69 - <li>Sam</li>  
70 - <li>Tuolaji</li>  
71 - <li>睡不醒的猪</li>  
72 - <li>小夏</li>  
73 - <li>Powerless</li>  
74 - <li>WelKinVan</li>  
75 - <li>Kane</li>  
76 - <li>iYting</li>  
77 - <li>pl125</li>  
78 - <li>五五</li>  
79 - </ul>  
80 - </div>  
81 - </div>  
82 - </case>  
83 - <case value="Contributors">  
84 - <div class="panel panel-default">  
85 - <div class="panel-heading">  
86 - <h3 class="panel-title">贡献者</h3>  
87 - </div>  
88 - <div class="panel-body home-info">  
89 - <ul class="list-inline">  
90 - <li>Kin Ho</li>  
91 - <li><a href="https://www.wzxaini9.cn/" target="_blank">Powerless</a></li>  
92 - <li>Jess</li>  
93 - <li>木兰情</li>  
94 - <li>Labulaka</li>  
95 - <li><a href="http://www.syousoft.com/" target="_blank">WelKinVan</a></li>  
96 - <li><a href="http://blog.sina.com.cn/u/1918098881" target="_blank">Jeson</a></li>  
97 - <li>Yim</li>  
98 - <li><a href="http://www.jamlee.cn/" target="_blank">Jamlee</a></li>  
99 - <li>香香咸蛋黄</li>  
100 - <li><a href="http://www.xdmeng.cn" target="_blank">小凯</a></li>  
101 - <li>Co</li>  
102 - <li>Rainfer</li>  
103 - <li><a href="http://www.yaoweixiu.cn/" target="_blank">Kane</a></li>  
104 - <li>北岸的云</li>  
105 - <li>pl125</li>  
106 - <li><a href="http://www.wuwuseo.com/" target="_blank">五五</a></li> 10 + <li>银河百荣科技</li>
107 </ul> 11 </ul>
108 </div> 12 </div>
109 </div> 13 </div>
110 </case> 14 </case>
111 </switch> 15 </switch>
112 -<php>  
113 - }  
114 - }  
115 -</php> 16 +<php>}</php>
116 17
117 <include file="public@header"/> 18 <include file="public@header"/>
118 <style> 19 <style>
@@ -152,18 +53,6 @@ @@ -152,18 +53,6 @@
152 </head> 53 </head>
153 <body> 54 <body>
154 <div class="wrap"> 55 <div class="wrap">
155 - <empty name="has_smtp_setting">  
156 - <div class="grid-item col-md-12">  
157 - <div class="alert alert-danger alert-dismissible fade in" role="alert" style="margin-bottom: 0;">  
158 - <button type="button" class="close" data-dismiss="alert" aria-label="Close">  
159 - <span aria-hidden="true">&times;</span>  
160 - </button>  
161 - <strong>提示!</strong> 邮箱配置未完成,无法进行邮件发送!  
162 - <a href="#" data-dismiss="alert" aria-label="Close"  
163 - onclick="parent.openapp('{:url('Mailer/index')}','admin_mailer_index','邮箱配置');">现在设置</a>  
164 - </div>  
165 - </div>  
166 - </empty>  
167 56
168 <if condition="!extension_loaded('fileinfo')"> 57 <if condition="!extension_loaded('fileinfo')">
169 <div class="grid-item col-md-12"> 58 <div class="grid-item col-md-12">
@@ -176,24 +65,6 @@ @@ -176,24 +65,6 @@
176 </div> 65 </div>
177 </if> 66 </if>
178 67
179 - <div class="grid-item col-md-12" id="thinkcmf-notices-grid" style="display:none;">  
180 - <div class="dashboard-box">  
181 - <div class="panel panel-default">  
182 - <div class="panel-heading">  
183 - <h3 class="panel-title">{:lang('SYSTEM_NOTIFICATIONS')}</h3>  
184 - </div>  
185 - <div class="panel-body home-info">  
186 - <ul id="thinkcmf-notices" class="list-unstyled">  
187 - <li>  
188 - <img src="__TMPL__/public/assets/images/loading.gif" style="vertical-align: middle;"/>  
189 - <span style="display: inline-block; vertical-align: middle;">加载中...</span>  
190 - </li>  
191 - </ul>  
192 - </div>  
193 - </div>  
194 - </div>  
195 - </div>  
196 -  
197 <div class="home-grid"> 68 <div class="home-grid">
198 <!-- width of .grid-sizer used for columnWidth --> 69 <!-- width of .grid-sizer used for columnWidth -->
199 <div class="grid-sizer"></div> 70 <div class="grid-sizer"></div>
@@ -218,7 +89,7 @@ @@ -218,7 +89,7 @@
218 <script src="__STATIC__/js/admin.js"></script> 89 <script src="__STATIC__/js/admin.js"></script>
219 <php> 90 <php>
220 $lang_set=defined('LANG_SET')?LANG_SET:''; 91 $lang_set=defined('LANG_SET')?LANG_SET:'';
221 - $thinkcmf_version=cmf_version(); 92 + $BRONET_VERSION=defined('BRONET_VERSION')?BRONET_VERSION:'';
222 </php> 93 </php>
223 <script> 94 <script>
224 95
@@ -320,26 +191,6 @@ @@ -320,26 +191,6 @@
320 } 191 }
321 }); 192 });
322 } 193 }
323 -  
324 - //获取官方通知  
325 - $.getJSON("//www.thinkcmf.com/service/sms_jsonp.php?lang={$lang_set}&v={$thinkcmf_version}&callback=?",  
326 - function (data) {  
327 - var tpl = '<li><em class="title"></em><span class="content"></span></li>';  
328 - var $notices = $("#thinkcmf-notices");  
329 - $notices.empty();  
330 - if (data.length > 0) {  
331 - $('#thinkcmf-notices-grid').show();  
332 - $.each(data, function (i, n) {  
333 - var $tpl = $(tpl);  
334 - $(".title", $tpl).html(n.title);  
335 - $(".content", $tpl).html(n.content);  
336 - $notices.append($tpl);  
337 - });  
338 - } else {  
339 - $notices.append("<li>^_^,{:lang('NO_NOTICE')}~~</li>");  
340 - }  
341 -  
342 - });  
343 </script> 194 </script>
344 <hook name="admin_before_body_end"/> 195 <hook name="admin_before_body_end"/>
345 </body> 196 </body>