CheckClassLevel.php 695 B

1234567891011121314151617181920212223242526
  1. <?php
  2. if(!defined('empirecms'))
  3. {
  4. exit();
  5. }
  6. //扣点
  7. require_once($check_path."e/class/connect.php");
  8. if(!defined('InEmpireCMS'))
  9. {
  10. exit();
  11. }
  12. require_once(ECMS_PATH."e/class/db_sql.php");
  13. $check_classid=(int)$check_classid;
  14. $toreturnurl=eReturnSelfPage(0); //返回页面地址
  15. $gotourl=$ecms_config['member']['loginurl']?$ecms_config['member']['loginurl']:$public_r['newsurl']."e/member/login/"; //登陆地址
  16. $loginuserid=(int)getcvar('mluserid');
  17. $logingroupid=(int)getcvar('mlgroupid');
  18. if(!$loginuserid)
  19. {
  20. printerror2('本栏目需要会员级别以上才能查看','');
  21. }
  22. if(!strstr($check_groupid,','.$logingroupid.','))
  23. {
  24. printerror2('您没有足够权限查看此栏目','');
  25. }
  26. ?>