session_start(); ?>
= $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="/loans";
$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="';
// External links
$loanlink=$linkbase."Personal%20Loan&searchval=".$keyword_string."'>";
$simpletuitionlink=$linkbase."SimpleTuition&searchval=".$keyword_string."'>";
$triplealertlink=$linkbase."TripleAlert&searchval=".$keyword_string."'>";
$personallink=$linkbase."Personal%20Loan&searchval=".$keyword_string."'>";
$creditsouplink=$linkbase."CreditSoup&searchval=".$keyword_string."'>";
$cashadvancelink=$linkbase."Cash%20Advance%20Expert&searchval=".$keyword_string."'>";
$autoloanlink=$linkbase."Auto%20Loan%20Access&searchval=".$keyword_string."'>";
$gofreecreditlink=$linkbase."GoFreeCredit&searchval=".$keyword_string."'>";
// These have no keyword subid yet Use the carat to omit keyword
// $idlookoutlink=$linkbase."ID%20Lookout&searchval="."^"."'>";
?>
Debt Consolidation and Debt Relief, Personal Loan or Business Loan at CreditScoreQuick.com
Credit Scores
Finally, a Powerful, Affordable, Way to Stay on Top of Your Credit!
• The same type of information lenders and creditors see! $15
• Your Experian, Trans-Union, and Equifax credit reports-plus a FREE Credit Score! $24.95
• Stop wondering what's in your Credit Report and see for yourself! $10 Try TripleAlert Now!
Solutions to improve your credit rating and maximize your purchasing power.
• Unlimited access to your Credit Report for 60 days.
• Automatic notifications of changes to your credit
report can help you.
• See where your credit stands by viewing just like
creditors see! Try GoFreeCredit Now!
Loans
Personal Loan
Quickly qualify for a personal loan.
Borrow up to $15,000* confidential and secure. Quick approva, FREE quote, no obligation to accept, enhance your credit rating. Credit.com
CreditSoup®
Committed to customer satisfactionl
Buying a new car or used car is exciting. CreditSoup® can make
finding auto loans fun and exciting as well. CreditSoup®
Need Cash?
... and Payday is a Week Away?
Receive up to $1500 in a cash advance. Free, no obligation application.
Money is deposited into your account within 24 hours. All credit types should apply. Cash Advance Expert
Secured Car Loans
Cars are expensive.
Our team of expert brokers has dedicated countless hours to compare
and rank secured loan lenders. Secured Car Loans
SimpleTuition
Compare and apply for student loans
Search for your student loans from more than 20 lenders to make the
best college funding choice for you and your family.
Try SimpleTuition
Approved!
Don't let poor credit keep you from an approval. Get Your Loan Today.
Auto Loans For ANY Credit Situation.
Get the Car of Your Dreams
No Obligations. No Credit? Bad Credit? No Problem. Get your Loan Today!
• Bad Credit Auto Loan advice
• We're here to try and fix that;
drive a new vehicle within a few days of applying.
• Car Buying Tips Easy Auto Loan Application!Secured Credit Cards
Re-establish your credit
Turn over a new leaf. VISA or MasterCard! Apply now!