if (!file_exists($c["path"] . "index.php")) { die("Path not found."); } if (value("changevariation") != "0" && value("changevariation") != "" || value("changetranslation") != "0" && value("changetranslation") != "") { $page_state = ""; } $clusterEditState = $action == $lang->get("edit_all") || ($action == $lang->get("save") || $action == "editsingle" || value("status") == "editsingle") && $action != $lang->get("back") && $action != $lang->get("save_back") || $isArticle; if ($action == "") { $action = value("acstate"); } $editState = $action == $lang->get("edit_all") || ($action == $lang->get("save") || $action == $lang->get("save_back") || $action == "editsingle" || value("status") == "editsingle") && $action != $lang->get("back") || $isArticle; $clustereditbar = new ButtonBar("clusteredtbar"); if ($aclf->checkAccessToFunction("EDIT_CONTENT") || $aclf->checkAccessToFunction("EDIT_CL_CONTENT")) { if (!$editState) { if ($aclf->checkAccessToFunction("B_EDIT_ALL") && !$isArticle) { $clustereditbar->add("action", $lang->get("edit_all"), "submit", "document.form1.processing.value='';"); } } if ($aclf->checkAccessToFunction("B_USAGE") && !$isArticle) { $clustereditbar->addAction($lang->get('usage', 'Usage'), "window.open('" . $c["docroot"] . "modules/common/cluster_usage.php?oid=" . $clnid . "&sid={$sid}', 'usage','Width=300px,Height=500px,help=no,status=yes,scrollbars=yes,resizable=yes');"); } if (!$sitepage) { if (!$isArticle) { if ($aclf->checkAccessToFunction("DELETE_CL")) { $clustereditbar->add("action", $lang->get("CL_DEL"), "submit", getWaitupScreen() . "; document.form1.processing.value='';", "", !getDBCell("channel_articles", "CHID", "ARTICLE_ID = " . $clnid)); } if ($aclf->checkAccessToFunction("LAUNCH_CL")) { $clustereditbar->addAction('separator'); $clustereditbar->addAction($lang->get("cl_launch", "Launch Cluster")); $clustereditbar->addAction($lang->get("cl_expire", "Expire Cluster")); }
<?php $resetbar = new ButtonBar("resetbar"); $resetbar->add("action", $lang->get('resetcli', 'Change Object'), "submit", "", "", true, $lang->get("tt_rstci", "Each page in N/X has a cluster. By pressing Reset ClusterInstance you can assign a new cluster to the page and remove the old one.")); $spname = getDBCell("sitepage_master", "NAME", "SPM_ID = {$spm}"); $clt = getDBCell("sitepage_master", "CLT_ID", "SPM_ID = {$spm}"); $cltname = getDBCell("cluster_templates", "NAME", "CLT_ID = {$clt}"); if (!$mpProp) { $clnname = getDBCell("cluster_node", "NAME", "CLNID = {$clnid}"); } if ($auth->checkAccessToFunction("B_RESET_CL_INST") && !$mpProp) { $propPanel->add($resetbar); } if ($type == 2 && !$mpProp) { $go = "UPDATE"; $page_action = "UPDATE"; $propPanel->add(new Cell("clc", "title1", 3, 600, 2)); $propPanel->add(new Label("lbl", "<b>" . $lang->get("sp_launchdates") . "</b>", "headbox", 3)); $propPanel->add(new Cell("clc", "title1", 3, 600, 2)); if ($auth->checkAccessToFunction("AUTO_EXP_LAUN")) { $propPanel->add(new DateTimeInput($lang->get("sp_launchdate"), "sitepage", "LAUNCH_DATE", "SPID = {$spid}")); } if ($auth->checkAccessToFunction("AUTO_EXP_LAUN")) { $propPanel->add(new DateTimeInput($lang->get("sp_expiredate"), "sitepage", "EXPIRE_DATE", "SPID = {$spid}")); } $propPanel->add(new Subtitle('tit', $lang->get('sp_properties'), 3)); $propPanel->add(new Spacer(3)); $propPanel->add(new Label("lbl", $lang->get("spm"), "standard")); $propPanel->add(new Label("lbl", $spname, "standard")); if ($auth->checkAccessToFunction("POSITION")) { $propPanel->add(new MultipagePosition($lang->get("position"), "sitepage", "POSITION", "SPID = {$spid}", $spid, $menuID));