Sir
I am using Opencart 1.5.3 and login with linkedin API. in localhost code run successfully but in opencart, there is problem with QUERY_STRING .
In that code not return callbackurl.
$_REQUEST[LINKEDIN::_GET_TYPE] return null value
so plese help me
// set index
$_REQUEST[LINKEDIN::_GET_TYPE] = (isset($_REQUEST[LINKEDIN::_GET_TYPE])) ? $_REQUEST[LINKEDIN::_GET_TYPE] : '';
switch($_REQUEST[LINKEDIN::_GET_TYPE]) {
case 'initiate':
/**
* Handle user initiated LinkedIn connection, create the LinkedIn object.
*/
// check for the correct http protocol (i.e. is this script being served via http or https)
if($_SERVER['HTTPS'] == 'on') {
$protocol = 'https';
} else {
$protocol = 'http';
}
// set the callback url
$this->API_CONFIG['callbackUrl'] = $protocol . '://' . $_SERVER['SERVER_NAME'] . ((($_SERVER['SERVER_PORT'] != PORT_HTTP) || ($_SERVER['SERVER_PORT'] != PORT_HTTP_SSL)) ? ':' . $_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF'] . '?' . LINKEDIN::_GET_TYPE . '=initiate&' . LINKEDIN::_GET_RESPONSE . '=1';
$this->OBJ_linkedin = new LinkedIn($this->API_CONFIG);
Original issue reported on code.google.com by pradeeps...@gmail.com on 2 Nov 2012 at 10:48
Original issue reported on code.google.com by
pradeeps...@gmail.com
on 2 Nov 2012 at 10:48Attachments: