| Server IP : 64.202.187.69 / Your IP : 216.73.216.192 Web Server : Apache System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64 User : transmarket ( 1001) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/transmarket/translator/controllers/ |
Upload File : |
<?php
include 'connection.php';
include "../vendor/autoload.php";
/*$neo = new \NeoPHP\NeoRPC(true);
$neo->setNode("https://seed0.cityofzion.io:443");
*/
$results = array();
$results['status'] = 300;
$results['message'] = 'Error in verifying NEO Digital Wallet.';
if (isset($_SESSION['tm_id']) && isset($_POST['neo_address']) && $_SESSION['tm_is_neo_verified'] == 0) {
$sqlCheckP = 'SELECT * FROM `tbl_translators` WHERE id != "' . $_SESSION['tm_id'] . '" and neo_address = "' . addslashes(trim($_POST['neo_address'])) . '"';
$resultCheckP = $mysqli->query($sqlCheckP);
if ($resultCheckP->num_rows == 0) {
//$is_neo_verified = 0;
/*if(isNeoNodeConnected()){
if ($neo->validateAddress(trim($_POST['neo_address']))) {*/
//$is_neo_verified = 1;
$_SESSION['tm_is_neo_verified'] = 1;
$_SESSION['tm_neo'] = trim($_POST['neo_address']);
$sql1 = 'UPDATE `tbl_translators` SET `is_neo_verified` = "1", neo_address="'.addslashes(trim($_POST['neo_address'])).'" where `id` = ' . $_SESSION['tm_id'];
$result1 = $mysqli->query($sql1);
$results['status'] = 200;
$results['message'] = 'NEO Digital Wallet saved successfully. ';
/* } else {
$results['message'] = 'Please enter valid neo address. ';
}
} else {
$results['message'] = '<a href="https://neotracker.io/" target="_blank">www.neotracker.io</a> is not responding, please try verify in 1 hour';
}*/
} else {
$results['message'] = 'This NEO Digital Wallet is already registered';
}
}
echo json_encode($results);
function isNeoNodeConnected(){
$ch = curl_init('https://seed0.cityofzion.io:443');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 200);
$data = curl_exec($ch);
$curl_errno = curl_errno($ch);
$curl_error = curl_error($ch);
curl_close($ch);
if ($curl_errno > 0) {
return false;
} else {
return true;
}
}