hi !
i'm trying to use the php code of Richard Gate who build pretty joomla extensions to zimbra :
Document Details | Zimbra Calendar Info Module
When i test it, it runs, but i have a error message :
Quote:
|
Notice: Undefined index: SESSIOND in E:\easyphp532\www\1_zimbra_joomla\helper.php on line 76
|
Here the located code in helper.php :
Code:
//Login (Save authtoken and sessionid)
function zimbra_login($zimbrauser, $zimbrapass, $preauth, $timestamp)
{
$req = '<AuthRequest xmlns="urn:zimbraAccount">';
$req .= '<account by="name">' . $zimbrauser . '</account>';
if ($zimbrapass != '') $req .= '<password>' . $zimbrapass . '</password>';
if ($preauth != '') $req .= '<preauth timestamp="' . $timestamp . '" expires="0">' . $preauth . '</preauth>';
$req .= '</AuthRequest>';
$this->zimbraSOAP_build_request($req);
if (!($res = $this->zimbraSOAP_execute_request())) return false;
if (!isset($res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'])) return false;
$x = $res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'];
echo "contenu de x <hr>:<pre>";print_r($x);echo "</pre>";
$this->zimbra_session = $x['SESSIOND']['DATA'];
$this->zimbra_auth = $x['AUTHTOKEN']['DATA'];
return true;
} As you can see, i put a pre-print to check the $x array to solve my problem.
So, here the content of the $x :
Quote:
Array
(
[XMLNS] => urn:zimbraAccount
[AUTHTOKEN] => Array
(
[DATA] => 0_341cc503b36348397bd70b7f8b1....
)
[LIFETIME] => Array
(
[DATA] => 172800000
)
[SKIN] => Array
(
[DATA] => myzimbramail
)
)
|
As you can see, there is no SESSIOND part in this strucutre.
The code is a little old, maybe Zimbra architecture is updated and this SESSIOND have be replace by something else....
1.
How can i solve this problem ?
2.
Should i ignore this error message even if the code runs (get daily appointment)
By advance, thanks for help
Best regards.