// verify the browser user agent if the feature is enabled if (SESSION_CHECK_USER_AGENT == 'True') { $http_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); $http_user_agent2 = strtolower(getenv("HTTP_USER_AGENT")); $http_user_agent = $http_user_agent == $http_user_agent2 ? $http_user_agent : $http_user_agent . ';' . $http_user_agent2; if (!isset($_SESSION['SESSION_USER_AGENT'])) { $_SESSION['SESSION_USER_AGENT'] = $http_user_agent; } if ($_SESSION['SESSION_USER_AGENT'] != $http_user_agent) { session_destroy(); xtc_redirect(xtc_href_link(FILENAME_LOGIN)); } } // verify the IP address if the feature is enabled if (SESSION_CHECK_IP_ADDRESS == 'True') { $ip_address = xtc_get_ip_address(); if (!isset($_SESSION['SESSION_IP_ADDRESS'])) { $_SESSION['SESSION_IP_ADDRESS'] = $ip_address; } if ($_SESSION['SESSION_IP_ADDRESS'] != $ip_address) { session_destroy(); xtc_redirect(xtc_href_link(FILENAME_LOGIN)); } } // set the language if (!isset($_SESSION['language']) || isset($_GET['language'])) { include DIR_WS_CLASSES . 'language.php'; $lng = new language($_GET['language']); if (!isset($_GET['language'])) { $lng->get_browser_language(); }
function _logTransactions() { $this->logFileMoneybookers = DIR_FS_CATALOG . 'includes/mb.log'; $error = $this->_getError($this->Error, $this->data); if ($error == '') { $error = 'OK'; } $line = 'MB TRANS|' . date("d.m.Y H:i", time()) . '|' . xtc_get_ip_address() . '|' . $error . '|'; foreach ($_POST as $key => $val) { $line .= $key . ':' . $val . '|'; } error_log($line . "\n", 3, $this->logFileMoneybookers); }
function _logTransactions($parameters) { $logFilePP = DIR_FS_CATALOG . 'export/payment.rakuten_ipn-' . substr(md5($this->API_UserName), 0, 4) . '.log'; $line = 'RAKUTEN TRANS|' . date("d.m.Y H:i", time()) . '|' . xtc_get_ip_address() . '|'; foreach ($_POST as $key => $val) { $line .= $key . ':' . $val . '|'; } error_log($line . "\n", 3, $logFilePP); }