} //url back $pdirparent =& getFileObject($pfile->getParentPath()); if (isConnected()) { echo ' <div id="path"> <div id="imgHome"></div> '; $strPath = $pfile->path; $oRoot = new PDir(strstr($pfile->path, PAGES_PATH) !== false ? PAGES_PATH : (strpos($pfile->path, PAGES_MODELS_PATH) !== false ? PAGES_MODELS_PATH : SITE_PATH)); $tabGuid = array(); while ($oRoot->path != $strPath && strlen($strPath) > 1) { $o =& getFileObject($strPath); if (is_dir($o->path)) { $fileMangementUrl = 'admin_file_management.php?rootpath=' . rawurlencode(str_replace(SITE_PATH, '', PAGES_PATH)) . '¤t_dir=' . rawurlencode($o->getRelativePath(PAGES_PATH)); $tabGuid[] = array('NAME' => $o->getName(), 'URL' => $fileMangementUrl); } $strPath = $o->getParentPath(); } $tabGuid[] = array('NAME' => str_replace('languages', _('Site Pages'), $oRoot->getName()), 'URL' => 'admin_file_management.php?rootpath=' . rawurlencode(str_replace(SITE_PATH, '', $oRoot->path))); $tabGuid = array_reverse($tabGuid); foreach ($tabGuid as $strUrlGuid) { echo '<a href="' . $strUrlGuid['URL'] . '">' . $strUrlGuid['NAME'] . '</a> > '; } echo $pfile->getShortName(); echo ' </div>'; echo $pfile->DisplayEditor(); } //end user connected include "admin_bottom.php";