Advertisement
Guest User

backup

a guest
Oct 18th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * 网站框架首页文件
  5. *
  6. * @author Arthur(ArthurXF@gmail.com)
  7. * @copyright (c) 2006 by bizeway.com
  8. * @version $Id$
  9. * @package ArthurXF
  10. */
  11. require_once('config/config.inc.php');
  12. $objWebInit = new ArthurXF();
  13.  
  14. if(empty($arrGPdoDB['db_name']) || empty($arrGPdoDB['db_user'])){
  15. header("Location: $arrGWeb[WEB_ROOT_pre]/install/");
  16. exit;
  17. }
  18.  
  19. //数据库连接参数
  20. $objWebInit->setDBG($arrGPdoDB);
  21. $objWebInit->db();
  22. //smarty参数
  23. $objWebInit->arrGSmarty = $arrGSmarty;
  24.  
  25.  
  26. //产品分类
  27. include 'product/block/top_index.php';
  28. include 'product/block/index_type.php';
  29. include 'brand/block/top_index.php';
  30. //单页信息
  31. include 'archives/block/top_index.php';
  32. //include 'download/block/top_index.php';
  33. // 新闻
  34. //include 'news/block/top_index.php';
  35. //客户
  36. include 'client/block/top_index.php';
  37. //风采
  38. include 'grace/block/top_index.php';
  39. //积分
  40. include 'largess/block/top_index.php';
  41. //资质
  42. include 'qualification/block/top_index.php';
  43. //友情图片链结
  44. //include 'links/block/top_index.php';
  45. //友情文字链结
  46. include 'links/block/topwordlink.php';
  47. //全站公用block
  48. @include '_block.php';
  49.  
  50.  
  51. //输出到模板
  52. $arrMOutput["smarty_assign"]['MAIN'] = 'index.html';
  53. $objWebInit->output($arrMOutput);
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement