Просмотр исходного кода

Merge branch 'master' of https://gitee.com/ZhongBangKeJi/CRMEB

等风来 7 лет назад
Родитель
Сommit
691d5397f0
100 измененных файлов с 187 добавлено и 617 удалено
  1. 10 0
      .htaccess
  2. 4 1
      application/admin/controller/system/SystemAttachment.php
  3. 4 0
      application/admin/controller/widget/Images.php
  4. 2 2
      application/admin/view/public/style.php
  5. 1 1
      application/common.php
  6. 7 7
      application/config.php
  7. 3 2
      application/route.php
  8. 35 0
      application/routine/controller/Routine.php
  9. 1 1
      application/version.php
  10. 0 8
      application/wap/config.php
  11. 2 2
      application/wap/view/first/public/requirejs.html
  12. 17 5
      extend/service/RoutineService.php
  13. 1 1
      extend/service/UploadService.php
  14. 4 2
      index.php
  15. 29 0
      public/index.php
  16. 0 0
      public/install/.keep
  17. 0 0
      public/install/auto.php
  18. 0 0
      public/install/config.php
  19. 4 525
      install/crmeb.sql
  20. 0 0
      public/install/css/install.css
  21. 0 0
      public/install/images/.keep
  22. 0 0
      public/install/images/install/bg.png
  23. 0 0
      public/install/images/install/btn.png
  24. 0 0
      public/install/images/install/complete.png
  25. 0 0
      public/install/images/install/header.png
  26. 0 0
      public/install/images/install/icon.png
  27. 0 0
      public/install/images/install/icon_install.png
  28. 0 0
      public/install/images/install/ignore.png
  29. 0 0
      public/install/images/install/loading.gif
  30. 0 0
      public/install/images/install/logo.png
  31. 0 0
      public/install/images/install/pop_loading.gif
  32. 0 0
      public/install/images/install/step.png
  33. 0 0
      public/install/images/install/tab.png
  34. 0 0
      public/install/images/install/tips_system.png
  35. 38 19
      install/index.php
  36. 0 0
      public/install/index_sae.php
  37. 0 0
      public/install/js/ajaxForm.js
  38. 0 0
      public/install/js/jquery.js
  39. 0 0
      public/install/js/validate.js
  40. 0 0
      public/install/templates/footer.php
  41. 0 0
      public/install/templates/header.php
  42. 0 0
      public/install/templates/s2_sae.php
  43. 0 0
      public/install/templates/s3_sae.php
  44. 0 0
      public/install/templates/step1.php
  45. 22 38
      install/templates/step2.php
  46. 0 0
      public/install/templates/step3.php
  47. 0 0
      public/install/templates/step4.php
  48. 3 3
      install/templates/step5.php
  49. 0 0
      public/wap/first/static/bargain/css/FJL.picker.css
  50. 0 0
      public/wap/first/static/bargain/css/base.css
  51. 0 0
      public/wap/first/static/bargain/css/reset.css
  52. 0 0
      public/wap/first/static/bargain/css/style.css
  53. 0 0
      public/wap/first/static/bargain/css/swiper.min.css
  54. 0 0
      public/wap/first/static/bargain/font/iconfont.css
  55. 0 0
      public/wap/first/static/bargain/font/iconfont.eot
  56. 0 0
      public/wap/first/static/bargain/font/iconfont.js
  57. 0 0
      public/wap/first/static/bargain/font/iconfont.svg
  58. 0 0
      public/wap/first/static/bargain/font/iconfont.ttf
  59. 0 0
      public/wap/first/static/bargain/font/iconfont.woff
  60. 0 0
      public/wap/first/static/bargain/images/count-icon.png
  61. 0 0
      public/wap/first/static/bargain/images/cut-but-icon.png
  62. 0 0
      public/wap/first/static/bargain/images/cut-con-bg.png
  63. 0 0
      public/wap/first/static/bargain/images/cut-con-line.jpg
  64. 0 0
      public/wap/first/static/bargain/images/cut-con-line.png
  65. 0 0
      public/wap/first/static/bargain/images/cut-con-mask.png
  66. 0 0
      public/wap/first/static/bargain/images/cut-con-title.png
  67. 0 0
      public/wap/first/static/bargain/images/cut-list-bg.jpg
  68. 0 0
      public/wap/first/static/bargain/images/member-binding-line.png
  69. 0 0
      public/wap/first/static/bargain/images/member-binding-line2.png
  70. 0 0
      public/wap/first/static/bargain/images/new-page-banner.jpg
  71. 0 0
      public/wap/first/static/bargain/images/new-page-pic.jpg
  72. 0 0
      public/wap/first/static/bargain/images/newtext.png
  73. 0 0
      public/wap/first/static/bargain/images/order-list.jpg
  74. 0 0
      public/wap/first/static/bargain/images/order-submission.jpg
  75. 0 0
      public/wap/first/static/bargain/images/owl_happy.png
  76. 0 0
      public/wap/first/static/bargain/images/promotion-bg.png
  77. 0 0
      public/wap/first/static/bargain/images/time-icon.png
  78. 0 0
      public/wap/first/static/bargain/js/FJL.min.js
  79. 0 0
      public/wap/first/static/bargain/js/FJL.picker.min.js
  80. 0 0
      public/wap/first/static/bargain/js/jquery-2.1.4.min.js
  81. 0 0
      public/wap/first/static/bargain/js/media.js
  82. 0 0
      public/wap/first/static/bargain/js/media_750.js
  83. 0 0
      public/wap/first/static/bargain/js/swiper.min.js
  84. 0 0
      public/wap/first/static/crmeb/css/service.css
  85. 0 0
      public/wap/first/static/crmeb/css/store_service.css
  86. 0 0
      public/wap/first/static/crmeb/css/style.css
  87. 0 0
      public/wap/first/static/crmeb/font/iconfont.css
  88. 0 0
      public/wap/first/static/crmeb/font/iconfont.eot
  89. 0 0
      public/wap/first/static/crmeb/font/iconfont.js
  90. 0 0
      public/wap/first/static/crmeb/font/iconfont.svg
  91. 0 0
      public/wap/first/static/crmeb/font/iconfont.ttf
  92. 0 0
      public/wap/first/static/crmeb/font/iconfont.woff
  93. 0 0
      public/wap/first/static/crmeb/images/001.jpg
  94. 0 0
      public/wap/first/static/crmeb/images/1.png
  95. 0 0
      public/wap/first/static/crmeb/images/address-icon01.png
  96. 0 0
      public/wap/first/static/crmeb/images/addto-pic.png
  97. 0 0
      public/wap/first/static/crmeb/images/audit-status.png
  98. 0 0
      public/wap/first/static/crmeb/images/avatar.jpg
  99. 0 0
      public/wap/first/static/crmeb/images/banner.jpg
  100. 0 0
      application/wap/view/first/static/wap/crmeb/images/banner1.jpg

