rpicms

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

post_footer.php (548B)


      1 <?php 
      2 ###############################
      3 # include files from root dir #
      4 ###############################
      5 $root_1 = realpath($_SERVER["DOCUMENT_ROOT"]);
      6 $currentdir = getcwd();
      7 $root_2 = str_replace($root_1, '', $currentdir);
      8 $root_3 = explode("/", $root_2);
      9 if ($root_3[1] == 'core') {
     10   echo $root_3[1];
     11   $root = realpath($_SERVER["DOCUMENT_ROOT"]);
     12 }else{
     13   $root = $root_1 . '/' . $root_3[1];
     14 }
     15 
     16 
     17 
     18 
     19 
     20 $share = "share_buttons";//need to get extra config for modules
     21 include($root.'/core/backend/admin/modules/'.$share. '/post_footer.php');
     22 
     23   
     24 
     25  ?>