} } $linkTarget = '_self'; //($_GET["linkTarget"]) ? $_GET["linkTarget"]:"main"; //root : Must be set if (!$startRoot) { die("Tree : root page not defined"); } //pageProperty : must be inside the page_properties array $page_properties = array("last_creation_date", "template"); if ($pageProperty && !SensitiveIO::isInSet($pageProperty, $page_properties)) { die("Tree : unknown page property"); } $dialog = new CMS_dialog(); if ($hideMenu) { $dialog->setMenu(false); } //add title $title = $title ? SensitiveIO::sanitizeHTMLString($title) : $cms_language->getMessage(MESSAGE_PAGE_TITLE); $pageTitle = $frame && !$onClick ? '<a href="' . CMS_session::getSessionVar('treeHref') . '" target="_self" class="admin_frame">' . $title . '</a>' : $title; $dialog->setTitle($pageTitle); $dialog->changeColor(); //add message if any if ($cms_message) { $dialog->setActionMessage($cms_message); } //add back link if ($backLink) { //links are coded in query string and so ? are replaced by §§ and ampersands are replaced with § to avoid confusion $bl = str_replace(chr(167) . chr(167), "?", $backLink); $bl = str_replace(chr(167), "&", $bl);