人人商城

switch.ctrl.php 668B

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