if ($title != "") { includePGNSources(); if ($action == $lang->get("sp_rltree", "Refresh Tree") && $aclf->checkAccessToFunction("B_RELAUNCH_TREE")) { $mymenu = getDBCell("sitepage", "MENU_ID", "SPID=$spid"); relaunchMenuTree($mymenu, $variation); } elseif ($action == $lang->get('launch_tree') && $aclf->checkAccessToFunction("B_LAUNCH_TREE")) { $mymenu = getDBCell("sitepage", "MENU_ID", "SPID=$spid"); launchMenuTree($mymenu, $variation); } else if ($aclf->checkAccessToFunction("B_EXPIRE_LAUNCH")) { launchSitepage($spid, 10, $variation); } } else { $clusterPanel->addToTopText($lang->get("nosptitle")); $clusterPanel->setTopStyle("errorheader"); } } else if ($action == $lang->get("sp_expire") && $aclf->checkAccessToFunction("B_EXPIRE_LAUNCH")) { expireSitepage($oid, 10, $variation); } else if ($action == $lang->get("rb_cache")) { // rebuildCache(); } else if ($action == $lang->get('exp_tree') && $aclf->checkAccessToFunction("B_EXPIRE_TREE")) { $mymenu = getDBCell("sitepage", "MENU_ID", "SPID=$spid"); expireMenuTree($mymenu, $variation); } else if ($action == $lang->get('del_tree') && $aclf->checkAccessToFunction("B_DESTROY_TREE")) { $mymenu = getDBCell("sitepage", "MENU_ID", "SPID=$spid"); header ("Location: destroy_tree.php?sid=$sid&del=$mymenu"); exit;