-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadmin.php
More file actions
57 lines (49 loc) · 1.58 KB
/
admin.php
File metadata and controls
57 lines (49 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
Copyright 2012 zenglong (made in china)
For more information, please see www.zengl.com
This file is part of zenglcms.
zenglcms is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
zenglcms is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with zenglcms,the copy is in the file licence.txt. If not,
see <http://www.gnu.org/licenses/>.
*/
include 'common_fun/file_func.php';
i_need_func('admin,err',__FILE__,true); //最后的参数为true时,file_cache中会生成调试版本的缓存。
//i_need_func('admin,err',__FILE__);
include $my_need_files;
import_request_variables("gpc","rvar_");
$admin = new admin(true,true);
if($rvar_redirect == '')
$rvar_redirect = 'admin';
if(!$admin->check_perm(ADMIN_SHOW))
{
$rvar_redirect = 'admin_nopermis';
new error('禁止访问','用户权限无法进入管理界面,如果是游客请先登录!',true,true);
}
if($rvar_arg=="show")
{
$admin->show();
}
else if($rvar_arg=="showleft")
{
$admin->show_left();
}
else if($rvar_arg=="showright")
{
$admin->show_right();
}
else if($rvar_arg=="show_middle")
{
$admin->show_middle();
}
else
new error('进入管理界面失败','无效的请求参数!',true,true);
?>