diff --git a/about.php b/about.php index 8dcd1c7..4e89ac5 100644 --- a/about.php +++ b/about.php @@ -3,10 +3,9 @@ $title="About"; $tags="about"; $scanfiles=array("./Media/", "./News/", "./Technology/"); - $page = "About/about.php"; require "includes/default-start.php"; require "includes/seemore.php"; require "includes/custompanelPHP.php"; - customPage($page); + customPagePHP($page); require "includes/default-end.php"; ?> diff --git a/contact.php b/contact.php index 8192655..bff3eea 100644 --- a/contact.php +++ b/contact.php @@ -7,6 +7,6 @@ require "includes/default-start.php"; require "includes/seemore.php"; require "includes/custompanelPHP.php"; - customPage($page); + customPagePHP($page); require "includes/default-end.php"; ?> diff --git a/includes/custompanelMD.php b/includes/custompanelMD.php index dd59137..41beede 100644 --- a/includes/custompanelMD.php +++ b/includes/custompanelMD.php @@ -1,8 +1,10 @@ '; - echo $Parsedown->text($text); -echo ''; +function customPageMD($page) { + require_once "./Parsedown.php"; + $Parsedown = new Parsedown(); + $text = file_get_contents($page); + echo '