+ 10 - 0
.htaccess

@@ -0,0 +1,10 @@
+RewriteEngine
+on
+
+#不显示index.php
+
+RewriteCond %{REQUEST_FILENAME}
+!-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule ^(.*)$ index.php/$1
+[QSA,PT,L]

+ 4 - 1
application/admin/controller/system/SystemAttachment.php

@@ -24,9 +24,12 @@ class SystemAttachment extends AuthController
         if($res->status==false && $res->error){
             exit(json_encode(['state'=>$res->error]));
         }
-        $fileInfo = $res->fileInfo->getinfo();
         //产品图片上传记录
         $fileInfo = $res->fileInfo->getinfo();
+        //入口是public需要替换图片路径
+        if(strpos(PUBILC_PATH,'public') == false){
+            $res->dir = str_replace('public/','',$res->dir);
+        }
         SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,'',0);
         $info = array(
             "originalName" => $fileInfo['name'],

+ 4 - 0
application/admin/controller/widget/Images.php

@@ -56,6 +56,10 @@ class Images extends AuthController
         $res = Upload::image('file',$pid.'/'.date('Ymd'));
         //产品图片上传记录
         $fileInfo = $res->fileInfo->getinfo();
+        //入口是public需要替换图片路径
+        if(strpos(PUBILC_PATH,'public') == false){
+            $res->dir = str_replace('public/','',$res->dir);
+        }
         SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,'',$pid);
         $info = array(
 //            "originalName" => $fileInfo['name'],

+ 2 - 2
application/admin/view/public/style.php

@@ -5,7 +5,7 @@
     requirejs.config({
         map: {
             '*': {
-                'css': '/public/static/plug/requirejs/require-css.js'
+                'css': "{__PUBLIC_PATH}static/plug/requirejs/require-css.js"
             }
         },
         shim:{
@@ -16,7 +16,7 @@
                 deps:['css!layercss']
             }
         },
-        baseUrl:'//'+location.hostname+'/public',
+        baseUrl:'//'+location.hostname+"{__PUBLIC_PATH}",
         paths: {
             'static':'static',
             'system':'system',

+ 1 - 1
application/common.php

@@ -20,7 +20,7 @@
 function sensitive_words_filter($str)
 {
     if (!$str) return '';
-    $file = ROOT_PATH. 'public/static/plug/censorwords/CensorWords';
+    $file = ROOT_PATH. PUBILC_PATH.'static/plug/censorwords/CensorWords';
     $words = file($file);
     foreach($words as $word)
     {

+ 7 - 7
application/config.php

@@ -144,13 +144,13 @@ return [
 
     // 视图输出字符串内容替换
     'view_replace_str'       => [
-        '{__ADMIN_PATH}'=>'/public/system/',
-        '{__FRAME_PATH}'=>'/public/system/frame/',
-        '{__PLUG_PATH}'=>'/public/static/plug/',
-        '{__MODULE_PATH}'=>'/public/system/module/',
-        '{__STATIC_PATH}'=>'/public/static/',
-        '{__PUBLIC_PATH}'=>'/public/',
-        '{__WAP_PATH}'=>'/public/wap/'
+        '{__ADMIN_PATH}'=>PUBILC_PATH.'system/',
+        '{__FRAME_PATH}'=>PUBILC_PATH.'system/frame/',
+        '{__PLUG_PATH}'=>PUBILC_PATH.'static/plug/',
+        '{__MODULE_PATH}'=>PUBILC_PATH.'system/module/',
+        '{__STATIC_PATH}'=>PUBILC_PATH.'static/',
+        '{__PUBLIC_PATH}'=>PUBILC_PATH,
+        '{__WAP_PATH}'=>PUBILC_PATH.'wap/first/static/'
     ],
     // 默认跳转页面对应的模板文件
     'dispatch_success_tmpl'  => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',

+ 3 - 2
application/route.php

@@ -9,9 +9,10 @@
 // | Author: liu21st <liu21st@gmail.com>
 // +----------------------------------------------------------------------
 use \think\Route;
-
+//兼容模式 不支持伪静态可开启
+//\think\Url::root('index.php?s=');
 Route::group('admin',function(){
-    Route::rule('/index2','admin/Index/index2','get');
+//    Route::rule('/index2','admin/Index/index2','get');
 //    Route::controller('index','admin/Index');
 //    resource('system_menus','SystemMenus');
 //    Route::rule('/menus','SystemMenus','get');

+ 35 - 0
application/routine/controller/Routine.php

@@ -0,0 +1,35 @@
+<?php
+namespace app\wap\controller;
+
+use service\WechatService;
+
+
+/**
+ * 微信服务器  验证控制器
+ * Class Wechat
+ * @package app\wap\controller
+ */
+class Wechat
+{
+
+    /**
+     * 微信服务器  验证
+     */
+    public function serve()
+    {
+        WechatService::serve();
+    }
+
+    /**
+     *   支付  异步回调
+     */
+    public function notify()
+    {
+        WechatService::handleNotify();
+    }
+
+
+
+}
+
+

+ 1 - 1
application/version.php

@@ -1,2 +1,2 @@
-version=v2.0
+version=v2.5
 version_code=129

+ 0 - 8
application/wap/config.php

@@ -36,14 +36,6 @@ return [
         // 标签库标签结束标记
         'taglib_end'   => '}',
     ],
-    // 视图输出字符串内容替换
-    'view_replace_str'       => [
-        '{__PLUG_PATH}'=>'/public/static/plug/',
-        '{__STATIC_PATH}'=>'/public/static/',
-        '{__PUBLIC_PATH}'=>'/public/',
-        '{__WAP_PATH}'=>'/application/wap/view/first/static/wap/'
-    ],
-
     'exception_handle' =>\basic\WapException::class,
     'empty_controller' =>'AuthController'
 ];

+ 2 - 2
application/wap/view/first/public/requirejs.html

@@ -4,7 +4,7 @@
         urlArgs: "v=201712230955",
         map: {
             '*': {
-                'css': '/public/static/plug/requirejs/require-css.js'
+                'css': "{__PLUG_PATH}requirejs/require-css.js"
             }
         },
         shim: {
@@ -24,7 +24,7 @@
                 deps: ['css!yduicss']
             }
         },
-        baseUrl: '//' + location.hostname + '/public',
+        baseUrl: '//' + location.hostname + "{__PUBLIC_PATH}",
         paths: {
             'static': 'static',
             'vue': 'static/plug/vue/dist/vue.min',

+ 17 - 5
extend/service/RoutineService.php

@@ -27,10 +27,10 @@ class RoutineService{
         $appid =        self::options()['routine_appId'] ? self::options()['routine_appId'] : '';//如果是公众号 就是公众号的appid
         $mch_id =       self::options()['pay_routine_mchid'] ? self::options()['pay_routine_mchid'] : '';
         $nonce_str =    self::nonce_str();//随机字符串
-        $spbill_create_ip = '118.190.105.59';
+        $spbill_create_ip = self::get_server_ip();
         $total_fee =    $fee*100;//因为充值金额最小是1 而且单位为分 如果是充值1元所以这里需要*100
         $trade_type = 'JSAPI';//交易类型 默认
-        $notify_url = SystemConfigService::get('site_url').Url::build('wechat/Index/notify');
+        $notify_url = SystemConfigService::get('site_url').Url::build('routine/Routine/notify');
         $post['appid'] = $appid;
         $post['attach'] = $attach;
         $post['body'] = $body;
@@ -43,9 +43,6 @@ class RoutineService{
         $post['total_fee'] = $total_fee;//总金额
         $post['trade_type'] = $trade_type;
         $sign = self::sign($post);//签名
-//        dump($sign);
-//        dump($post);
-//        exit();
         $post_xml = '<xml>
            <appid>'.$appid.'</appid>
            <attach>'.$attach.'</attach>
@@ -154,4 +151,19 @@ class RoutineService{
         }
         return $data;
     }
+
+    public static function get_server_ip() {
+        if (isset($_SERVER)) {
+            if($_SERVER['SERVER_ADDR']) {
+                $server_ip = $_SERVER['SERVER_ADDR'];
+            }
+            else {
+                $server_ip = $_SERVER['LOCAL_ADDR'];
+            }
+        }
+        else {
+            $server_ip = getenv('SERVER_ADDR');
+        }
+        return $server_ip;
+    }
 }

+ 1 - 1
extend/service/UploadService.php

@@ -79,7 +79,7 @@ class UploadService
      */
     protected static function uploadDir($path, $root=null)
     {
-        if($root === null) $root = 'public' . DS . 'uploads';
+        if($root === null) $root = 'public/' . 'uploads';
         return $root . DS . $path;
     }
 

+ 4 - 2
index.php

@@ -12,16 +12,18 @@ if(version_compare(PHP_VERSION,'5.5.9','<'))  die('require PHP > 5.5.9 !');
 //error_reporting(E_ALL ^ E_NOTICE);//显示除去 E_NOTICE 之外的所有错误信息
 error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误
 //检测是否已安装CrmEb系统
-if(file_exists("./install/") && !file_exists("./install/install.lock")){
+if(file_exists("./public/install/") && !file_exists("./public/install/install.lock")){
     if($_SERVER['PHP_SELF'] != '/index.php'){
         header("Content-type: text/html; charset=utf-8");
         exit("请在域名根目录下安装,如:<br/> www.xxx.com/index.php 正确 <br/>  www.xxx.com/www/index.php 错误,域名后面不能圈套目录, 但项目没有根目录存放限制,可以放在任意目录,apache虚拟主机配置一下即可");
     }
-    header('Location:/install/index.php');
+    header('Location:/public/install/index.php');
     exit();
 }
 // [ 应用入口文件 ]
 // 定义应用目录
 define('APP_PATH', __DIR__ . '/application/');
+//静态文件目录
+define('PUBILC_PATH', '/public/');
 // 加载框架引导文件
 require __DIR__ . '/thinkphp/start.php';

+ 29 - 0
public/index.php

@@ -0,0 +1,29 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkPHP [ WE CAN DO IT JUST THINK ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
+// +----------------------------------------------------------------------
+// | Author: honor <rongyao_xu@163.com>
+// +----------------------------------------------------------------------
+
+// 检测PHP环境
+if(version_compare(PHP_VERSION,'5.5.9','<'))  die('require PHP > 5.5.9 !');
+//error_reporting(E_ALL ^ E_NOTICE);//显示除去 E_NOTICE 之外的所有错误信息
+error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误
+//检测是否已安装CrmEb系统
+if(file_exists("./install/") && !file_exists("./install/install.lock")){
+    if($_SERVER['PHP_SELF'] != '/index.php'){
+        header("Content-type: text/html; charset=utf-8");
+        exit("请在域名根目录下安装,如:<br/> www.xxx.com/index.php 正确 <br/>  www.xxx.com/www/index.php 错误,域名后面不能圈套目录, 但项目没有根目录存放限制,可以放在任意目录,apache虚拟主机配置一下即可");
+    }
+    header('Location:/install/index.php');
+    exit();
+}
+// [ 应用入口文件 ]
+// 定义应用目录
+define('APP_PATH', __DIR__ . '/../application/');
+//静态文件目录
+define('PUBILC_PATH', '/');
+// 加载框架引导文件
+require __DIR__ . '/../thinkphp/start.php';

install/.keep → public/install/.keep


install/auto.php → public/install/auto.php


install/config.php → public/install/config.php


Разница между файлами не показана из-за своего большого размера
+ 4 - 525
install/crmeb.sql


install/css/install.css → public/install/css/install.css


install/images/.keep → public/install/images/.keep


install/images/install/bg.png → public/install/images/install/bg.png


install/images/install/btn.png → public/install/images/install/btn.png


install/images/install/complete.png → public/install/images/install/complete.png


install/images/install/header.png → public/install/images/install/header.png


install/images/install/icon.png → public/install/images/install/icon.png


install/images/install/icon_install.png → public/install/images/install/icon_install.png


install/images/install/ignore.png → public/install/images/install/ignore.png


install/images/install/loading.gif → public/install/images/install/loading.gif


install/images/install/logo.png → public/install/images/install/logo.png


install/images/install/pop_loading.gif → public/install/images/install/pop_loading.gif


install/images/install/step.png → public/install/images/install/step.png


install/images/install/tab.png → public/install/images/install/tab.png


install/images/install/tips_system.png → public/install/images/install/tips_system.png


+ 38 - 19
install/index.php

@@ -27,10 +27,11 @@ define("CRMEB_VERSION", '20180601');
 date_default_timezone_set('PRC');
 error_reporting(E_ALL & ~E_NOTICE);
 header('Content-Type: text/html; charset=UTF-8');
-define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -8)));
+define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -8)));//入口文件目录
+define('CRMEBDIR', _dir_path(substr(dirname(__FILE__), 0, -15)));//项目目录
 //define('SITEDIR2', substr(SITEDIR,0,-7));
-//echo SITEDIR2;
-//exit;
+//echo SITEDIR;
+//exit;SITEDIR
 //数据库
 $sqlFile = 'crmeb.sql';
 $configFile = 'config.php';
@@ -66,7 +67,7 @@ switch ($step) {
 
     case '2':
 
-        if (phpversion() < 5.5.9) {
+        if (phpversion() < 5.6) {
             die('本系统需要PHP5+MYSQL >=5.5.9环境,当前PHP版本为:' . phpversion());
         }
 
@@ -118,14 +119,23 @@ switch ($step) {
         	$file_put_contents = '<font color=red>[×]不支持</font>';
         	$err++;
         }
+        if(function_exists('bcadd')){
+            $BC = '<font color=green>[√]支持</font> ';
+        }else{
+            $BC = '<font color=red>[×]不支持</font>';
+            $err++;
+        }
+
         
         $folder = array(
-            'install',
+            'public/install',
             'public/uploads',
             'runtime',
             'runtime/cache',
 	    	'runtime/temp',
-	    	'runtime/log',        	
+	    	'runtime/log',
+            'application/database.php',
+            'application/config.php',
         );
         include_once ("./templates/step2.php");
         exit();
@@ -267,7 +277,7 @@ switch ($step) {
 						mysqli_query($conn,"truncate table ".$val[0]);
 					}		
 				}   	
-				delFile('../public/upload'); // 清空测试图片
+				delFile(CRMEBDIR.'/public/uploads'); // 清空测试图片
 			}
             //读取配置文件,并替换真实配置数据1
             $strConfig = file_get_contents(SITEDIR . 'install/' . $configFile);
@@ -279,8 +289,8 @@ switch ($step) {
             $strConfig = str_replace('#DB_PREFIX#', $dbPrefix, $strConfig);
             $strConfig = str_replace('#DB_CHARSET#', 'utf8', $strConfig);
             // $strConfig = str_replace('#DB_DEBUG#', false, $strConfig);
-            @chmod(SITEDIR . '/application/database.php',0777); //数据库配置文件的地址
-            @file_put_contents(SITEDIR . '/application/database.php', $strConfig); //数据库配置文件的地址
+            @chmod(CRMEBDIR . '/application/database.php',0777); //数据库配置文件的地址
+            @file_put_contents(CRMEBDIR . '/application/database.php', $strConfig); //数据库配置文件的地址
             
             //读取配置文件,并替换换配置
 //            $strConfig = file_get_contents(SITEDIR . '/application/config.php');
@@ -315,7 +325,7 @@ switch ($step) {
     case '5':
     	$ip = get_client_ip();
     	$host = $_SERVER['HTTP_HOST'];
-        $curent_version = file_get_contents(SITEDIR .'/application/version.php');
+        $curent_version = file_get_contents(CRMEBDIR .'/application/version.php');
         $time = time();
         $mt_rand_str = $create_date.sp_random_string(6);
         $str_constant = "<?php".PHP_EOL."define('INSTALL_DATE',".$time.");".PHP_EOL."define('SERIALNUMBER','".$mt_rand_str."');";
@@ -326,17 +336,26 @@ switch ($step) {
 }
 
 function testwrite($d) {
-    $tfile = "_test.txt";
-    $fp = @fopen($d . "/" . $tfile, "w");
-    if (!$fp) {
+    if(is_file($d)){
+        if(is_writeable($d)){
+            return true;
+        }
+        return false;
+
+    }else{
+        $tfile = "_test.txt";
+        $fp = @fopen($d . "/" . $tfile, "w");
+        if (!$fp) {
+            return false;
+        }
+        fclose($fp);
+        $rs = @unlink($d . "/" . $tfile);
+        if ($rs) {
+            return true;
+        }
         return false;
     }
-    fclose($fp);
-    $rs = @unlink($d . "/" . $tfile);
-    if ($rs) {
-        return true;
-    }
-    return false;
+
 }
 
 function sql_execute($sql, $tablepre) {

install/index_sae.php → public/install/index_sae.php


install/js/ajaxForm.js → public/install/js/ajaxForm.js


install/js/jquery.js → public/install/js/jquery.js


install/js/validate.js → public/install/js/validate.js


install/templates/footer.php → public/install/templates/footer.php


install/templates/header.php → public/install/templates/header.php


install/templates/s2_sae.php → public/install/templates/s2_sae.php


install/templates/s3_sae.php → public/install/templates/s3_sae.php


install/templates/step1.php → public/install/templates/step1.php


+ 22 - 38
install/templates/step2.php

@@ -82,15 +82,22 @@
         </tr>
 		<?php
 		foreach($folder as $dir){
-		     $Testdir = SITEDIR.$dir;
-			 //echo "<br/>";
-		         dir_create($Testdir);
-			 if(TestWrite($Testdir)){
-			     $w = '<span class="correct_span">&radic;</span>可写 ';
-			 }else{
-			     $w = '<span class="correct_span error_span">&radic;</span>不可写 ';
-				 $err++;
-			 }
+		     $Testdir = CRMEBDIR.$dir;
+//			 echo $Testdir."<br/>";
+            if(!is_file($Testdir)){
+                if(!is_dir($Testdir)){
+                    dir_create($Testdir);
+                }
+            }
+
+             if(testwrite($Testdir)){
+                 $w = '<span class="correct_span">&radic;</span>可写 ';
+             }else{
+                 $w = '<span class="correct_span error_span">&radic;</span>不可写 ';
+                 $err++;
+             }
+
+
 			 if(is_readable($Testdir)){
 			     $r = '<span class="correct_span">&radic;</span>可读' ;
 			 }else{
@@ -106,35 +113,7 @@
 		        </tr>
 		<?php
 		}                
-		?>   
-                <tr>
-                  <td>application/database.php</td>
-                  <td>读写</td>
-                  <?php
-                     if (is_writable(SITEDIR.'application/database.php')){
-                        echo "<td><span class='correct_span'>√</span>可写 </td>
-                              <td><span class='correct_span'>√</span>可读</td>";                 
-                     }else{
-                         $err++;
-                        echo "<td><span class='correct_span error_span'>&radic;</span>不可写 </td>
-                              <td><span class='correct_span error_span'>&radic;</span>不可读</td>";                        
-                     }
-                  ?>
-                </tr>            
-                <tr>
-                  <td>application/config.php</td>
-                  <td>读写</td>
-                  <?php
-                     if (is_writable(SITEDIR.'application/config.php')){
-                        echo "<td><span class='correct_span'>√</span>可写 </td>
-                              <td><span class='correct_span'>√</span>可读</td>";                 
-                     }else{
-                         $err++;
-                        echo "<td><span class='correct_span error_span'>&radic;</span>不可写 </td>
-                              <td><span class='correct_span error_span'>&radic;</span>不可读</td>";                        
-                     }
-                  ?>
-                </tr>                                 
+		?>
       </table>
       <table width="100%">
         <tr>
@@ -154,6 +133,11 @@
           <td>建议开启</td>
           <td><?php echo $file_put_contents; ?></td>
           <td>--</td>
+        </tr> <tr>
+          <td>BC</td>
+          <td>必须扩展</td>
+          <td><?php echo $BC; ?></td>
+          <td>--</td>
         </tr>
       </table>
     </div>

install/templates/step3.php → public/install/templates/step3.php


install/templates/step4.php → public/install/templates/step4.php


+ 3 - 3
install/templates/step5.php

@@ -8,7 +8,7 @@
 <?php 
 $uri = $_SERVER['REQUEST_URI'];
 $root = substr($uri, 0,strpos($uri, "install"));
-$admin = $root."../index.php/Admin/admin/";
+$admin = $root."../index.php/admin/index/";
 ?>
 </head>
 <body>
@@ -20,8 +20,8 @@ $admin = $root."../index.php/Admin/admin/";
 		<p>为了您站点的安全,安装完成后即可将网站根目录下的“install”文件夹删除,或者/install/目录下创建install.lock文件防止重复安装。<p>
       </div>
 	        <div class="bottom tac"> 
-	        <a href="../index.php/wap/" class="btn">进入前台</a>
-	        <a href="../index.php//admin/login/index.html" class="btn btn_submit J_install_btn">进入后台</a>
+	        <a href="<?php echo 'http://'.$host;?>/index.php/wap/" class="btn">进入前台</a>
+	        <a href="<?php echo 'http://'.$host;?>/index.php/admin/login/index" class="btn btn_submit J_install_btn">进入后台</a>
       </div>
       <div class=""> </div>
     </div>

application/wap/view/first/static/wap/bargain/css/FJL.picker.css → public/wap/first/static/bargain/css/FJL.picker.css


application/wap/view/first/static/wap/bargain/css/base.css → public/wap/first/static/bargain/css/base.css


application/wap/view/first/static/wap/bargain/css/reset.css → public/wap/first/static/bargain/css/reset.css


application/wap/view/first/static/wap/bargain/css/style.css → public/wap/first/static/bargain/css/style.css


application/wap/view/first/static/wap/bargain/css/swiper.min.css → public/wap/first/static/bargain/css/swiper.min.css


application/wap/view/first/static/wap/bargain/font/iconfont.css → public/wap/first/static/bargain/font/iconfont.css


application/wap/view/first/static/wap/bargain/font/iconfont.eot → public/wap/first/static/bargain/font/iconfont.eot


application/wap/view/first/static/wap/bargain/font/iconfont.js → public/wap/first/static/bargain/font/iconfont.js


application/wap/view/first/static/wap/bargain/font/iconfont.svg → public/wap/first/static/bargain/font/iconfont.svg


application/wap/view/first/static/wap/bargain/font/iconfont.ttf → public/wap/first/static/bargain/font/iconfont.ttf


application/wap/view/first/static/wap/bargain/font/iconfont.woff → public/wap/first/static/bargain/font/iconfont.woff


application/wap/view/first/static/wap/bargain/images/count-icon.png → public/wap/first/static/bargain/images/count-icon.png


application/wap/view/first/static/wap/bargain/images/cut-but-icon.png → public/wap/first/static/bargain/images/cut-but-icon.png


application/wap/view/first/static/wap/bargain/images/cut-con-bg.png → public/wap/first/static/bargain/images/cut-con-bg.png


application/wap/view/first/static/wap/bargain/images/cut-con-line.jpg → public/wap/first/static/bargain/images/cut-con-line.jpg


application/wap/view/first/static/wap/bargain/images/cut-con-line.png → public/wap/first/static/bargain/images/cut-con-line.png


application/wap/view/first/static/wap/bargain/images/cut-con-mask.png → public/wap/first/static/bargain/images/cut-con-mask.png


application/wap/view/first/static/wap/bargain/images/cut-con-title.png → public/wap/first/static/bargain/images/cut-con-title.png


application/wap/view/first/static/wap/bargain/images/cut-list-bg.jpg → public/wap/first/static/bargain/images/cut-list-bg.jpg


application/wap/view/first/static/wap/bargain/images/member-binding-line.png → public/wap/first/static/bargain/images/member-binding-line.png


application/wap/view/first/static/wap/bargain/images/member-binding-line2.png → public/wap/first/static/bargain/images/member-binding-line2.png


application/wap/view/first/static/wap/bargain/images/new-page-banner.jpg → public/wap/first/static/bargain/images/new-page-banner.jpg


application/wap/view/first/static/wap/bargain/images/new-page-pic.jpg → public/wap/first/static/bargain/images/new-page-pic.jpg


application/wap/view/first/static/wap/bargain/images/newtext.png → public/wap/first/static/bargain/images/newtext.png


application/wap/view/first/static/wap/bargain/images/order-list.jpg → public/wap/first/static/bargain/images/order-list.jpg


application/wap/view/first/static/wap/bargain/images/order-submission.jpg → public/wap/first/static/bargain/images/order-submission.jpg


application/wap/view/first/static/wap/bargain/images/owl_happy.png → public/wap/first/static/bargain/images/owl_happy.png


application/wap/view/first/static/wap/bargain/images/promotion-bg.png → public/wap/first/static/bargain/images/promotion-bg.png


application/wap/view/first/static/wap/bargain/images/time-icon.png → public/wap/first/static/bargain/images/time-icon.png


application/wap/view/first/static/wap/bargain/js/FJL.min.js → public/wap/first/static/bargain/js/FJL.min.js


application/wap/view/first/static/wap/bargain/js/FJL.picker.min.js → public/wap/first/static/bargain/js/FJL.picker.min.js


application/wap/view/first/static/wap/bargain/js/jquery-2.1.4.min.js → public/wap/first/static/bargain/js/jquery-2.1.4.min.js


application/wap/view/first/static/wap/bargain/js/media.js → public/wap/first/static/bargain/js/media.js


application/wap/view/first/static/wap/bargain/js/media_750.js → public/wap/first/static/bargain/js/media_750.js


application/wap/view/first/static/wap/bargain/js/swiper.min.js → public/wap/first/static/bargain/js/swiper.min.js


application/wap/view/first/static/wap/crmeb/css/service.css → public/wap/first/static/crmeb/css/service.css


application/wap/view/first/static/wap/crmeb/css/store_service.css → public/wap/first/static/crmeb/css/store_service.css


application/wap/view/first/static/wap/crmeb/css/style.css → public/wap/first/static/crmeb/css/style.css


application/wap/view/first/static/wap/crmeb/font/iconfont.css → public/wap/first/static/crmeb/font/iconfont.css


application/wap/view/first/static/wap/crmeb/font/iconfont.eot → public/wap/first/static/crmeb/font/iconfont.eot


application/wap/view/first/static/wap/crmeb/font/iconfont.js → public/wap/first/static/crmeb/font/iconfont.js


application/wap/view/first/static/wap/crmeb/font/iconfont.svg → public/wap/first/static/crmeb/font/iconfont.svg


application/wap/view/first/static/wap/crmeb/font/iconfont.ttf → public/wap/first/static/crmeb/font/iconfont.ttf


application/wap/view/first/static/wap/crmeb/font/iconfont.woff → public/wap/first/static/crmeb/font/iconfont.woff


application/wap/view/first/static/wap/crmeb/images/001.jpg → public/wap/first/static/crmeb/images/001.jpg


application/wap/view/first/static/wap/crmeb/images/1.png → public/wap/first/static/crmeb/images/1.png


application/wap/view/first/static/wap/crmeb/images/address-icon01.png → public/wap/first/static/crmeb/images/address-icon01.png


application/wap/view/first/static/wap/crmeb/images/addto-pic.png → public/wap/first/static/crmeb/images/addto-pic.png


application/wap/view/first/static/wap/crmeb/images/audit-status.png → public/wap/first/static/crmeb/images/audit-status.png


application/wap/view/first/static/wap/crmeb/images/avatar.jpg → public/wap/first/static/crmeb/images/avatar.jpg


application/wap/view/first/static/wap/crmeb/images/banner.jpg → public/wap/first/static/crmeb/images/banner.jpg


+ 0 - 0
application/wap/view/first/static/wap/crmeb/images/banner1.jpg


Некоторые файлы не были показаны из-за большого количества измененных файлов