Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerry wham
Make-S5-Easy
Commits
41278136
Commit
41278136
authored
Oct 26, 2017
by
jerry wham
Browse files
Menu bug fixed
parent
5dd78873
Changes
1
Hide whitespace changes
Inline
Side-by-side
actions.php
View file @
41278136
...
...
@@ -39,8 +39,8 @@ if (isset($_GET['edit']) && is_file(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].
$content
=
file_get_contents
(
MS5E_SLIDES_PATH
.
'content'
.
DS
.
$_GET
[
'edit'
]
.
'.txt'
);
$content
=
trim
(
str_replace
(
array
(
'<div class="slide">
<!-- slide -->
'
,
'<div class="notes">
<!-- notes -->
'
,
'<
!-- slide --><
div class="slide">'
,
'<
!-- notes --><
div class="notes">'
,
'</div> <!-- /notes -->'
),
array
(
...
...
@@ -51,7 +51,7 @@ if (isset($_GET['edit']) && is_file(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].
$slide_number
=
$_GET
[
'edit'
];
$slide_content
=
trim
(
mb_substr
(
$content
,
11
,
mb_strpos
(
$content
,
'START_NOTES'
,
0
,
'UTF-8'
)
-
11
,
'UTF-8'
));
$notes_content
=
trim
(
mb_substr
(
$content
,
mb_strpos
(
$content
,
'START_NOTES'
,
0
,
'UTF-8'
)
+
11
,
null
,
'UTF-8'
));
$notes_content
=
trim
(
mb_substr
(
$notes_content
,
0
,
mb_strpos
(
$notes_content
,
'END_NOTES'
,
0
,
'UTF-8'
)
-
9
,
'UTF-8'
));
$notes_content
=
trim
(
mb_substr
(
$notes_content
,
0
,
mb_strpos
(
$notes_content
,
'END_NOTES'
,
0
,
'UTF-8'
),
'UTF-8'
));
}
//Preview
if
(
isset
(
$_GET
[
'preview'
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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