|
8 年之前 | |
---|---|---|
application | 8 年之前 | |
extend | 8 年之前 | |
static | 8 年之前 | |
thinkphp | 8 年之前 | |
vendor | 8 年之前 | |
.gitattributes | 8 年之前 | |
.gitignore | 8 年之前 | |
.htaccess | 8 年之前 | |
LICENSE | 8 年之前 | |
README.md | 8 年之前 | |
_composer.cmd | 8 年之前 | |
composer.json | 8 年之前 | |
index.php | 8 年之前 | |
think.admin.sql | 8 年之前 |
Think.Admin
是一个基于Thinkphp5
开发的后台管理系统,集成后台系统常用功能。
项目安装请参考ThinkPHP
官方文档及下面的服务环境说明,数据库sql
文件存放于项目根目录下。
注意:项目测试请另行搭建环境并创建数据库(数据库配置application/database.php
), 切勿直接使用测试环境数据!
Think.Admin
已集成模块RBAC
权限管理(用户、权限、节点、菜单控制)Http
服务组件(原生CURL
封装,兼容PHP多版本)PHP
版本不低于PHP5.4
,推荐使用PHP7
以达到最优效果PATHINFO
,项目不支持ThinkPHP
的URL
兼容模式运行(源于如何优雅的展示)Apache
:已在项目根目录加入.htaccess
文件,只需开启rewrite
模块<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>
Nginx
:配置参考下面的demo
代码
server {
listen 80;
server_name wealth.demo.cuci.cc;
root /home/wwwroot/Think.Admin;
index index.php index.html index.htm;
add_header X-Powered-Host $hostname;
fastcgi_hide_header X-Powered-By;
if (!-e $request_filename) {
rewrite ^/(.+?\.php)/?(.*)$ /$1/$2 last;
rewrite ^/(.*)$ /index.php/$1 last;
}
location ~ \.php($|/){
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
set $real_script_name $fastcgi_script_name;
if ($real_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
}
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param PHP_VALUE open_basedir=$document_root:/tmp/:/proc/;
access_log /home/wwwlog/domain_access.log access;
error_log /home/wwwlog/domain_error.log error;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
access_log off;
error_log off;
expires 30d;
}
location ~ .*\.(js|css)?$ {
access_log off;
error_log off;
expires 12h;
}
}