translating xajax requests in utf-8 to the system-charset

This commit is contained in:
Ralf Becker 2006-03-01 13:31:07 +00:00
parent aa536186c1
commit 75524e8142

View File

@ -41,20 +41,11 @@
include('./header.inc.php'); include('./header.inc.php');
$sessionid = get_var('sessionid',array('COOKIE','GET'));
$kp3 = get_var('kp3',array('COOKIE','GET'));
// the session has been created already
// the browser is sending all needed egroupware cookies
if($GLOBALS['phpgw']->session->verify($sessionid,$kp3))
{
$ajaxClass = CreateObject("$appName.$className"); $ajaxClass = CreateObject("$appName.$className");
$argList = $GLOBALS['egw']->translation->convert($argList, 'utf-8');
return call_user_func_array(array(&$ajaxClass, $functionName), $argList ); return call_user_func_array(array(&$ajaxClass, $functionName), $argList );
} }
}
$xajax = new xajax($_SERVER["PHP_SELF"]); $xajax = new xajax($_SERVER["PHP_SELF"]);
$xajax->registerFunction("doXMLHTTP"); $xajax->registerFunction("doXMLHTTP");