Commit 85f5ed26 authored by jerry wham's avatar jerry wham
Browse files

Update actions.php

parent e878ff4f
......@@ -49,9 +49,9 @@ if (isset($_GET['edit']) && is_file(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].
'END_NOTES'
),$content));
$slide_number = $_GET['edit'];
$slide_content = trim(mb_strcut($content,11,mb_strpos($content,'START_NOTES',0,'UTF-8')-11,'UTF-8'));
$content = mb_strcut($content,mb_strpos($content,'START_NOTES',0,'UTF-8')+11);
$notes_content = trim(mb_strcut($content,9,mb_strpos($content,'END_NOTES',0,'UTF-8')-9,'UTF-8'));
$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'));
}
//Preview
if(isset($_GET['preview'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment