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/get_self_assessment_test_suggestions_count.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();

$user_id = $_SESSION['tm_id'];

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

require_once('functions.self_assessment_test_sentence_suggestions.php');

$sats_suggestions_obj = new Self_assessment_test_sentence_suggestions();

require_once('functions.test_voting.php');

$test_voting_obj = new Test_voting();

//get user's current test level 
$test_level = $test_voting_obj->getTestVotingLevelByUserId( $user_id ); 

/***
//user today submitted success self assessment test suggestion count
$userTodaySubmittedSuccessSuggestionCount =	$sats_suggestions_obj->getUserTodaySubmittedSuccessSatsSuggestionCount( $user_id );

//maximum no. of suggestion user can submit in day value
$maxSuggestionsUserCanSubmitInDay =	$sats_suggestions_obj->getMaxNoOfSuggestionUserCanSubmitInDay();

$data['user_today_submitted_success_suggestions_count'] = $userTodaySubmittedSuccessSuggestionCount;

$data['max_suggestions_user_can_submit_in_day'] = $maxSuggestionsUserCanSubmitInDay; 
***/

//get user submitted success work experience assessment suggestions count by user id and test level 
$user_success_suggestion_count_for_test_level = $sats_suggestions_obj->getUserSubmittedSuccessSatsSuggestionCountByUserIdAndLevel( $user_id, $test_level );

//get maximum no. of suggestion user can submit for test level
$max_suggestions_user_can_submit_for_test_level = $sats_suggestions_obj->getMaxNoOfSuggestionUserCanSubmitForTestLevel();

$data['user_current_test_level'] = $test_level;

$data['user_success_suggestion_count_for_test_level'] = $user_success_suggestion_count_for_test_level;

$data['max_suggestions_user_can_submit_for_test_level'] = $max_suggestions_user_can_submit_for_test_level;

echo json_encode($data);


Youez - 2016 - github.com/yon3zu
LinuXploit