目录结构更新,增加composer支持
This commit is contained in:
8
web/.htaccess
Normal file
8
web/.htaccess
Normal file
@@ -0,0 +1,8 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
Options +FollowSymlinks -Multiviews
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
|
||||
</IfModule>
|
||||
BIN
web/favicon.ico
Normal file
BIN
web/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
24
web/index.php
Normal file
24
web/index.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// [ 应用入口文件 ]
|
||||
if(version_compare(PHP_VERSION,'5.4.0','<')) die('require PHP > 5.4.0 !');
|
||||
|
||||
// 定义应用目录
|
||||
define('APP_PATH', __DIR__ . '/../application/');
|
||||
define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, -10));
|
||||
|
||||
/**
|
||||
* 缓存目录设置
|
||||
* 此目录必须可写,建议移动到非WEB目录
|
||||
*/
|
||||
define ( 'RUNTIME_PATH', __DIR__ . '/../data/' );
|
||||
|
||||
// 加载框架引导文件
|
||||
require __DIR__ . '/../framework/start.php';
|
||||
2
web/robots.txt
Normal file
2
web/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
17
web/router.php
Normal file
17
web/router.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
|
||||
return false;
|
||||
} else {
|
||||
if (!isset($_SERVER['PATH_INFO'])) {
|
||||
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
|
||||
}
|
||||
require __DIR__ . "/index.php";
|
||||
}
|
||||
2
web/static/.gitignore
vendored
Normal file
2
web/static/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
1
web/template/default/index_index.html
Normal file
1
web/template/default/index_index.html
Normal file
@@ -0,0 +1 @@
|
||||
{__TPL__}
|
||||
9
web/template/default/info.php
Normal file
9
web/template/default/info.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
return array(
|
||||
'name' => '默认模板', //模板名称
|
||||
'remark' => '模板名称.', // 模板简单介绍
|
||||
'img' => 'logo.png', // 后台显示模板缩列图 相对于模板目录路径
|
||||
'type' => 'pc', //模板类型,pc为PC端模板,mobile为手机端模板
|
||||
'version' => 'v1', // 模板版本
|
||||
'author' => '郭平平', // 作者
|
||||
);
|
||||
BIN
web/template/default/logo.png
Normal file
BIN
web/template/default/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 203 KiB |
1
web/template/default/user/index.html
Normal file
1
web/template/default/user/index.html
Normal file
@@ -0,0 +1 @@
|
||||
测试
|
||||
Reference in New Issue
Block a user