index.php 237 B

1234567891011121314151617
  1. <?php
  2. if(!empty($_GET['app'])) {
  3. $_app = $_GET['app'];
  4. } else {
  5. $_app = 'index';
  6. }
  7. define('DISCUZ_APP', $_app);
  8. if(!preg_match('/^\w+$/', $_app)) {
  9. exit('Access Denied');
  10. }
  11. $f = './source/app/'.$_app.'/'.$_app.'.php';
  12. require $f;