index.php 693 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @version $Id: index.php 1 2010-06-30 11:43:09Z tianya $
  4. * @package DedeCMS.Site
  5. * @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
  6. * @license http://help.dedecms.com/usersguide/license.html
  7. * @link http://www.dedecms.com
  8. */
  9. require_once(dirname(__FILE__)."/../include/common.inc.php");
  10. require_once(DEDEINC."/arc.specview.class.php");
  11. if(strlen($art_shortname) > 6) exit("art_shortname too long!");
  12. $specfile = dirname(__FILE__)."spec_1".$art_shortname;
  13. //如果已经编译静态列表,则直接引入第一个文件
  14. if(file_exists($specfile))
  15. {
  16. include($specfile);
  17. exit();
  18. }
  19. else
  20. {
  21. $sp = new SpecView();
  22. $sp->Display();
  23. }