File tree Expand file tree Collapse file tree 5 files changed +189
-93
lines changed Expand file tree Collapse file tree 5 files changed +189
-93
lines changed Original file line number Diff line number Diff line change 19
19
rest get Script from `/resources/ecs/iwsy.txt?v=` cat now
20
20
run Script
21
21
</ pre >
22
+
22
23
</ body >
23
24
</ html >
Original file line number Diff line number Diff line change 32
32
variable Content
33
33
variable Home
34
34
variable UserRecord
35
+ variable Email
36
+ variable Password
35
37
variable CurrentPath
36
38
variable FilePath
37
39
variable Path
@@ -120,7 +122,7 @@ Show:
120
122
121
123
! Build the list
122
124
Browser:
123
- rest get Content from `list /` cat CurrentPath
125
+ rest get Content from `ulist /` cat Email can `/` cat Password cat `/` cat CurrentPath cat `?v=` cat now
124
126
or begin
125
127
alert `Failed to list files.`
126
128
stop
@@ -222,7 +224,7 @@ SelectFile:
222
224
set style `display` of Scroller to `none`
223
225
set style `display` of Image to `block`
224
226
put CurrentPath cat `/` cat property `name` of File into FilePath
225
- set attribute `src` of Image to `/resources/` cat FilePath
227
+ set attribute `src` of Image to `/resources/` cat FilePath cat `?v=` cat now
226
228
on click CloseButton go to CloseMedia
227
229
set the text of URL to `/resources/` cat FilePath
228
230
! highlight URL
Original file line number Diff line number Diff line change 129
129
put the content of ContentEditor into Content
130
130
if Content is not Current
131
131
begin
132
- rest post Content to `save/ecs/` cat Name
132
+ rest post Content to `save/` cat Password cat `/ ecs/` cat Name
133
133
put Content into Current
134
134
set the content of Status to `Script '` cat Name cat `' saved`
135
135
fork to ResetStatus
155
155
if confirm `Are you sure you want to delete '` cat Name cat `'?`
156
156
begin
157
157
codemirror close ContentEditor
158
- rest post to `delete/ecs/` cat Name
158
+ rest post to `delete/` cat Password cat `/ ecs/` cat Name
159
159
set the content of Status to `Script '` cat Name cat `' deleted`
160
160
set the content of NameEditor to empty
161
161
put empty into Content
@@ -173,7 +173,7 @@ DoOpen:
173
173
begin
174
174
if confirm `Content has changed. Do you want to save it?`
175
175
begin
176
- rest post Content to `save/ecs/' cat CurrentName
176
+ rest post Content to `save/` cat Password cat `/ ecs/' cat CurrentName
177
177
codemirror attach to ContentEditor
178
178
codemirror set content of ContentEditor to Content
179
179
end
@@ -201,7 +201,7 @@ DoOpen:
201
201
set style `display` of FileListing to `inline-block`
202
202
203
203
! Fill the browser with content from the server
204
- rest get Files from `list/ecs?v=` cat now
204
+ rest get Files from `list/` cat Password cat `/ ecs?v=` cat now
205
205
put the json count of Files into FileCount
206
206
put empty into Content
207
207
put 0 into N
Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ ProcessLogin:
171
171
if Record is empty go to NoRecord
172
172
if property `email` of Record is not EmailInput go to NoRecord
173
173
put property `password` of Record into Password
174
- replace `/` with `~` in Password
175
174
rest get Validated from `validate/` cat Password cat `/` cat PasswordInput
176
175
if Validated is `yes`
177
176
begin
You can’t perform that action at this time.
0 commit comments