index.php 632 B

123456789101112131415161718192021222324252627282930
  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 17587 2010-10-25 01:25:10Z monkey $
  7. */
  8. define('IN_ARCHIVER', 1);
  9. chdir('../');
  10. $querystring = $_SERVER['QUERY_STRING'];
  11. if(!empty($_GET['action'])) {
  12. $querystring = $_GET['action'].'-'.$_GET['value'];
  13. }
  14. if(substr($querystring, 0, 3) == 'fid') {
  15. $_GET['mod'] = 'forumdisplay';
  16. $_GET['fid'] = intval(substr($querystring, 4));
  17. } elseif(substr($querystring, 0, 3) == 'tid') {
  18. $_GET['mod'] = 'viewthread';
  19. $_GET['tid'] = intval(substr($querystring, 4));
  20. }
  21. include 'forum.php';
  22. ?>