rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 364eb458a735f47d7c490f727a957f8604a7c47b
parent 9a44d923473185569f58a9a18dc8aa97b8c85956
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 28 Jan 2015 09:33:45 +0100

add new wysiwyg editor to modules (confic will come...)

Diffstat:
Mcore/backend/admin/modules/footer.php | 26++++++++++++++++++++++++++
Mcore/backend/admin/modules/html_header.php | 7+++++--
Mcore/backend/admin/modules/post_footer.php | 4++--
3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/core/backend/admin/modules/footer.php b/core/backend/admin/modules/footer.php @@ -0,0 +1,25 @@ +<?php +############################### +# include files from root dir # +############################### +$root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); +$currentdir = getcwd(); +$root_2 = str_replace($root_1, '', $currentdir); +$root_3 = explode("/", $root_2); +if ($root_3[1] == 'core') { + echo $root_3[1]; + $root = realpath($_SERVER["DOCUMENT_ROOT"]); +}else{ + $root = $root_1 . '/' . $root_3[1]; +} + + + + + +$wysiwyg = "modul_simple_bootstrap-wysiwyg";//need to get extra config for modules +include($root.'/core/backend/admin/modules/'.$wysiwyg. '/index.php'); + + + + ?> +\ No newline at end of file diff --git a/core/backend/admin/modules/html_header.php b/core/backend/admin/modules/html_header.php @@ -17,8 +17,11 @@ if ($root_3[1] == 'core') { - $share = "share_buttons";//need to get extra config for modules - include($root.'/core/backend/admin/modules/'.$share. '/html_header.php'); +$share = "share_buttons";//need to get extra config for modules +include($root.'/core/backend/admin/modules/'.$share. '/html_header.php'); + +$wysiwyg = "modul_simple_bootstrap-wysiwyg";//need to get extra config for modules +include($root.'/core/backend/admin/modules/'.$wysiwyg. '/html_header.php'); diff --git a/core/backend/admin/modules/post_footer.php b/core/backend/admin/modules/post_footer.php @@ -17,8 +17,8 @@ if ($root_3[1] == 'core') { - $share = "share_buttons";//need to get extra config for modules - include($root.'/core/backend/admin/modules/'.$share. '/post_footer.php'); +$share = "share_buttons";//need to get extra config for modules +include($root.'/core/backend/admin/modules/'.$share. '/post_footer.php');