index.php 565 B

123456789101112131415161718192021
  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: index.php 33969 2013-09-10 08:32:14Z nemohou $
  7. */
  8. if(!empty($_SERVER['QUERY_STRING'])) {
  9. $plugin = !empty($_GET['oem']) ? 'mobileoem' : 'mobile';
  10. $dir = '../../source/plugin/'.$plugin.'/';
  11. chdir($dir);
  12. if((isset($_GET['check']) && $_GET['check'] == 'check' || $_SERVER['QUERY_STRING'] == 'check') && is_file('check.php')) {
  13. require_once 'check.php';
  14. } elseif(is_file('mobile.php')) {
  15. require_once 'mobile.php';
  16. }
  17. }
  18. ?>