PHP168 whole station source code download

From , 5 Years ago, written in PHP, viewed 140 times.
URL https://pastebin.vip/view/3070e6ad
  1. 1、集成了文章、博客、下载、FLASH、图库、商店、视频于一体,轻易架设门户站
  2. 2、源代码全部开源不加密,可以很方便的进行二次开发。
  3. 3、功能极其的强大完善,集成了采集器功能,文章栏目支持无限级分类,支持自定义风格与模板,可以由栏目变成一个频道。
  4. 4、扩展性非常强,可以自由删除现有的模块或安装更多的其他模块。
  5. 5、可以很好的整合discuz论坛与phpwind论坛的用户系。最关键的是纯绿色整合,不修改原论坛的数据结构与程序文件,丝毫不影响原论坛的正常运行。
  6. 6、性能极其优秀,能承受大负载量数据,稳定,安全,快速是你搭建门户网站的首选。
  7. 7、真静态。
  8.  
  9. 特色:
  10. 1.源代码全部开源不加密,可以很方便的进行二次开发,可以说:在CMS界,开源的CMS源代码实属罕见
  11. 2.可以很好的满足个人,企业,门户建站的需要.
  12. 3.功能极其的强大完善,文章栏目支持无限级分类,支持自定义风格与模板,可以由栏目变成一个频道。
  13. 4.对广大用户而言,完全免费使用,并且在论坛提供免费技术支持.
  14. 5.扩展性非常强,可以自由安装官方提供下载、商城、图库、音乐、视频、博客等等模块。
  15. 6.可以很好的整合discuz论坛与phpwind论坛的用户系统.最关键的是纯绿色整合,不修改原论坛的数据结构与程序文件.丝毫不影响原论坛的正常运行。
  16. 7.还有更多的特色功能,尽在不言中,大家慢慢体会吧。
  17.  
  18. <?php
  19. if(file_exists(dirname(__FILE__)."/".'install.php')){
  20.         header("location:install.php");exit;
  21. }
  22. require(dirname(__FILE__)."/"."global.php");
  23. require(PHP168_PATH."php168/friendlink.php");
  24.  
  25. /*默认为主页频道*/
  26. $ch || $ch=1;
  27.  
  28. $chdb=$db->get_one(" SELECT * FROM {$pre}channel WHERE id='$ch' ");
  29. $head_tpl=$chdb[head_tpl];
  30. $foot_tpl=$chdb[foot_tpl];
  31. $chdb[style] && $STYLE=$chdb[style];            //频道定义了风格将以频道为主
  32.  
  33. //其他频道的SEO
  34. if($chdb[id]!=1)
  35. {
  36.         $titleDB[title]="$chdb[name] - $titleDB[title]";
  37.         $titleDB[keywords]=$titleDB[description]="$titleDB[title] - $titleDB[keywords]";
  38. }
  39.  
  40. /**
  41. *自动访问静态首页,处理有的服务器,index.php的访问优先于index.htm,或index.html
  42. **/
  43. if($webdb[MakeIndexHtmlTime]>0&&!$MakeIndex&&!$jobs&&is_file(PHP168_PATH.$chdb[htmlname])){
  44.         header("location:$webdb[www_url]/$chdb[htmlname]");
  45.         exit;
  46. }
  47.  
  48. /**
  49. *fid栏目FID定为0,pagetype页面类型定义0(其实为1的,省略方便些),module定义为0
  50. **/
  51. $ch_fid = $ch_pagetype = $ch_module = 0;
  52. require(PHP168_PATH."inc/label.php");
  53.  
  54.  
  55. /**
  56. *首页显示推荐栏目
  57. **/
  58. if($chdb[fids])
  59. {
  60.         $chdb[config]=unserialize($chdb[config]);
  61.         $fiddb_article=fiddb_article($chdb[fids],$chdb[config][rows]>0?$chdb[config][rows]:10,$chdb[config][leng]>0?$chdb[config][leng]:40,$chdb[config][order]?$chdb[config][order]:'list');
  62.         $fiddb_article || $fiddb_article=array();
  63. }
  64.  
  65. require(PHP168_PATH."inc/head.php");
  66. require(html("index",$chdb[main_tpl]));
  67. require(PHP168_PATH."inc/foot.php");
  68.  
  69. //伪静态
  70. if($webdb[NewsMakeHtml]==2)
  71. {
  72.         $content=ob_get_contents();
  73.         ob_end_clean();
  74.         ob_start();
  75.         $content=fake_html($content);
  76.         echo "$content";
  77. }
  78.  
  79. //真静态
  80. elseif($webdb[NewsMakeHtml]==1)
  81. {
  82.         $content=ob_get_contents();
  83.         ob_end_clean();
  84.         ob_start();                     //备用
  85.         $content=make_html($content,'index');
  86.         echo "$content";
  87. }
  88.  
  89.  
  90. /*首页生静态*/
  91. if( ($jobs!='show'&&$webdb[MakeIndexHtmlTime]>0) || $MakeIndex )
  92. {
  93.         if( $MakeIndex || (time()-@filemtime($chdb[htmlname])-$webdb[MakeIndexHtmlTime]*60)>0 )
  94.         {
  95.                 $webdb[MakeIndexHtmlTime] && $content.="<div style='display:none'><iframe src=$webdb[www_url]/job.php?ch=$ch&job=makeindex&phpname=$chdb[phpname]&htmlname=$chdb[htmlname]></iframe></div>";
  96.  
  97.                 write_file($chdb[htmlname],$content);
  98.  
  99.                 if($MakeIndex)
  100.                 {
  101.                         ob_end_clean();
  102.                         echo "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=$chdb[htmlname]'>";
  103.                         exit;
  104.                 }
  105.         }
  106. }
  107.  
  108. ?>

Reply to "PHP168 whole station source code download"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website