portal_index.php 929 B

1234567891011121314151617181920212223242526272829303132333435363738
  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_index.php 31313 2012-08-10 03:51:03Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. list($navtitle, $metadescription, $metakeywords) = get_seosetting('portal');
  12. if(!$navtitle) {
  13. $navtitle = $_G['setting']['navs'][1]['navname'];
  14. $nobbname = false;
  15. } else {
  16. $nobbname = true;
  17. }
  18. if(!$metakeywords) {
  19. $metakeywords = $_G['setting']['navs'][1]['navname'];
  20. }
  21. if(!$metadescription) {
  22. $metadescription = $_G['setting']['navs'][1]['navname'];
  23. }
  24. if(isset($_G['makehtml'])){
  25. helper_makehtml::portal_index();
  26. }
  27. //include_once template('diy:portal/index');
  28. //print_r(template('diy:portal/index_sg'));
  29. if(isset($_GET['mobile']) && $_GET['mobile'] == 2) {
  30. include_once template('diy:portal/index');
  31. } else {
  32. include_once template('diy:portal/index_sg');
  33. }
  34. ?>