public function __construct() { parent::__construct(); $this->setDocType('<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>'); $this->setMimeType("text/xml"); }
/* ** If this is a live update we don't want to redirect */ if (isset($_REQUEST['_lu'])) { $REDIRECT = FALSE; } if ($REDIRECT) { $_SESSION[$app]['session']->save(); if ($app_configurations[$app]['general']['redirect_after_callback'] == 1) { $urlExtra = $htmlRoot->getExtraUrl(); header("Location: " . $_SESSION[$app]['configuration']->baseUrl() . "/{$app}" . $urlExtra . "&SID=" . $_SESSION[$app]['session']->sessionId() . "&_r=" . $_SESSION[$app]['session']->currentRegistryKey()); $errorHandler->end(); exit; } } if ($_REQUEST['_lu'] == "") { $html = WHHtmlCanvas::construct("WHHtmlCanvas"); $html->html()->with($html->head()->with($htmlRoot->renderHeadContentsOn($html) . $html->style()->type("text/css")->with($_SESSION[$app]['mainComponent']->thisOrDialog()->styleOfThisAndChildren()) . $html->script()->type("text/javascript")->with($_SESSION[$app]['mainComponent']->thisOrDialog()->scriptOfThisAndChildren())) . $html->body()->with($_SESSION[$app]['mainComponent']->renderOn($html))); } else { $html = WHHtmlCanvas::construct("WHLiveResponceCanvas"); if (is_object($_SESSION[$app]['session']->callbackByKey($_REQUEST['_lu']))) { $html->html()->with($_SESSION[$app]['session']->callbackByKey($_REQUEST['_lu'])->runWithArgument($html)); } } echo $html; //echo "<pre>"; print_r($_SESSION); echo "</pre>"; if ($configuration->debugMode()) { echo $DEBUG_ERRORS; } $errorHandler->end(); $_SESSION[$app]['session']->save();