Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwsswl
OneManager-php
提交
a1268da0
O
OneManager-php
项目概览
lwsswl
/
OneManager-php
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneManager-php
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
a1268da0
编写于
6月 13, 2020
作者:
Q
qkqpttgf
提交者:
GitHub
6月 13, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Guest upload folder will Encrypted after uploaded
上级
4b816fb2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
66 addition
and
35 deletion
+66
-35
common.php
common.php
+66
-35
未找到文件。
common.php
浏览文件 @
a1268da0
...
@@ -1995,7 +1995,7 @@ function render_list($path = '', $files = '')
...
@@ -1995,7 +1995,7 @@ function render_list($path = '', $files = '')
while
(
strpos
(
$html
,
'<!--GuestEnd-->'
))
$html
=
str_replace
(
'<!--GuestEnd-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--GuestEnd-->'
))
$html
=
str_replace
(
'<!--GuestEnd-->'
,
''
,
$html
);
}
}
if
(
$_SERVER
[
'is
_guestup_path'
]
&&!
$_SERVER
[
'admin'
]
)
{
if
(
$_SERVER
[
'is
hidden'
]
==
4
)
{
$tmp
[
1
]
=
'a'
;
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--IsFileStart-->'
);
$tmp
=
splitfirst
(
$html
,
'<!--IsFileStart-->'
);
...
@@ -2010,33 +2010,52 @@ function render_list($path = '', $files = '')
...
@@ -2010,33 +2010,52 @@ function render_list($path = '', $files = '')
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsFolderEnd-->'
);
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsFolderEnd-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
while
(
strpos
(
$html
,
'<!--EncryptedStart-->'
))
{
/*$tmp[1] = 'a';
$tmp
=
splitfirst
(
$html
,
'<!--EncryptedStart-->'
);
while ($tmp[1]!='') {
$tmp = splitfirst($html, '<!--ListStart-->');
$html = $tmp[0];
$html = $tmp[0];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--EncryptedEnd-->'
);
$tmp = splitfirst($tmp[1], '<!--ListEnd-->');
$html .= $tmp[1];
}*/
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--IsNotHiddenStart-->'
);
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsNotHiddenEnd-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
while
(
strpos
(
$html
,
'<!--GuestUploadStart-->'
))
{
while
(
strpos
(
$html
,
'<!--EncryptedStart-->'
))
{
$html
=
str_replace
(
'<!--GuestUploadStart-->'
,
''
,
$html
);
$html
=
str_replace
(
'<!--EncryptedStart-->'
,
''
,
$html
);
$html
=
str_replace
(
'<!--GuestUploadEnd-->'
,
''
,
$html
);
$html
=
str_replace
(
'<!--EncryptedEnd-->'
,
''
,
$html
);
}
}
if
(
$_SERVER
[
'is_guestup_path'
]
||
(
$_SERVER
[
'admin'
]
&&
isset
(
$files
[
'folder'
])
&&
$_SERVER
[
'ishidden'
]
<
4
))
{
while
(
strpos
(
$html
,
'<!--UploadJsStart-->'
))
{
while
(
strpos
(
$html
,
'<!--UploadJsStart-->'
))
$html
=
str_replace
(
'<!--UploadJsStart-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--UploadJsEnd-->'
))
$html
=
str_replace
(
'<!--UploadJsEnd-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--constStr@Calculate-->'
))
$html
=
str_replace
(
'<!--constStr@Calculate-->'
,
getconstStr
(
'Calculate'
),
$html
);
}
}
}
else
{
$tmp
[
1
]
=
'a'
;
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--
UploadJs
Start-->'
);
$tmp
=
splitfirst
(
$html
,
'<!--
GuestUpload
Start-->'
);
$html
=
$tmp
[
0
];
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--UploadJsEnd-->'
);
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--GuestUploadEnd-->'
);
$html
.
=
$tmp
[
1
];
}
while
(
strpos
(
$html
,
'<!--IsNotHiddenStart-->'
))
{
$tmp
=
splitfirst
(
$html
,
'<!--IsNotHiddenStart-->'
);
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsNotHiddenEnd-->'
);
$html
.
=
$tmp
[
1
];
}
}
else
{
while
(
strpos
(
$html
,
'<!--EncryptedStart-->'
))
{
$tmp
=
splitfirst
(
$html
,
'<!--EncryptedStart-->'
);
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--EncryptedEnd-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
while
(
strpos
(
$html
,
'<!--IsNotHiddenStart-->'
))
{
$html
=
str_replace
(
'<!--IsNotHiddenStart-->'
,
''
,
$html
);
$html
=
str_replace
(
'<!--IsNotHiddenEnd-->'
,
''
,
$html
);
}
}
}
if
(
$_SERVER
[
'ishidden'
]
==
4
)
{
while
(
strpos
(
$html
,
'<!--constStr@Download-->'
))
$html
=
str_replace
(
'<!--constStr@Download-->'
,
getconstStr
(
'Download'
),
$html
);
if
(
$_SERVER
[
'is_guestup_path'
]
&&!
$_SERVER
[
'admin'
])
{
$tmp
[
1
]
=
'a'
;
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--IsFileStart-->'
);
$tmp
=
splitfirst
(
$html
,
'<!--IsFileStart-->'
);
...
@@ -2051,33 +2070,43 @@ function render_list($path = '', $files = '')
...
@@ -2051,33 +2070,43 @@ function render_list($path = '', $files = '')
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsFolderEnd-->'
);
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsFolderEnd-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
/*$tmp[1] = 'a';
while
(
strpos
(
$html
,
'<!--GuestUploadStart-->'
))
{
while ($tmp[1]!='') {
$html
=
str_replace
(
'<!--GuestUploadStart-->'
,
''
,
$html
);
$tmp = splitfirst($html, '<!--ListStart-->');
$html
=
str_replace
(
'<!--GuestUploadEnd-->'
,
''
,
$html
);
$html = $tmp[0];
}
$tmp = splitfirst($tmp[1], '<!--ListEnd-->');
while
(
strpos
(
$html
,
'<!--IsNotHiddenStart-->'
))
{
$html .= $tmp[1];
}*/
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--IsNotHiddenStart-->'
);
$tmp
=
splitfirst
(
$html
,
'<!--IsNotHiddenStart-->'
);
$html
=
$tmp
[
0
];
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsNotHiddenEnd-->'
);
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--IsNotHiddenEnd-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
while
(
strpos
(
$html
,
'<!--EncryptedStart-->'
))
{
}
else
{
$html
=
str_replace
(
'<!--EncryptedStart-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--GuestUploadStart-->'
))
{
$html
=
str_replace
(
'<!--EncryptedEnd-->'
,
''
,
$html
);
$tmp
=
splitfirst
(
$html
,
'<!--GuestUploadStart-->'
);
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--GuestUploadEnd-->'
);
$html
.
=
$tmp
[
1
];
}
while
(
strpos
(
$html
,
'<!--IsNotHiddenStart-->'
))
{
$html
=
str_replace
(
'<!--IsNotHiddenStart-->'
,
''
,
$html
);
$html
=
str_replace
(
'<!--IsNotHiddenEnd-->'
,
''
,
$html
);
}
}
if
(
$_SERVER
[
'is_guestup_path'
]
||
(
$_SERVER
[
'admin'
]
&&
isset
(
$files
[
'folder'
])
&&
$_SERVER
[
'ishidden'
]
<
4
))
{
while
(
strpos
(
$html
,
'<!--UploadJsStart-->'
))
{
while
(
strpos
(
$html
,
'<!--UploadJsStart-->'
))
$html
=
str_replace
(
'<!--UploadJsStart-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--UploadJsEnd-->'
))
$html
=
str_replace
(
'<!--UploadJsEnd-->'
,
''
,
$html
);
while
(
strpos
(
$html
,
'<!--constStr@Calculate-->'
))
$html
=
str_replace
(
'<!--constStr@Calculate-->'
,
getconstStr
(
'Calculate'
),
$html
);
}
}
}
else
{
$tmp
[
1
]
=
'a'
;
$tmp
[
1
]
=
'a'
;
while
(
$tmp
[
1
]
!=
''
)
{
while
(
$tmp
[
1
]
!=
''
)
{
$tmp
=
splitfirst
(
$html
,
'<!--
GuestUpload
Start-->'
);
$tmp
=
splitfirst
(
$html
,
'<!--
UploadJs
Start-->'
);
$html
=
$tmp
[
0
];
$html
=
$tmp
[
0
];
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--
GuestUpload
End-->'
);
$tmp
=
splitfirst
(
$tmp
[
1
],
'<!--
UploadJs
End-->'
);
$html
.
=
$tmp
[
1
];
$html
.
=
$tmp
[
1
];
}
}
}
}
while
(
strpos
(
$html
,
'<!--constStr@Download-->'
))
$html
=
str_replace
(
'<!--constStr@Download-->'
,
getconstStr
(
'Download'
),
$html
);
if
(
isset
(
$files
[
'children'
]))
{
if
(
isset
(
$files
[
'children'
]))
{
while
(
strpos
(
$html
,
'<!--GuestUploadStart-->'
))
{
while
(
strpos
(
$html
,
'<!--GuestUploadStart-->'
))
{
...
@@ -2613,10 +2642,12 @@ function render_list($path = '', $files = '')
...
@@ -2613,10 +2642,12 @@ function render_list($path = '', $files = '')
// 最后清除换行
// 最后清除换行
while
(
strpos
(
$html
,
"
\r\n\r\n
"
))
$html
=
str_replace
(
"
\r\n\r\n
"
,
"
\r\n
"
,
$html
);
while
(
strpos
(
$html
,
"
\r\n\r\n
"
))
$html
=
str_replace
(
"
\r\n\r\n
"
,
"
\r\n
"
,
$html
);
//while (strpos($html, "\r\r")) $html = str_replace("\r\r", "\r", $html);
while
(
strpos
(
$html
,
"
\n\n
"
))
$html
=
str_replace
(
"
\n\n
"
,
"
\n
"
,
$html
);
//while (strpos($html, PHP_EOL.PHP_EOL)) $html = str_replace(PHP_EOL.PHP_EOL, PHP_EOL, $html);
//while (strpos($html, PHP_EOL.PHP_EOL)) $html = str_replace(PHP_EOL.PHP_EOL, PHP_EOL, $html);
$exetime
=
round
(
microtime
(
true
)
-
$_SERVER
[
'php_starttime'
],
3
);
$exetime
=
round
(
microtime
(
true
)
-
$_SERVER
[
'php_starttime'
],
3
);
$html
=
str_replace
(
'<!--FootStr-->'
,
date
(
"Y-m-d H:i:s"
)
.
" "
.
getconstStr
(
'Week'
)[
date
(
"w"
)]
.
" "
.
$_SERVER
[
'REMOTE_ADDR'
]
.
' Runtime:'
.
$exetime
.
's Mem:'
.
size_format
(
memory_get_usage
()),
$html
);
$html
=
str_replace
(
'<!--FootStr-->'
,
date
(
"Y-m-d H:i:s"
)
.
" "
.
getconstStr
(
'Week'
)[
date
(
"w"
)]
.
" "
.
$_SERVER
[
'REMOTE_ADDR'
]
.
' Run
ning
time:'
.
$exetime
.
's Mem:'
.
size_format
(
memory_get_usage
()),
$html
);
}
}
$theme_arr
=
scandir
(
'theme'
);
$theme_arr
=
scandir
(
'theme'
);
...
@@ -2632,7 +2663,7 @@ function render_list($path = '', $files = '')
...
@@ -2632,7 +2663,7 @@ function render_list($path = '', $files = '')
//if ($tmp!='') $html .= '
//if ($tmp!='') $html .= '
// <option value="" '.($tmp==$theme?'selected="selected"':'').'>customTheme</option>';
// <option value="" '.($tmp==$theme?'selected="selected"':'').'>customTheme</option>';
$html
.
=
'
$html
.
=
'
</select>
</select>
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
function changetheme(str)
function changetheme(str)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录