optimizer_newbiespan.php 888 B

123456789101112131415161718192021222324252627282930313233343536
  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: optimizer_newbiespan.php 33488 2013-06-24 01:48:20Z jeffjzhang $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class optimizer_newbiespan {
  12. public function __construct() {
  13. }
  14. public function check() {
  15. $newbiespan = C::t('common_setting')->fetch('newbiespan');
  16. if($newbiespan) {
  17. $return = array('status' => 0, 'type' =>'none', 'lang' => lang('optimizer', 'optimizer_newbiespan_no_need'));
  18. } else {
  19. $return = array('status' => 1, 'type' =>'header', 'lang' => lang('optimizer', 'optimizer_newbiespan_need'));
  20. }
  21. return $return;
  22. }
  23. public function optimizer() {
  24. $adminfile = defined(ADMINSCRIPT) ? ADMINSCRIPT : 'admin.php';
  25. dheader('Location: '.$_G['siteurl'].$adminfile.'?action=setting&operation=access');
  26. }
  27. }
  28. ?>