优化ctms-api语法、修复已知BUG;
主要修复ctms-api、dacms对PHP新版本的支持问题
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
/index.php
|
||||
/index-test.php
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
Options +FollowSymLinks
|
||||
IndexIgnore /
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . index.php
|
||||
@@ -1 +1 @@
|
||||
G3NDhCQkExiuKBjfZVGzepxplYrKw3eC
|
||||
MTWO07hqoQjRePhb5wX98mGDKL5YfstR
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -1,120 +0,0 @@
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
min-height: 100%;
|
||||
height: auto;
|
||||
margin: 0 auto -60px;
|
||||
padding: 0 0 60px;
|
||||
}
|
||||
|
||||
.wrap > .container {
|
||||
padding: 70px 15px 20px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
height: 60px;
|
||||
background-color: #f5f5f5;
|
||||
border-top: 1px solid #ddd;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.jumbotron .btn {
|
||||
font-size: 21px;
|
||||
padding: 14px 24px;
|
||||
}
|
||||
|
||||
.not-set {
|
||||
color: #c55;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* add sorting icons to gridview sort links */
|
||||
a.asc:after, a.desc:after {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
font-family: 'Glyphicons Halflings';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
a.asc:after {
|
||||
content: "\e151";
|
||||
}
|
||||
|
||||
a.desc:after {
|
||||
content: "\e152";
|
||||
}
|
||||
|
||||
.sort-numerical a.asc:after {
|
||||
content: "\e153";
|
||||
}
|
||||
|
||||
.sort-numerical a.desc:after {
|
||||
content: "\e154";
|
||||
}
|
||||
|
||||
.sort-ordinal a.asc:after {
|
||||
content: "\e155";
|
||||
}
|
||||
|
||||
.sort-ordinal a.desc:after {
|
||||
content: "\e156";
|
||||
}
|
||||
|
||||
.grid-view td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.grid-view .filters input,
|
||||
.grid-view .filters select {
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.hint-block {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.error-summary {
|
||||
color: #a94442;
|
||||
background: #fdf7f7;
|
||||
border-left: 3px solid #eed3d7;
|
||||
padding: 10px 20px;
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
|
||||
/* align the logout "link" (button in form) of the navbar */
|
||||
.nav li > form > button.logout {
|
||||
padding: 15px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.nav li > form > button.logout {
|
||||
display:block;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.nav > li > form > button.logout:focus,
|
||||
.nav > li > form > button.logout:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav > li > form > button.logout:focus {
|
||||
outline: none;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
# @Author: 嗨噜客科技(www.hiluker.cn) <fm453>
|
||||
# @Date: 1970-01-01T08:00:00+08:00
|
||||
# @Email: fm453@hiluker.com
|
||||
# @Last modified by: fm453
|
||||
# @Last modified time: 2024-07-12T15:26:54+08:00
|
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', FALSE);
|
||||
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||
date_default_timezone_set('PRC'); //设置时区为中国
|
||||
define('TIMESTAMP', time());
|
||||
define('HI_APP', 'ctms'); //给子项目设置的统一短标识
|
||||
//跨域设置
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/access.php');
|
||||
require(__DIR__ . '/../../cors.php');
|
||||
setheader();
|
||||
|
||||
require(__DIR__ . '/../../version.php');
|
||||
//YII框架初始化
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require(__DIR__ . '/../../common/config/bootstrap.php');
|
||||
require(__DIR__ . '/../config/bootstrap.php');
|
||||
require(__DIR__ . '/../../upload-' . HI_APP . '/index.php');
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/index.php');
|
||||
|
||||
// define('YII_APP', '/../../'.HI_APP.'-api');
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../../common/config/main.php'),
|
||||
require(__DIR__ . '/../config/main.php'),
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/config/db.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->init();
|
||||
$application->run();
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
# @Author: 嗨噜客科技(www.hiluker.cn) <fm453>
|
||||
# @Date: 1970-01-01T08:00:00+08:00
|
||||
# @Email: fm453@hiluker.com
|
||||
# @Last modified by: fm453
|
||||
# @Last modified time: 2024-07-01T14:44:59+08:00
|
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', TRUE);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
date_default_timezone_set('PRC'); //设置时区为中国
|
||||
define('TIMESTAMP', time());
|
||||
define('HI_APP', 'ctms'); //给子项目设置的统一短标识
|
||||
//跨域设置
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/access.php');
|
||||
require(__DIR__ . '/../../cors.php');
|
||||
setheader();
|
||||
|
||||
require(__DIR__ . '/../../version.php');
|
||||
//YII框架初始化
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require(__DIR__ . '/../../common/config/bootstrap.php');
|
||||
require(__DIR__ . '/../config/bootstrap.php');
|
||||
require(__DIR__ . '/../../upload-' . HI_APP . '/index.php');
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/index.php');
|
||||
|
||||
// define('YII_APP', '/../../'.HI_APP.'-api');
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../../common/config/main-local.php'),
|
||||
require(__DIR__ . '/../config/main-local.php'),
|
||||
require(__DIR__ . '/../../addons-' . HI_APP . '/config/db-local.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->init();
|
||||
$application->run();
|
||||
@@ -1,2 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Disallow: /
|
||||
|
||||
Reference in New Issue
Block a user