diff --git a/manager.php b/index.php similarity index 57% rename from manager.php rename to index.php index a895699..fcab710 100644 --- a/manager.php +++ b/index.php @@ -19,12 +19,9 @@ default: function buildStaticPage() { $pd = new Parsedown(); $title = !empty($_POST['title'])?$_POST['title']:TITLE; - $out = outputHTMLHeader($title, true); - $out .= '
'; - $out .= print_r($_POST, true); - $out .= ''; - $out .= '======'; - foreach($_POST['chosen_files'] as $file) { + $out = getHTMLHeader($title); + $selFiles = json_decode($_POST['chosen_files']); + foreach($selFiles as $file) { if(file_exists($file)) { $md = file_get_contents($file); $out .= '