| Server IP : 64.202.187.69 / Your IP : 216.73.217.74 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
include 'connection.php';
$base_url = "https://translator.translateme.market/";
if (isset($_GET['code']) && !empty(trim($_GET['code']))) {
$link = trim($_GET['code']);
$arr = explode('_', $link);
if (sizeof($arr) == 2) {
$code = $arr[0];
$loginid = $arr[sizeof($arr) - 1];
/* -------- User account activation ------------ */
$sql = 'SELECT `verify_link_code` FROM `tbl_translators` WHERE verify_link_code = "' . addslashes($link) . '" and id = "' . $loginid . '"';
$result = $mysqli->query($sql);
if ($result->num_rows > 0) {
$sql1 = 'UPDATE `tbl_translators` SET `is_verified`= 1 WHERE `verify_link_code` = "' . addslashes($link) . '" and id = "' . $loginid . '"';
$result1 = $mysqli->query($sql1);
if (isset($_SESSION['tm_id'])) {
$_SESSION['tm_is_verified'] = 1;
header('Location: ' . $base_url . '/index.php?activated=1');
} else {
header('Location: ' . $base_url . '/login.php?activated=1');
}
exit;
}
/* --------------------------------------------- */
}
}
if (isset($_SESSION['tm_id'])) {
header('Location: ' . $base_url . '/index.php?invalid=1');
} else {
header('Location: ' . $base_url . '/login.php?invalid=1');
}