Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
SchoolCMS
提交
1a6894ec
S
SchoolCMS
项目概览
纵之格
/
SchoolCMS
通知
11
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SchoolCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1a6894ec
编写于
5月 15, 2017
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.3.1bug修复
上级
11994641
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
60 addition
and
9 deletion
+60
-9
Application/Common/Conf/config.php
Application/Common/Conf/config.php
+1
-1
Install/behavior.class.php
Install/behavior.class.php
+52
-1
Install/schoolcms.sql
Install/schoolcms.sql
+6
-6
core.php
core.php
+1
-1
未找到文件。
Application/Common/Conf/config.php
浏览文件 @
1a6894ec
...
...
@@ -11,7 +11,7 @@
$timezone
=
S
(
'cache_common_timezone_data'
);
return
array
(
// 是否开启开发者模式
'IS_DEVELOP'
=>
tru
e
,
'IS_DEVELOP'
=>
fals
e
,
// 显示页面Trace信息
'SHOW_PAGE_TRACE'
=>
false
,
...
...
Install/behavior.class.php
浏览文件 @
1a6894ec
...
...
@@ -40,6 +40,7 @@ class behavior
'php_sapi_name'
=>
php_sapi_name
(),
'client_date'
=>
date
(
'Y-m-d H:i:s'
),
'ymd'
=>
date
(
'Ymd'
),
'ver'
=>
'2.3.1'
,
);
// 描述信息
...
...
@@ -55,7 +56,13 @@ class behavior
}
// 上报数据
$this
->
CurlPost
(
'http://schoolcms.gong.gg/report/innstall.php'
,
$data
);
$url
=
'http://schoolcms.gong.gg/report/innstall.php'
;
if
(
function_exists
(
'curl_init'
))
{
$this
->
CurlPost
(
$url
,
$data
);
}
else
{
$this
->
Fsockopen_Post
(
$url
,
$data
);
}
}
/**
...
...
@@ -85,6 +92,50 @@ class behavior
return
$result
;
}
/**
* [Fsockopen_Post fsockopen方式]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-03T21:58:54+0800
* @param [string] $url [url地址]
* @param [string] $data [发送参数]
*/
private
function
Fsockopen_Post
(
$url
,
$data
=
''
)
{
$row
=
parse_url
(
$url
);
$host
=
$row
[
'host'
];
$port
=
isset
(
$row
[
'port'
])
?
$row
[
'port'
]
:
80
;
$file
=
$row
[
'path'
];
$post
=
''
;
while
(
list
(
$k
,
$v
)
=
each
(
$data
))
{
if
(
isset
(
$k
)
&&
isset
(
$v
))
$post
.
=
rawurlencode
(
$k
)
.
"="
.
rawurlencode
(
$v
)
.
"&"
;
//转URL标准码
}
$post
=
substr
(
$post
,
0
,
-
1
);
$len
=
strlen
(
$post
);
$fp
=
@
fsockopen
(
$host
,
$port
,
$errno
,
$errstr
,
10
);
if
(
!
$fp
)
{
return
"
$errstr
(
$errno
)
\n
"
;
}
else
{
$receive
=
''
;
$out
=
"POST
$file
HTTP/1.0
\r\n
"
;
$out
.
=
"Host:
$host
\r\n
"
;
$out
.
=
"Content-type: application/x-www-form-urlencoded
\r\n
"
;
$out
.
=
"Connection: Close
\r\n
"
;
$out
.
=
"Content-Length:
$len
\r\n\r\n
"
;
$out
.
=
$post
;
fwrite
(
$fp
,
$out
);
while
(
!
feof
(
$fp
))
{
$receive
.
=
fgets
(
$fp
,
128
);
}
fclose
(
$fp
);
$receive
=
explode
(
"
\r\n\r\n
"
,
$receive
);
unset
(
$receive
[
0
]);
return
implode
(
""
,
$receive
);
}
}
/**
* [GetScheme http类型]
* @author Devil
...
...
Install/schoolcms.sql
100755 → 100644
浏览文件 @
1a6894ec
此差异已折叠。
点击以展开。
core.php
浏览文件 @
1a6894ec
...
...
@@ -38,7 +38,7 @@ if(is_dir("./Install") && !file_exists("./Install/install.lock"))
if
(
version_compare
(
PHP_VERSION
,
'5.3.0'
,
'<'
))
die
(
'require PHP > 5.3.0 !'
);
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define
(
'APP_DEBUG'
,
tru
e
);
define
(
'APP_DEBUG'
,
fals
e
);
// 分之模式,master,develop,test,debug
define
(
'APP_STATUS'
,
'master'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录