File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -333,22 +333,15 @@ L2:
333
333
send `restore` to parent
334
334
history set url `.`
335
335
exit
336
- ! set style `display` of Body to `none`
337
- ! alert `Exit`
338
336
end
339
337
340
338
on message
341
339
begin
342
340
put the message into Message
343
- ! alert Message
344
- ! if Message is `start`
345
- ! begin
346
- ! set style `display` of Body to `block`
347
- ! end
348
341
if Message is `next` go to StepForward
349
342
if Message is `tutorial`
350
343
begin
351
- set style `display` of ReferencePanel to `none`
344
+ set style `display` of ReferencePanel to `none`
352
345
set style `display` of HelpPanel to `block`
353
346
set style `display` of HelpButtons to `block`
354
347
put empty into storage as `.ref`
@@ -790,6 +783,7 @@ SHP3:
790
783
`border:1px solid black;border-radius:0.5em;padding:0.3em;background:lightgray;text-decoration:none`
791
784
on click Copy
792
785
begin
786
+ debug step
793
787
gosub to StopTestModule
794
788
put `code` into View
795
789
if Mobile gosub to SetView
@@ -952,12 +946,13 @@ DoRunStop:
952
946
set style `display` of HelpOuter to `none`
953
947
set style `display` of RunPanel to `block`
954
948
end
955
-
949
+
956
950
set attribute `src` of RunStop to `resources/icon/runstop.png`
957
951
set attribute `title` of RunStop to `Stop`
958
952
set Running
959
953
wait 10 ticks
960
-
954
+
955
+ dummy
961
956
run Script with RunPanel as TestModule nowait then
962
957
begin
963
958
clear Running
Original file line number Diff line number Diff line change 72
72
variable N
73
73
variable P
74
74
75
+ rest path `rest.php`
76
+
75
77
create Tracer in Parent
76
78
set attribute `id` of Tracer to `easycoder-tracer`
77
79
create Container in Parent
@@ -655,9 +657,11 @@ SaveKeyword:
655
657
656
658
SavePackage:
657
659
gosub to SaveKeyword
658
- ! put encode Package into Package
660
+ put encode Package into Package
659
661
set the text of Status to `Saving package "` cat PackageName cat `"...`
660
- rest post Package to `_save/doc~` cat PackageName cat `.json`
662
+ set encoding to `base64`
663
+ rest post encode Package to `_save/doc~` cat PackageName cat `.json`
664
+ set encoding to `ec`
661
665
set the text of Status to `Package "` cat PackageName cat `" saved`
662
666
wait 3
663
667
set the text of Status to ``
Original file line number Diff line number Diff line change 37
37
variable Item
38
38
39
39
rest path `rest.php`
40
+ set encoding to `base64`
40
41
41
42
set the title to `Script Editor`
42
43
57
58
set the text of Delete to `Delete`
58
59
create Status in Buttons
59
60
set the style of Status to `position:absolute;float:right;padding-left:2em;color:green`
60
- debug step
61
61
62
62
create ScriptName in Container
63
63
set the style of ScriptName to `display:flex;margin:0.5em 0`
119
119
put the content of ContentEditor into Content
120
120
if Content is not Current
121
121
begin
122
- rest post Content to `_save/ecs~` cat Name
122
+ rest post encode Content to `_save/ecs~` cat Name
123
123
put Content into Current
124
124
set the content of Status to `Script '` cat Name cat `' saved`
125
125
fork to ResetStatus
@@ -258,4 +258,4 @@ CloseBrowser:
258
258
ResetStatus:
259
259
wait 2
260
260
set the content of Status to ``
261
- stop
261
+ stop
Original file line number Diff line number Diff line change 174
174
$ dir = substr ($ path , 0 , $ p );
175
175
mkdir ($ dir , 0777 , true );
176
176
header ("Content-Type: application/text " );
177
- $ content = stripslashes (file_get_contents ("php://input " ));
177
+ $ content = base64_decode ( stripslashes (file_get_contents ("php://input " ) ));
178
178
$ p = strrpos ($ path , '. ' );
179
179
$ root = substr ($ path , 0 , $ p );
180
180
$ ext = substr ($ path , $ p );
@@ -536,4 +536,5 @@ function logger($message)
536
536
fwrite ($ fp , "$ date: $ message \n" );
537
537
fclose ($ fp );
538
538
}
539
+
539
540
?>
You can’t perform that action at this time.
0 commit comments