<?php if (empty($attributes['id'])) { _error("ENoFuseactionGiven", "No page or action is given"); } else { $tmpFuseaction = false; if (isset($attributes['id']) && intval($attributes['id']) > 0) { $tmpFuseaction = $oFuseManager->getFuseactionByID(intval($attributes['id'])); } else { _error("ENoValidFuseactionGiven", "No valid page or action is given"); } if (!$tmpFuseaction) { _error("ENoFuseactionFound", "No such page or action found in DB"); } else { if (!$oContentManager->deleteFuseactionTokens($tmpFuseaction->getID())) { _warning("WFuseactionNotCleared", "Cannot clear page content. DB error."); } else { _message("MFuseactionCleared", "Page content was removed successfully"); _xfa($myself . "admin.showContentPages"); } } } if (!_gotxfa()) { }
<?php // saving objects to session to pick up next time $_SESSION['oUser'] = $oUser; // saving global 'sticky' attributes values to session setStickyAttributes($ogFuseaction->getName(), $ogFuseaction->getStickyAttributes()); // saving 'sticky' attributes values to session setStickyAttributes($oFuseaction->getName(), $oFuseaction->getStickyAttributes()); // assigning variables before display _assign_by_ref("application", $application); _assign_by_ref("fusebox", $fusebox); _assign_by_ref("attributes", $attributes); // relocating if exit fuseaction exists and no error or warning to show... messages appended to XFA URL if (_gotxfa() && !_gotErrors() && !_gotWarnings()) { // appending messages to URL to allow processing messages on 'landing' page $xfa = _getxfa(); // saving XFAs to session to pick up next time $_SESSION['globalXFA'] = $XFA; if (_gotMessages()) { $tmparrMsgs = _getMessages(); $tmparrMsgs = array_keys($tmparrMsgs); $xfa .= "&messages=" . join(",", $tmparrMsgs); } // moving to exit Location($xfa, 0); // 0 means no PHPSESSID } else { // saving XFAs to session to pick up next time $_SESSION['globalXFA'] = $XFA; }