#WebRtcXSS ###所有代码是基于ThinkPHP框架开发的
作者:Black-Hole
###注意:
-
数据库配置在
/Application/Home/Conf/config.php
里 -
如果出现
ERROR 1067 (42000) at line 22: Invalid default value for ‘create_time’
错误
请移步 http://blog.csdn.net/xionglang7/article/details/44499307 ,是因为create_time
里的时间全为0导致的 -
如果出现
Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’
错误需要开启PDO扩展
-
因为是伪静态,所以请在nginx配置文件中改动如下:
server {
listen 80;
server_name your_domain;
root "website_path";
location / {
index index.html index.htm index.php;
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php/$1;
}
#autoindex on;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
###其他: 我讨厌markdown╮(╯﹏╰)╭
#WebRtcXSS ###All of the code is based on the framework for the development ThinkPHP
Project Tutorial:http://www.freebuf.com/articles/web/103097.html
Project Video:http://open.freebuf.com/live/774.html
Author:Black-Hole
Email:[email protected] && [email protected]
###Important:
-
Database Config in
/Application/Home/Conf/config.php
-
if(Error ===
ERROR 1067 (42000) at line 22: Invalid default value for ‘create_time’
){
Go here http://blog.csdn.net/xionglang7/article/details/44499307,becausecreate_time
where time equals 0 } -
if(Errot ===
Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND’
){
You need to enable the PDO extension }
Because it is pseudo-static , so please nginx configuration file changes are as follows:
server {
listen 80;
server_name your_domain;
root "website_path";
location / {
index index.html index.htm index.php;
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php/$1;
}
#autoindex on;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
###Other:
I hate markdown╮(╯﹏╰)╭
Translation from Google