<?php

/******************************************************************

	Sample INDEXU Integration codes
	This file should be in 3rd party script

******************************************************************/


include "nusoap.php";

/******************************************************************/

$username = "user1";
$password = "userpass1";
$email    = "user1@mydomain.com";

$indexu_soap_key = "aabbcc";
$indexu_soap_url = "http://localhost/indexu/dev/upload/soap/server.php";

$register = IndexuRegister($username, $password, $email); 


/******************************************************************/
/* DO NOT CHANGE THE CODES BELOW                                  */
/******************************************************************/

function IndexuRegister($username, $password, $email) {
	
	global $indexu_soap_key, $indexu_soap_url;
	
  $parameters = array('api_key'  => $indexu_soap_key,
                      'username' => $username,
                      'password' => $password,
                      'email'    => $email);
  $soapclient = new soapclient('http://localhost/indexu/dev/upload/soap/server.php');
	return $soapclient->call('AddNewUser',$parameters);
}

?>