0 Star 0 Fork 17

龙人/phpshe

forked from koyshe/phpshe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
admin.php 3.45 KB
一键复制 编辑 原始数据 按行查看 历史
koyshe 提交于 2017-06-01 17:50 . v1.5
<?php
/**
* @copyright 2008-2015 简好网络 <http://www.phpshe.com>
* @creatdate 2012-0501 koyshe <koyshe@gmail.com>
*/
include('common.php');
$adminmenu[1] = array(
'headnav' => '商品中心',
'subnav' => array(
array('name' => '商品列表', 'menumark' => 'product', 'url' => 'admin.php?mod=product&state=1'),
array('name' => '商品分类', 'menumark' => 'category', 'url' => 'admin.php?mod=category'),
array('name' => '品牌管理', 'menumark' => 'brand', 'url' => 'admin.php?mod=brand'),
/*array('name' => '标签管理', 'menumark' => 'tag', 'url' => 'admin.php?mod=tag'),*/
/*array('name' => '咨询管理', 'menumark' => 'ask', 'url' => 'admin.php?mod=ask'),*/
array('name' => '评价管理', 'menumark' => 'comment', 'url' => 'admin.php?mod=comment')
)
);
$adminmenu[3] = array(
'headnav' => '交易中心',
'subnav' => array(
array('name' => '订单列表', 'menumark' => 'order', 'url' => 'admin.php?mod=order'),
array('name' => '资金明细', 'menumark' => 'moneylog', 'url' => 'admin.php?mod=moneylog'),
array('name' => '积分明细', 'menumark' => 'pointlog', 'url' => 'admin.php?mod=pointlog'),
array('name' => '充值记录', 'menumark' => 'order_pay', 'url' => 'admin.php?mod=order_pay'),
array('name' => '提现管理', 'menumark' => 'cashout', 'url' => 'admin.php?mod=cashout')
)
);
$adminmenu[4] = array(
'headnav' => '用户中心',
'subnav' => array(
array('name' => '会员列表', 'menumark' => 'user', 'url' => 'admin.php?mod=user'),
array('name' => '管 理 员', 'menumark' => 'admin', 'url' => 'admin.php?mod=admin'),
array('name' => '管理权限', 'menumark' => 'adminlevel', 'url' => 'admin.php?mod=adminlevel')
)
);
$adminmenu[2] = array(
'headnav' => '文章中心',
'subnav' => array(
array('name' => '文章分类', 'menumark' => 'class', 'url' => 'admin.php?mod=class'),
array('name' => '文章列表', 'menumark' => 'article', 'url' => 'admin.php?mod=article')
)
);
$adminmenu[6] = array(
'headnav' => '控制面板',
'subnav' => array(
array('name' => '网站设置', 'menumark' => 'setting', 'url' => 'admin.php?mod=setting&act=base'),
array('name' => '支付设置', 'menumark' => 'payway', 'url' => 'admin.php?mod=payway'),
array('name' => '导航管理', 'menumark' => 'menu', 'url' => 'admin.php?mod=menu'),
array('name' => '广告管理', 'menumark' => 'ad', 'url' => 'admin.php?mod=ad'),
array('name' => '友情链接', 'menumark' => 'link', 'url' => 'admin.php?mod=link'),
array('name' => '短/邮记录', 'menumark' => 'noticelog', 'url' => 'admin.php?mod=noticelog')
)
);
if (!pe_login('admin') && !($mod == 'do' && $act == 'login')) {
pe_goto('admin.php?mod=do&act=login');
}
if (pe_login('admin') && ($mod == 'do' && $act == 'login')) {
pe_goto('admin.php');
}
$admin = $db->pe_select('admin', array('admin_id'=>$_s_admin_id));
$cache_adminlevel = cache::get('adminlevel');
if (!in_array($mod, array('index', 'do')) && $admin['adminlevel_id'] != 1) {
$admin_result = false;
$adminlevel_modact = unserialize($cache_adminlevel[$admin['adminlevel_id']]['adminlevel_modact']);
$adminlevel_modact = $adminlevel_modact ? $adminlevel_modact : array();
foreach ($adminlevel_modact as $v) {
foreach(explode('|', $v) as $vv) {
if ("{$mod}-{$act}" == $vv or $mod == $vv) $admin_result = true;
}
}
!$admin_result && pe_error('权限不足...');
}
if (in_array("{$mod}.php", pe_dirlist("{$pe['path_root']}module/{$module}/*.php"))) {
include("{$pe['path_root']}module/{$module}/{$mod}.php");
}
pe_result();
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/long_ren/phpshe.git
git@gitee.com:long_ren/phpshe.git
long_ren
phpshe
phpshe
master

搜索帮助