403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.216.64
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/asap_sites/5starttoolkit.com/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/asap_sites/5starttoolkit.com/api/LCAPI.php
<?

class LCAPI
{
	var $response = "";
	
	function LCAPI()
	{
	
	}
	
	function CreateUser($fields)
	{
		$url = "https://www.learningcentersupport.com/lcapi/CreateUser.php";
		$this->response = $this->PostFields($url,$fields);
		if ($this->response->status == "Success") { return true; }
		else { return false; }
	}
	
	function CreateLead($fields)
	{
		$url = "http://www.learningcentersupport.com/lcapi/CreateLead.php";
		$this->response = $this->PostFields($url,$fields);
		if ($this->response->status == "Success") { return true; }
		else { return false;}
	}
	
	function PostFields($url,$fields)
	{
		/*$ch = curl_init();
	  	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	  	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
	  	curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI']);
	  	curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_POST, 1);
	  	curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
	  	curl_setopt($ch, CURLOPT_USERAGENT, "LCAPI cUrl Agent");
		ob_start();   
	  	$data = curl_exec ($ch);  
	  	ob_end_clean(); 
		curl_close ($ch);*/
		if(!empty($fields)) {
			$url .= (strpos($url,'?')!==false) ? '' : '?';
			$first = true;
			foreach($fields as $k=>$v) {
				$url .= (strpos($url,'&')!==false || !$first) ? '&'.urlencode($k).'='.urlencode($v) : urlencode($k).'='.urlencode($v);
				$first = false;
			}
		}
		$data = file_get_contents($url);
		$lcresponse = new LCAPIResponse($data);
		return $lcresponse;
	}

}

class LCAPIResponse
{
	var $status = "";
	var $userid = "";
	var $errormessage = "";
	
	function LCAPIResponse($response)
	{
		// $response is in the format:
		// (Success|Failure): (userid|errormessage)
		list($responsestatus,$responsemessage) = explode(":",$response);
		
		if ($responsestatus == "Success")
		{
			$this->status = "Success";
			$this->userid = $responsemessage;
		}
		else
		{
			$this->status = "Failure";
			$this->errormessage = $responsemessage;
		}
	}	
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit