| 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
/*
* 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';
$data = array();
$user_id = $_SESSION['tm_id'];
//ini_set('display_errors',1);
//error_reporting(E_ALL);
require_once('functions.translators.php');
$translators_obj = new Translators();
require_once('functions.test_voting.php');
$test_voting_obj = new Test_voting();
$user_level = $translators_obj->getCurrentUserLevelByUserId( $user_id );
$data['user_current_level'] = $user_level;
if( $user_level >= 11 ) {
$data['btn_request_marketplace_access'] = '<button type="button" id="btn_request_marketplace_access" class="btn btn-success waves-effect waves-light">Request Marketplace Access</button>';
$data['request_marketplace_access_div_display'] = 'd-block';
} else {
$data['btn_request_marketplace_access'] = '';
$data['request_marketplace_access_div_display'] = 'd-none';
}
//Test Score
$test_score = $test_voting_obj->getTestScore( $user_id );
if( $test_score > 0 ) {
$data['test_score_div'] = 'd-block';
} else {
$data['test_score_div'] = ' ';
}
$data['user_test_score'] = $test_score;
echo json_encode($data);