1234567891011121314151617181920 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- defined('IN_IA') or exit('Access Denied');
-
- $uniacid = intval($_GPC['uniacid']);
- $role = uni_permission($_W['uid'], $uniacid);
- if(empty($role)) {
- message('操作失败, 非法访问.');
- }
- isetcookie('__uniacid', $uniacid, 7 * 86400);
- isetcookie('__uid', $_W['uid'], 7 * 86400);
-
- if($_W['role'] == 'clerk' || $role == 'clerk') {
- header('location: ' . url('site/entry', array('m' => 'we7_coupon', 'do' => 'clerkdesk', 'op' => 'index')));
- die;
- }
- header('location: ' . url('home/welcome/platform'));
|