helper_access.php 667 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: helper_access.php 28057 2012-02-21 22:19:33Z zhengqingpeng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class helper_access {
  12. public static function check_module($module) {
  13. $status = 0;
  14. $allowfuntype = array('portal', 'group', 'follow', 'collection', 'guide', 'feed', 'blog', 'doing', 'album', 'share', 'wall', 'homepage', 'ranklist');
  15. $module = in_array($module, $allowfuntype) ? trim($module) : '';
  16. if(!empty($module)) {
  17. $status = getglobal('setting/'.$module.'status');
  18. }
  19. return $status;
  20. }
  21. }
  22. ?>