Current File : //root/panel/etc/apps/softaculous/CreateUserAccount.php
<?php
$url = 'http://45.113.136.119:2006/index.php?'.
		'api_key=fhJHtGxt3FkQ5G6S'.
		'&api_pass=mVCByzzrLN71S5iFo3U6M4oeutqUc77b'.
		'&api=serialize'.
		'&act=adduser';


$post = array('saveuser' => 1,
		'username' => 'sanghi_new',
		'user_email' => 'sangeeth@hostingraja.in',
		'num_users' => '0');

// Set the curl parameters.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $time);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// Turn off the server and peer verification (TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);

if(!empty($post)){
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
}
				 
// Get response from the server.
$resp = curl_exec($ch);
		  
// The response will hold a string as per the API response method. In this case its PHP Serialize
$res = unserialize($resp);
print_r(json_encode($res));
// Done ?
if(!empty($res['done'])){
	print_r($res);
	// Error
}else{
	echo 'Some error occured';
	print_r($res['error']);
}
?>