Members Only
Area

Prospective
New Members
2011 Copyright The getAhead Network Inc. All Rights Reserved.
 
SERVER['REQUEST_URI'],1); # Strip rep of slashes and dots $rep = str_replace("/", "", $rep); $rep = str_replace("\\", "", $rep); $rep = str_replace(".", "", $rep); # Url to ByDesign $url = "https://Extranet.securefreedom.com/getAHEAD/ReplicatedURLSearch.asp?Replicated=" . $rep; # Open the url above and put it into the array, "repfile". $repfile=file($url); # If Successful... if($repfile){ # Seperate the string in the first line of repfile into another array at each "|". $repinfo=explode("|",$repfile[0]); # 1|RepDID|RepID|Name|Email|BillStreet1|BillStreet2|BillCity|BillState|BillPostalCode|Phone1|Phone3|PictureFilename # Reset Hello and WelcomeText $hello=''; $welcometext=''; $repid=0; $welcome=''; # If the person exists...(if the server returned true) if($repinfo[0]=="1"){ # Get the person's welcome text (1200 characters?) $welcometext=$repinfo[count($repinfo)-1]; # Get the rep id $repid=$repinfo[1]; # Get the person's name from the array $hello=$repinfo[3]; # Is there a comma? $comma=strstr($hello,", "); if($comma){ # Explode on comma+space $name=explode(", ",$hello); # Upper-case first letter of first & last names $name[0][0]=strtoupper($name[0][0]); $name[1][0]=strtoupper($name[1][0]); # Parse 'hello' !!!! $hello=$name[1].' '.$name[0]; $welcome=$hello; $hello.='&id='.$repinfo[2]; } else{ $welcome=$hello; $hello.='&id='.$repinfo[2]; } } } ?> The Get Ahead Network Inc.

Members Only
Area

Prospective
New Members
2011 Copyright The getAhead Network Inc. All Rights Reserved.