= $i){ $i = $offset; $result[] = $offset; } } } $firstdot= $result[0]; $seconddot= $result[1]; $thirddot=$result[2]; $part1=substr ( $ip, 0, $firstdot); $part2=substr ( $ip, $firstdot+1, $seconddot-$firstdot-1); $part3=substr ( $ip, $seconddot+1, $thirddot-$seconddot-1); $part4=substr ( $ip, $thirddot+1, 3); $decimalip= $part1*16777216+$part2*65536+$part3*256+$part4; $sql = "SELECT * FROM `iplist` WHERE `ipfrom` <= $decimalip and `ipto` >= $decimalip"; $countrylist = mysql_query($sql) or die("$sql"); $hits=mysql_num_rows ($countrylist); $retval="Unknown"; if($hits>0){ $row = mysql_fetch_assoc($countrylist); $retval=$row['country']; } // echo ("hits: ".$hits." IP: ".$ip." Decimal IP: ".$decimalip." Retval: ".$retval); $_SESSION['country']=$retval; $rawkeyword_string = $_GET['searchval']; // In case the search value is passed between pages $referertext=$_SERVER['HTTP_REFERER']; $_SESSION['refererstring']=$referertext; $parsed_url=parse_url($referertext); $querystring=$parsed_url; $googleresult=strpos($parsed_url['host'],'google'); $yahooresult=strpos($parsed_url['host'],'yahoo'); $bingresult=strpos($parsed_url['host'],'bing'); $AOLresult=strpos($parsed_url['host'],'aol'); $askresult=strpos($parsed_url['host'],'ask.com'); $dogpileresult=strpos($parsed_url['host'],'dogpile.com'); if($googleresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[G]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Google"; elseif($yahooresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['p'].'[Y]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Yahoo"; elseif($bingresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[B]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Bing"; elseif($AOLresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['query'].'[AOL]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="AOL"; elseif($askresult !== false): parse_str($parsed_url['query'],$parsed_query_string); $rawkeyword_string=$parsed_query_string['q'].'[Ask]'; $_SESSION['keyword']=$rawkeyword_string; $_SESSION['engine']="Ask.com"; else: $_SESSION['engine']="None"; $_SESSION['keyword']="None"; $destination="Landed"; endif; } // Session variables are now defined $keyword_string=rawurlencode($_SESSION['keyword']); // Write to Database $db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword) OR DIE("Unable to connect to database"); $db1 = mysql_select_db($dbName, $db) or die ("Couldn't select database."); $time = date("Y-m-d H:i:s"); $justdate = date("Y-m-d"); $pagename="/free"; $ip=$_SESSION['hostip']; $kw=$_SESSION['keyword']; $country=$_SESSION['country']; $engine=$_SESSION['engine']; $thissession=session_id(); $qry="INSERT INTO `clicks` (`date_clicked` , `justdate`, `ip_address` , `page`, `keyword`,`engine`,`session`, `dest_url`, `country`) VALUES ('$time', '$justdate','$ip' , '$pagename' , '$kw', '$engine', '$thissession', '$destination', '$country');"; mysql_query($qry) or die("something went wrong"); $linkbase="'; // $idguardlink=""; // External links $smartcreditlink=$linkbase."Smart%20Credit%20with%20Free%20Trial&searchval=".$keyword_string."'>"; $escapelink=$linkbase."Escape%20By%20Discover&searchval=".$keyword_string."'>"; $equifaxlink=$linkbase."Equifax&searchval=".$keyword_string."'>"; $gofreecreditlink=$linkbase."GoFreeCredit&searchval=".$keyword_string."'>"; $idguardlink=$linkbase."ID%20Guard&searchval=".$keyword_string."'>"; $freecreditreportlink=$linkbase."FreeCreditReport.com&searchval=".$keyword_string."'>"; $myficolink=$linkbase."MyFICO&searchval=".$keyword_string."'>"; $CRSlink=$linkbase."creditreportsandscores.com&searchval=".$keyword_string."'>"; $protectmyidlink=$linkbase."protectmyid.com&searchval=".$keyword_string."'>"; $idlookoutlink=$linkbase."ID%20Lookout&searchval=".$keyword_string."'>"; $privacymatterslink=$linkbase."Privacy%20Matters&searchval=".$keyword_string."'>"; $creditreportsandscoreslink=$linkbase."creditreportsandscores.com&searchval=".$keyword_string."'>"; ?> Receive Your Free Credit Score in Seconds at CreditScoreQuick.com
credit score quick
Featured Offer
  • Access to your 3 Credit Scores
  • Daily 3-Bureau Credit Monitoring
  • Alerts of new accounts
  • Identity fraud support service
  • Online credit education center
  • 30-Day Free Trial then just $14.99 thereafter

GoFreeCredit.com
  • Get your Instant Credit Scores
  • Monitors your credit profile on a daily basis from all 3 bureaus
  • Alerts you to changes
  • 7-Day Trial
Try GoFreeCredit.com Today!
Get your Instant Free Credit Scores and Credit Report Monitoring.
Compare offers from top brands you can trust.

Get a credit score report from Equifax, Trans Union and Experian. Knowing what is on your credit report is the first step to proper credit management. CreditScoreQuick.com is your online credit resource. Get your credit rating online instantly and securely.
• Access to your 3 Credit Scores
• Daily 3-Bureau Credit Monitoring
• Alerts of new accounts
• 30-Day Free Trial then just $14.99 thereafter
FreeScoresAndMore
• Monitors your credit profile on a daily basis from all 3 bureaus
• Alerts you to changes
• Get your Instant Credit Scores
• 7-Day Trial
Try GoFreeCredit.com Today!
Get your Instant Credit Scores Today!
• No cost debt analysis
• Unlimited scores from all 3 bureaus
• 7 Day Trial and $29.95 per month afterwards
Try Privacy Matters Today!
• Experian® credit rating with enrollment in Triple Advantage®
• Includes a $50,000 Triple Advantage Product Guarantee
• Unlimited Experian® credit rating and Experian® Score with paid membership
• 7 Day Trial and $14.95 per month afterwards
Try freecreditscore.com Today!