| 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";
$results = array();
$results['status'] = 300;
$results['message'] = 'Error in recording NEO3 Digital Wallet.';
if (isset($_SESSION['tm_id']) && isset($_POST['neo3_address']) ) {
$sqlCheckP = 'SELECT * FROM `tbl_translators` WHERE id = "' . $_SESSION['tm_id'] . '" AND neo3_address IS NULL ';
$resultCheckP = $mysqli->query($sqlCheckP);
if ($resultCheckP->num_rows == 1) {
$_SESSION['tm_neo3'] = trim($_POST['neo3_address']);
$sql1 = 'UPDATE `tbl_translators` SET `neo3_address`="'.addslashes(trim($_POST['neo3_address'])).'" WHERE `id` = ' . $_SESSION['tm_id'];
$result1 = $mysqli->query($sql1);
$results['status'] = 200;
$results['message'] = 'NEO3 Digital Wallet address saved successfully. ';
} else {
$results['message'] = 'This NEO3 Digital Wallet is already registered';
}
}
echo json_encode($results);