portal.php 955 B

123456789101112131415161718192021222324252627282930313233
  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: portal.php 33234 2013-05-08 04:13:19Z andyzheng $
  7. */
  8. define('APPTYPEID', 4);
  9. define('CURSCRIPT', 'portal');
  10. require './source/class/class_core.php';
  11. $discuz = C::app();
  12. $cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
  13. $discuz->cachelist = $cachelist;
  14. $discuz->init();
  15. require DISCUZ_ROOT.'./source/function/function_home.php';
  16. require DISCUZ_ROOT.'./source/function/function_portal.php';
  17. if(empty($_GET['mod']) || !in_array($_GET['mod'], array('list', 'view', 'comment', 'portalcp', 'topic', 'attachment', 'rss', 'block'))) $_GET['mod'] = 'index';
  18. define('CURMODULE', $_GET['mod']);
  19. runhooks();
  20. $navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['portal']);
  21. $_G['disabledwidthauto'] = 1;
  22. require_once libfile('portal/'.$_GET['mod'], 'module');
  23. ?>