Hello Klaus!
Thanks for your quick answer!
I tried what you said but I doesn’t work yet.
In Admin> View Access Log, “Lbr” user is successfully logged but the
forward action doesn’t work.
I have tried a lot of things to get working without success.
So, that why I wonder if it is possible to do a forward from an external
url call.
Do you have an idea of that?
For info, here is my code :
<?php
echo '
BEGIN login AUTH';
loginServiceRequest();
echo '
END login AUTH';
function loginServiceRequest() {
$HTTP_URL =
'http://127.0.0.1:8888/PlusComposites/login.php?cd=10&phpgw_forward=/index.php?menuaction=calendar.calendar_uiviews.index'
;
// POST parameters
$data = array(
'passwd_type' => 'text',
'account_type' => 'u',
'login' => 'lbr',
'passwd' => 'lbr',
'logindomain' => 'default'
) ;
$data2 = http_build_query($data) ;
$param = array(
'http'=>array(
'method' => 'POST',
'header' => 'Content-Type:
application/x-www-form-urlencoded',
'protocol_version' => '1.1',
'content' => $data2
)
) ;
$ctx = stream_context_create($param) ;
$fp = fopen($HTTP_URL,'rb',false,$ctx) ;
}
?>
Thanks again for your help!
Best regards,
Lucie BRAYE
Please note that as of 12th July 2011, my direct extension is 2735.
Lucie Braye
R&D Engineer
Centre de Recherche Public Henri Tudor
29, avenue John F. Kennedy
L-1855 Luxembourg
Phone : +352 42 59 91 - 2735
Fax : +352 42 59 91 - 777
Mail : lucie.braye@tudor.lu
www.tudor.lu
Please do not print this document unless it is necessary. Consider the
environment.