if ($prefs['feature_dynamic_content'] != 'y') { $smarty->assign('msg', tra("This feature is disabled") . ": feature_dynamic_content"); $smarty->display("error.tpl"); die; } if ($tiki_p_admin_dynamic != 'y') { $smarty->assign('errortype', 401); $smarty->assign('msg', tra("You do not have permission to use this feature")); $smarty->display("error.tpl"); die; } if (isset($_REQUEST["remove"])) { $area = 'delcontents'; if ($prefs['feature_ticketlib2'] != 'y' or isset($_POST['daconfirm']) and isset($_SESSION["ticket_{$area}"])) { key_check($area); $dcslib->remove_contents($_REQUEST["remove"]); } else { key_get($area); } } $smarty->assign('description', ''); $smarty->assign('contentLabel', ''); $smarty->assign('contentId', 0); if (isset($_REQUEST["save"])) { check_ticket('list-contents'); $smarty->assign('description', $_REQUEST["description"]); $smarty->assign('contentLabel', $_REQUEST["contentLabel"]); $id = $dcslib->replace_content($_REQUEST["contentId"], $_REQUEST["description"], $_REQUEST["contentLabel"]); $smarty->assign('contentId', $id); } if (isset($_REQUEST["edit"])) {