| 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/b2b2c/ |
Upload File : |
<?php
if(!function_exists('call_API')){
function call_API($url, $postData, $post)
{
if(!empty($post)){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
$result = curl_exec($ch);
curl_close($ch);
}else{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);
}
return $result;
}
}
$_REQUEST["v_mid"];
$v_subid = $_REQUEST["v_subid"];
$v_auditstatus = $_REQUEST["v_auditstatus"];
$v_auditstatusdesc = $_REQUEST["v_auditstatusdesc"];
$v_mac = $_REQUEST["v_mac"];
$url = 'http://api.silkroadebelt.com/api/merchant_application';
$postData = array(
'v_mid' => 10903,
'v_subid' => 1,
'v_auditstatus' => 1,
'v_auditstatusdesc' => 222,
'v_mac' => 1,
);
$post = 1;
$result = call_API($url, $postData, $post);
var_dump($result);
echo 1;
exit;
include 'webadmin/config.php';
$merchant_code = 10903;
$supplier_code = 1;
$sql = 'select * from supplier2 where merchant_code = ? and supplier_code = ? and deleted = ?';
$parameters = array($merchant_code, $supplier_code, 0);
$result = bind_pdo($sql, $parameters, "selectone", true, $dbh_list['application']);
var_dump($result);