* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * @since file available since contenido release <= 4.6 * * {@internal * created unknown * modified 2008-07-02, Frederic Schneider, add security fix * * $Id: include.right_bottom.php 128 2019-07-03 11:58:28Z oldperl $: * }} * */ if (!defined('CON_FRAMEWORK')) { die('Illegal call'); } if (isset($_REQUEST['treeItem'])) { die('Illegal call!'); } #added 24.06.08 timo.trautmann security fix filter submitted treeItemPost array before insertion, name also changed according to security fix $aPostTreeItem = array(); if (!is_object($db)) { $db = new DB_ConLite(); } if (isset($_REQUEST['treeItemPost']['idpica_alloc'])) { $aPostTreeItem['idpica_alloc'] = (int) $_REQUEST['treeItemPost']['idpica_alloc']; } if (isset($_REQUEST['treeItemPost']['parentid'])) { $aPostTreeItem['parentid'] = (int) $_REQUEST['treeItemPost']['parentid']; } if (isset($_REQUEST['treeItemPost']['name'])) { $sName = stripslashes($_REQUEST['treeItemPost']['name']); $sName = $db->escape($sName); $aPostTreeItem['name'] = $sName; } $_GET['idpica_alloc'] = (int) $_GET['idpica_alloc']; #end added 24.06.08 timo.trautmann $oPage = new cPage(); $oPage->setMargin(10); $oPage->setMessageBox(); $oTree = new pApiContentAllocationTreeView('f7771624-4874-4745-8b7e-21a49a71a447'); // store item if ($_POST['step'] == 'store') { $pNotify = '
' . i18n("Create new tree", "cl-content-allocation") . '';
}
$result = $oTree->renderTree(true);
if ($result === false) {
$result = ' ';
}
$js = '
';
$oPage->addScript('deleteCategory', $js);
$oPage->setContent($pNotify . $newTree . $sTemp . '