<?php
//-------------------------------------
//DoppelMe Constants
//-------------------------------------
$DOPPELME_SITE = "http://api.doppelme.com";
$DOPPELME_SERVICE = "http://services.doppelme.com/partnerservice.asmx?WSDL";
$DM_PARTNER_ID = 1; //put your partner id here
$DM_PARTNER_KEY = "A"; //put your partner key here
//-------------------------------------
//DoppelMe Functions
//-------------------------------------
function TestSetup() {
global $DOPPELME_SERVICE;
$client = new SoapClient( $DOPPELME_SERVICE , array('trace' => 1) );
//echo "client:\n";
//var_dump($client);
//echo "\nAvailable methods:\n";
//var_dump($client->__getFunctions());
echo "\n\nCurrent Version:\n";
var_dump($client->Version()->VersionResult);
}
function PartnerServiceCall($sURL, $sPARAMS) {
global $DOPPELME_SERVICE;
$client = new SoapClient( $DOPPELME_SERVICE );
$sReturnXML = $client->__soapCall( $sURL, $sPARAMS );
return $sReturnXML;
}
//a very simple sanitizer function given here purely as an example.
//you should use your own more robust/complete sanitizer
function CleanTaintedInput($sText) {
$sClean = $sText;
$sClean = str_replace($sClean,"'","");
$sClean = str_replace($sClean,";","");
return $sClean;
}
?>