25if (session_id() ==
"") {
27 if (ini_get(
'register_globals')) {
28 foreach ($_SESSION as $key => $value) {
29 if (isset($GLOBALS[$key])) {
30 unset($GLOBALS[$key]);
50if (!empty($conf->global->PAYPAL_API_SANDBOX) ||
GETPOST(
'forcesandbox',
'alpha')) {
51 $API_Endpoint =
"https://api-3t.sandbox.paypal.com/nvp";
52 $API_Url =
"https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=";
54 $API_Endpoint =
"https://api-3t.paypal.com/nvp";
55 $API_Url =
"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=";
60if (!empty($conf->global->PAYPAL_API_USER)) {
61 $PAYPAL_API_USER = $conf->global->PAYPAL_API_USER;
63$PAYPAL_API_PASSWORD =
"";
64if (!empty($conf->global->PAYPAL_API_PASSWORD)) {
65 $PAYPAL_API_PASSWORD = $conf->global->PAYPAL_API_PASSWORD;
67$PAYPAL_API_SIGNATURE =
"";
68if (!empty($conf->global->PAYPAL_API_SIGNATURE)) {
69 $PAYPAL_API_SIGNATURE = $conf->global->PAYPAL_API_SIGNATURE;
71$PAYPAL_API_SANDBOX =
"";
72if (!empty($conf->global->PAYPAL_API_SANDBOX)) {
73 $PAYPAL_API_SANDBOX = $conf->global->PAYPAL_API_SANDBOX;
77$PROXY_HOST = $conf->global->MAIN_PROXY_HOST;
78$PROXY_PORT = $conf->global->MAIN_PROXY_PORT;
79$PROXY_USER = $conf->global->MAIN_PROXY_USER;
80$PROXY_PASS = $conf->global->MAIN_PROXY_PASS;
81$USE_PROXY = empty($conf->global->MAIN_PROXY_USE) ?
false:
true;
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.