_throw("FCannotInitializeSitemapManager", $oSitemap->getLastError()); } //TODO check if smarty has caching abilities // adding Smarty $smarty = new Smarty(); $smarty->template_dir = $fusebox['pathSmartyTemplates']; $smarty->compile_dir = $fusebox['pathSmartyTemplatesCompiled']; $smarty->assign("self", $self); $smarty->assign("myself", $myself); $smarty->assign("here", $here); _assign_by_ref("oU", $oUser); _assign_by_ref("oF", $oFuseaction); _assign_by_ref("ogF", $ogFuseaction); _assign_by_ref("oL", $oLanguage); _assign_by_ref("oLM", $oLanguageManager); _assign_by_ref("oCM", $oContentManager); _assign_by_ref("ogCM", $ogContentManager); _assign_by_ref("oGM", $oGraphicsManager); _assign_by_ref("ogGM", $ogGraphicsManager); _assign_by_ref("oSCM", $oSEOContentManager); _assign_by_ref("ogSCM", $ogSEOContentManager); _assign_by_ref("oDCM", $oDevContentManager); _assign_by_ref("ogDCM", $ogDevContentManager); _assign_by_ref("oSM", $oSecurityManager); _assign_by_ref("ogSM", $ogSecurityManager); _assign_by_ref("ogMTM", $ogMailTemplatesManager); _assign_by_ref("oPM", $oPropertyManager); _assign_by_ref("ogAT", $ogArticleTree); _assign_by_ref("ogAM", $ogArticleManager); _assign_by_ref("ogGaM", $ogGalleryManager); _log($attributes['fuseaction'] . " started", "IFuseactionStarted", "I", $here);
<?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; }