Kirin 4 роки тому
батько
коміт
370dba2bac

+ 5 - 0
.htaccess

@@ -0,0 +1,5 @@
+location / {
+	if (!-e $request_filename){
+		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+	}
+}

+ 4 - 4
application/admin/lang/zh-cn/product/product.php

@@ -2,12 +2,12 @@
 
 return [
     'Id'              => 'ID',
-    'Title'           => '公司产品标题',
-    'Category_ids'    => '公司产品分类',
+    'Title'           => '文章标题',
+    'Category_ids'    => '文章分类',
     'Showswitch'      => '是否显示',
     'Loopswitch'      => '轮播图',
-    'Recommendswitch' => '畅销机型',
-    'Newswitch'       => '新品推荐',
+    'Recommendswitch' => '首页推荐',
+    'Newswitch'       => '最新文章',
     'Coverimage'      => '封面图片',
     'Bigimage'        => '大图片',
     'Author'          => '作者',

+ 1 - 1
application/admin/lang/zh-cn/product/product_langs.php

@@ -2,7 +2,7 @@
 
 return [
     'Id'             => 'ID',
-    'Product_id'     => '所属公司产品',
+    'Product_id'     => '所属文章',
     'Langlist'       => '语言',
     'Langlist zh-cn' => '中文',
     'Langlist en'    => 'English',

+ 2 - 1
application/admin/model/article/Article.php

@@ -97,9 +97,10 @@ class Article extends Model
             $model->where('find_in_set(' . $where['category_id'] . ',category_ids)');
         }
         $model = $model->order('weigh', 'desc')
-            ->field('id,title,coverimage,category_ids,visit,synopsis,author,createtime,updatetime');
+            ->field('id,title,coverimage,category_ids,visit,synopsis,author,createtime,updatetime,content');
         $list = $model->page((int)($where['page'] ?? 1), (int)($where['limit'] ?? 10))
             ->select();
+//        var_dump($list);
         //var_dump(self::getLastSql());
         foreach ($list as &$item) {
             $cate = function ($item) use ($where) {

+ 1 - 1
application/admin/model/product/Product.php

@@ -98,7 +98,7 @@ class Product extends Model
             $model->where('find_in_set(' . $where['category_id'] . ',category_ids)');
         }
         $model = $model->order('weigh', 'desc')
-            ->field('id,title,coverimage,bigimage,category_ids,visit,synopsis,author,createtime,updatetime');
+            ->field('id,title,coverimage,bigimage,category_ids,visit,synopsis,author,createtime,updatetime,content');
         $list = $model->page((int)($where['page'] ?? 1), (int)($where['limit'] ?? 10))
             ->select();
         //var_dump(self::getLastSql());

+ 7 - 9
application/extra/site.php

@@ -13,11 +13,7 @@ return [
     ],
     'fixedpage' => 'general/config',
     'categorytype' => [
-        'about' => '关于我们',
-        'cases' => '方案案例',
-        'product' => '公司产品',
-        'article' => '公司介绍',
-        'story' => '创业故事',
+        'product' => '文章',
     ],
     'configgroup' => [
         'basic' => 'Basic',
@@ -35,10 +31,12 @@ return [
         'en' => 'English',
         'es' => 'Español',
     ],
-    'company_cover' => '<p>风发发发撒娇多耨撒多多多多多多多多多都ID你搜爱你都is安东is按哦蒂娜松动as弄得那艘in都爱</p><p><br></p>',
-    'about_us' => '<p>强求请求群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群群</p>',
+    'company_cover' => '<p><br></p><div class="index-module_textWrap_3ygOc" style="margin-top: 22px; font-family: arial; font-size: 12px;"><p style="margin-bottom: 0px; padding: 0px; font-size: 16px; line-height: 24px; color: rgb(51, 51, 51); text-align: justify;"><span class="bjh-p">报道称,印度总理莫迪当天敦促所有公民接种新冠疫苗并保持警惕,称新冠肺炎感染“风暴”震动了印度。莫迪在广播讲话中说:<span class="bjh-strong" style="font-size: 18px; font-weight: 700;">“我们有信心。在成功应对第一波疫情后我们的士气高涨,但这场‘风暴’震动了全国。”</span></span></p></div><div class="index-module_textWrap_3ygOc" style="margin-top: 22px; font-family: arial; font-size: 12px;"><p style="margin-bottom: 0px; padding: 0px; font-size: 16px; line-height: 24px; color: rgb(51, 51, 51); text-align: justify;"><span class="bjh-p">另据法新社报道,印度官员25日称,由于该国新冠肺炎危机加剧、单日新增感染病例和死亡病例创下新高,首都新德里原计划为期一周的封锁措施将延长一周。</span></p></div>',
+    'about_us' => '<div class="index-module_textWrap_3ygOc" style="margin-top: 22px; font-family: arial; font-size: 12px;"><p style="margin-bottom: 0px; padding: 0px; font-size: 16px; line-height: 24px; color: rgb(51, 51, 51); text-align: justify;"><span class="bjh-p">报道称,印度总理莫迪当天敦促所有公民接种新冠疫苗并保持警惕,称新冠肺炎感染“风暴”震动了印度。莫迪在广播讲话中说:<span class="bjh-strong" style="font-size: 18px; font-weight: 700;">“我们有信心。在成功应对第一波疫情后我们的士气高涨,但这场‘风暴’震动了全国。”</span></span></p></div><div class="index-module_textWrap_3ygOc" style="margin-top: 22px; font-family: arial; font-size: 12px;"><p style="margin-bottom: 0px; padding: 0px; font-size: 16px; line-height: 24px; color: rgb(51, 51, 51); text-align: justify;"><span class="bjh-p">另据法新社报道,印度官员25日称,由于该国新冠肺炎危机加剧、单日新增感染病例和死亡病例创下新高,首都新德里原计划为期一周的封锁措施将延长一周。</span></p></div>',
     'banners' => [
-        '/uploads/20210420/745147dfc7b9212783896c88da6f4e7f.png',
-        '/uploads/20210420/b3ed940f0335ade4e451ff2b6ac4079f.png',
+        '/uploads/20210517/4f0be88dbfaf745f09c32e32e6cffdc6.jpg',
+        '/uploads/20210517/230b1964728fdbb519619f2df0986a44.jpg',
+        '/uploads/20210517/7bc9661e556fccaefe0fcecdf05a5ec0.jpg',
+        '/uploads/20210517/a0c9c33b0b53d6138e3741479b9572e6.jpg',
     ],
 ];

+ 66 - 0
error/400.html

@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>400 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 400 - Bad Request</h1>
+        <dl>
+          <dt>错误说明:因为错误的语法导致服务器无法理解请求信息。</dt>
+          <dt>原因1:客户端发起的请求不符合服务器对请求的某些限制,或者请求本身存在一定的错误。</dt>
+		  <dd>解决办法:</dd>
+          <dd>链接中有特殊字符或者链接长度过长导致,请对应修改.</dd>
+          <dt>原因2:request header 或者 cookie 过大所引起</dt>
+		  <dd>解决办法:</dd>
+          <dd>crtl+shift+delete 快捷键清除cookie.</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 66 - 0
error/403.html

@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>403 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>403 - Forbidden 禁止访问: 访问被拒绝</h1>
+        <dl>
+          <dt>错误说明:禁止访问,服务器拒绝访问</dt>
+          <dt>原因1:未找到默认的索引文件</dt>
+		  <dd>解决办法:</dd>
+          <dd>IIS中【启用默认内容文档】选项中将默认打开文档修改为程序首页文件格式,如:index.html或者index.php</dd>
+          <dt>原因2:文件夹安全权限导致</dt>
+		  <dd>解决办法:</dd>
+          <dd>程序文件-右击-属性-安全-Users-修改为读取和执行权限</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 75 - 0
error/404.html

@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>404 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 50px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>404 - Page Not Found 未找到</h1>
+        <dl>
+          <dt>错误说明:请求的页面不存在</dt>
+          <dt>原因1:访问的文档权限不够</dt>
+		  <dd>解决办法:</dd>
+          <dd>修改文件权限为755,windos系统修改目录权限为可写可读。</dd>
+          <dt>原因2:防火墙的原因</dt>
+		  <dd>解决办法:</dd>
+          <dd>先关闭让防火墙通过WWW服务。</dd>
+		  <dt>原因3:站点根目录无默认访问文件</dt>
+		  <dd>解决办法:</dd>
+          <dd>在根目录中创建index.html或者创建index.php。</dd>
+		  <dt>原因4:站点配置目录不正确</dt>
+		  <dd>解决办法:</dd>
+          <dd>将网站应用程序复制到站点目录中,或者修改站点配置目录指定到应用程序目录中。</dd>
+		  <dt>原因5:站点使用了伪静态</dt>
+		  <dd>解决办法:</dd>
+          <dd>将伪静态规则删除,或者重新编写正确的伪静态规则,或关闭伪静态配置。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 78 - 0
error/500.html

@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>500 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 40%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 50px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 500 - Internal Server Error 服务器内部错误</h1>
+        <dl>
+          <dt>错误说明:服务器内部错误,无法完成请求</dt>
+          <dt>原因1:伪静态规则不正确</dt>
+		  <dd>解决办法:</dd>
+          <dd>修改伪静态。</dd>
+          <dt>原因2:php版本与网站程序不兼容</dt>
+		  <dd>解决办法:</dd>
+          <dd>更换PHP版本。</dd>
+		  <dt>原因3:网站无法连接至数据库</dt>
+		  <dd>解决办法:</dd>
+          <dd>正确修改站点的数据库配置文件。</dd>
+		  <dt>原因4:php禁用了某一函数,需要开启</dt>
+		  <dd>解决办法:</dd>
+          <dd>开启相关禁用函数。</dd>
+		  <dt>原因5:站点需要访问站外目录</dt>
+		  <dd>解决办法:</dd>
+          <dd>关闭防跨站处理。</dd>
+		  <dt>原因6:源码本身有BUG</dt>
+		  <dd>解决办法:</dd>
+          <dd>修复源码bug。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 63 - 0
error/501.html

@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>501 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 501 - Not Implemented</h1>
+        <dl>
+          <dt>错误说明:服务器没有相应的执行动作来完成当前请求。</dt>
+          <dt>原因1:Web 服务器不支持实现此请求所需的功能</dt>
+		  <dd>解决办法:</dd>
+          <dd>可以用来HttpWebRequest指定一个UserAgent来试试的,有时候你可以换电脑来测试一下的。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 75 - 0
error/502.html

@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>502 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 50px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 502 - Bad Gateway 没有响应</h1>
+        <dl>
+          <dt>错误说明:坏的网关,http向后端节点请求,没有响应</dt>
+          <dt>原因1:DNS 缓冲</dt>
+		  <dd>解决办法:</dd>
+          <dd>在dos窗口运行 ipconfig /flushdns,该命令会刷新DNS缓冲。</dd>
+          <dt>原因2:浏览器代理</dt>
+		  <dd>解决办法:</dd>
+          <dd>关掉代理。</dd>
+		  <dt>原因3:dns 被劫持了,即使使用国外的dns,也会被劫持</dt>
+		  <dd>解决办法:</dd>
+          <dd>去掉VPN服务器的DNS。切换另外的dns。在windows系统中,可以在本地网络连接的属性中,去掉默认的dns,选用国外的dns,比如google的或opendns。</dd>
+		  <dt>原因4:php执行超时</dt>
+		  <dd>解决办法:</dd>
+          <dd>修改/usr/local/php/etc/php.ini 将max_execution_time 改为300。</dd>
+		  <dt>原因5:nginx等待时间超时</dt>
+		  <dd>解决办法:</dd>
+          <dd>适当增加nginx.conf配置文件中FastCGI的timeout时间。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 66 - 0
error/503.html

@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>503 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 503 - Service Unavailable 服务不可用</h1>
+        <dl>
+          <dt>错误说明:服务当前不可用</dt>
+          <dt>原因1:服务不可用状态</dt>
+		  <dd>解决办法:</dd>
+          <dd>服务器或许就是正在维护或者暂停了,你可以联系一下服务器空间商。</dd>
+          <dt>原因2:程序占用资源太多</dt>
+		  <dd>解决办法:</dd>
+          <dd>通过设置应用程序池把账户改为NetworkService即可解决。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 69 - 0
error/504.html

@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>504 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 50px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 504 - Gateway Timeout 网关超时</h1>
+        <dl>
+          <dt>错误说明:网关超时,服务器响应时间,达到超出设定的范围 </dt>
+          <dt>原因1:后端电脑之间 IP 通讯缓慢而产生</dt>
+		  <dd>解决办法:</dd>
+          <dd>如果您的 Web 服务器由某一网站托管, 只有负责那个网站设置的人员才能解决这个问题。</dd>
+          <dt>原因2:由于nginx默认的fastcgi进程响应的缓冲区太小造成的错误</dt>
+		  <dd>解决办法:</dd>
+          <dd>一般默认的fastcgi进程响应的缓冲区是8K,这时可以设置大一点,在nginx.conf里,加入:fastcgi_buffers 8 128k这表示设置fastcgi缓冲区为8块128k大小的空间。当然如果在进行某一项即时的操作, 可能需要nginx的超时参数调大点, 例如设置成60秒:send_timeout 60;经过这两个参数的调整,一般不会再提示“504 Gateway Time-out”错误,问题基本解决。</dd>
+		  <dt>原因3:PHP环境的配置问题</dt>
+		  <dd>解决办法:</dd>
+          <dd>更改php-fpm的几处配置: 把max_children由之前的10改为现在的30,这样就可以保证有充足的php-cgi进程可以被使用; 把request_terminate_timeout由之前的0s改为60s,这样php-cgi进程 处理脚本的超时时间就是60秒,可以防止进程都被挂起,提高利用效率。 接着再更改nginx的几个配置项,减少FastCGI的请求次数,尽量维持buffers不变: fastcgi_buffers由 4 64k 改为 2 256k; fastcgi_buffer_size 由 64k 改为 128K; fastcgi_busy_buffers_size 由 128K 改为 256K; fastcgi_temp_file_write_size 由 128K 改为 256K。 重新加载php-fpm和nginx的配置,再次测试,如果没有出现“504 Gateway Time-out”错误,问题解决。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 66 - 0
error/505.html

@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>505 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 505 - HTTP Version Not Supported</h1>
+        <dl>
+          <dt>错误说明:HTTP 版本不受支持。</dt>
+          <dt>原因1:您的 Web 服务器不支持,或拒绝支持客户端(如您的浏览器)在发送给服务器的 HTTP 请求数据流中指定的 HTTP 协议版本</dt>
+		  <dd>解决办法:</dd>
+          <dd>升级您的 Web 服务器软件。</dd>
+          <dt>原因2:http请求格式的错误</dt>
+		  <dd>解决办法:</dd>
+          <dd>对照一下自己的代码,从打印的信息中终于找到问题所在。可能在请求后面多加了一个空格。http协议真是很严格了。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 63 - 0
error/506.html

@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>506 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 506 - Variant Also Negotiates</h1>
+        <dl>
+          <dt>错误说明:</dt>
+          <dt>原因1:服务器存在内部配置错误</dt>
+		  <dd>解决办法:</dd>
+          <dd>被请求的协商变元资源被配置为在透明内容协商中使用自己,因此在一个协商处理中不是一个合适的重点。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 63 - 0
error/507.html

@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>507 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 507 - Insufficient Storage</h1>
+        <dl>
+          <dt>错误说明:</dt>
+          <dt>原因1:服务器无法存储完成请求所必须的内容</dt>
+		  <dd>解决办法:</dd>
+          <dd>这个状况被认为是临时的。WebDAV (RFC 4918)。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 63 - 0
error/509.html

@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>509 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 509 - Bandwidth Limit Exceeded</h1>
+        <dl>
+          <dt>错误说明:</dt>
+          <dt>原因1:网站流量已经超出您所购买的方案限制即服务器达到带宽限制</dt>
+		  <dd>解决办法:</dd>
+          <dd>1.升级方案 2.等到下个月后流量重新计算,网站即可正常浏览。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 63 - 0
error/510.html

@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>510 错误 - phpstudy</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>HTTP 510 - Not Extended</h1>
+        <dl>
+          <dt>错误说明:</dt>
+          <dt>原因1:获取资源所需要的策略并没有被满足</dt>
+		  <dd>解决办法:</dd>
+          <dd>需要请求有额外的扩展内容,服务器才能处理请求。</dd>
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 67 - 0
error/index.html

@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>站点创建成功-phpstudy for windows</title>
+  <meta name="keywords" content="">
+  <meta name="description" content="">
+  <meta name="renderer" content="webkit">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
+  <meta name="apple-mobile-web-app-capable" content="yes">
+  <meta name="format-detection" content="telephone=no">
+  <meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
+  <meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
+  <meta HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
+  <meta HTTP-EQUIV="expires" CONTENT="0">
+  <style>
+    body{
+      font: 16px arial,'Microsoft Yahei','Hiragino Sans GB',sans-serif;
+    }
+    h1{
+      margin: 0;
+      color:#3a87ad;
+      font-size: 26px;
+    }
+    .content{
+      width: 45%;
+      margin: 0 auto;
+     
+    }
+    .content >div{
+      margin-top: 200px;
+      padding: 20px;
+      background: #d9edf7;  
+      border-radius: 12px;
+    }
+    .content dl{
+      color: #2d6a88;
+      line-height: 40px;
+    } 
+    .content div div {
+      padding-bottom: 20px;
+      text-align:center;
+    }
+  </style>
+</head>
+<body>
+  <div class="content">
+      <div>
+           <h1>站点创建成功</h1>
+        <dl>
+          <dt>目录说明:</dt>
+          <dd>1:网站目录:/phpstudy安装目录/www/站点域名/</dd>
+          <dd>2:错误提示页面:/phpstudy安装目录/www/站点域名/error/</dd>
+          <dd>3:你可以删除或者修改该目录下的所有文件</dd>
+          <dt>操作注意事项:</dt>
+          <dd>1:新建站点、数据库、FTP可在phpstudy面板操作,数据库可在环境中下载数据库管理软件等;</dd>
+          <dd>2:将网站程序放到站点目录时请使用复制,剪切可能造成程序文件权限不正确;</dd>
+         
+        </dl>
+        <div>使用手册,视频教程,BUG反馈,官网地址: <a href="https://www.xp.cn"  target="_blank">www.xp.cn</a> </div>
+    
+      </div>
+    </div> 
+</body>
+</html>

+ 5 - 0
nginx.htaccess

@@ -0,0 +1,5 @@
+location / {
+	if (!-e $request_filename){
+		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+	}
+}

+ 5 - 0
public/nginx.htaccess

@@ -0,0 +1,5 @@
+location / {
+	if (!-e $request_filename){
+		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+	}
+}