Project

General

Profile

Bug #23289 » formidable-1.1.3-bugfix-15265.patch

Administrator Admin, 2010-07-30 11:40

View differences:

remote/formidableajax.php (working copy)
"thrower" => t3lib_div::_GP("thrower"),
"arguments" => t3lib_div::_GP("arguments"),
);
if(!array_key_exists("_SESSION", $GLOBALS) || !array_key_exists("ameos_formidable", $GLOBALS["_SESSION"])) {
$this->denyService("SESSION is not started !");
}
if(array_key_exists($this->aRequest["object"], $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["ajax_services"])) {
if(array_key_exists($this->aRequest["servicekey"], $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["ajax_services"][$this->aRequest["object"]])) {
// requested service exists
......
}
}
session_start();
$oAjax = new formidableajax();
if($oAjax->init() !== FALSE) {
ext_localconf.php (working copy)
}
}
if(!isset($GLOBALS["_SESSION"])) {
session_start();
}
if(!array_key_exists("ameos_formidable", $GLOBALS["_SESSION"])) {
$GLOBALS["_SESSION"]["ameos_formidable"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"]["ajaxevent"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["hibernate"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["applicationdata"] = array();
}
if(!array_key_exists("ameos_formidable", $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"])) {
require_once(PATH_formidable . 'ext_emconf.php');
api/class.tx_ameosformidable.php (working copy)
* @return void
*/
function init(&$oParent, $mXml, $iForcedEntryId = FALSE) {
$this->sessionStart();
$this->start_tstamp = t3lib_div::milliseconds();
......
$this->bInited = TRUE;
}
function sessionStart() {
if(!isset($GLOBALS["_SESSION"])) {
session_start();
}
if(!array_key_exists("ameos_formidable", $GLOBALS["_SESSION"])) {
$GLOBALS["_SESSION"]["ameos_formidable"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"]["ajaxevent"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["hibernate"] = array();
$GLOBALS["_SESSION"]["ameos_formidable"]["applicationdata"] = array();
}
}
function initAPI(&$oParent) {
$this->_oParent =& $oParent;
}
(1-1/10)