403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/innoutstorage2019/paypal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/innoutstorage2019/paypal/APIError.php
<?php
	/*************************************************
	 * APIError.php
	 *
	 * Displays error parameters.
	 *
	 * Called by DoDirectPaymentReceipt.php, TransactionDetails.php,
	 * GetExpressCheckoutDetails.php and DoExpressCheckoutPayment.php.
	 *************************************************/
	require_once('../webadmin/configure.php');

	$pid = session_id();

	$resArray = $_SESSION['reshash'];

	if (!empty($session_data["nvpReqArray"]["PWD"])) {
		$resArray["nvpReqArray"]["PWD"] = "";
	}
	if (!empty($session_data["nvpReqArray"]["USER"])) {
		$resArray["nvpReqArray"]["USER"] = "";
	}
	if (!empty($session_data["nvpReqArray"]["SIGNATURE"])) {
		$resArray["nvpReqArray"]["SIGNATURE"] = "";
	}

	//todo: save content to database

	if (isset($_SESSION['curl_error_no'])) {
		$errorCode    = $_SESSION['curl_error_no'];
		$errorMessage = $_SESSION['curl_error_msg'];
		session_unset();
	} else {
		$errorCode = "N/A";
		$errorMessage .= "<table>";
		foreach ($resArray as $key => $value) {
			$errorMessage .= "<tr><td> $key:</td><td>$value</td></tr>";
		}
		$errorMessage .= "</table>";
	}

	$sql = "INSERT INTO sys_errorlog SET tag = 'Paypal Error', error_code = ?, error_msg = ?, createdate = NOW(), refno = ?, sessionid = ?,
useragent = ?, _session = ?, _server = ?
";

	$parameters = array($errorCode, $errorMessage, var_export($resArray, true), $pid, $_SERVER['HTTP_USER_AGENT'], var_export($_SESSION, true), var_export($_SERVER, true));
	if (!($sth = $dbh->prepare($sql))) {
		throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
	}

	if (!$sth->execute($parameters)) {
		throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
	}
	$_SESSION["error_msg"] = "PayPal 付款出錯,請與我們聯絡。";
	header("Location: ../" . $_SESSION["langcode"] . "/contactus.php");
	exit;

Youez - 2016 - github.com/yon3zu
LinuXploit