////////////////////////////////////////////////
// //
// Title: fCoder Cookie Guide //
// SubTitle: Cookie fitter `n` counter //
// //
// Version: 1.1 //
// Date: 14 May, 2003 //
// //
////////////////////////////////////////////////
$fc_cookie_domain = "lookrs232.com";
$fc_expire_monthes = 3;
$fc_mysql_host = "localhost"; // MySQL Host
$fc_mysql_user = "root"; // MySQL User
$fc_mysql_pass = "cegthflvby"; // MySQL Password cegthflvby
$fc_mysql_base = "fusers";
$fc_docURI = preg_replace ("/^http\:\/\//", "", $HTTP_SERVER_VARS['HTTP_REFERER']);
//$fc_docURI = $HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['REQUEST_URI'];
$fc_docREFERER = preg_replace ("/^http\:\/\//", "", $HTTP_SERVER_VARS['QUERY_STRING']);
$fc_expire = time() + (3600 * 24 * 30 * $fc_expire_monthes);
if (!isset($fcUID) || $fcUID == "") {
$fc_dblink = mysql_connect($fc_mysql_host, $fc_mysql_user, $fc_mysql_pass) or die("Can`t connect to DataBase");
@mysql_select_db($fc_mysql_base, $fc_dblink) or die("Can`t select DataBase");
$fc_query = "INSERT INTO fcguide (dateA, page, referer, cnt) VALUES ('".date ("Y-m-d")."', '".$fc_docURI."', '".$fc_docREFERER."', '1')";
$fc_result = mysql_query($fc_query, $fc_dblink);
$fcUID = mysql_insert_id();
mysql_close($fc_dblink);
SetCookie ("fcUID", $fcUID, $fc_expire, "", $fc_cookie_domain);
}
if (isset($fcCnt) && $fcCnt != "") {
$fcCnt = $fcCnt + 1;
}
else {
$fcCnt = 1;
}
SetCookie ("fcCnt", $fcCnt, $fc_expire, "", $fc_cookie_domain);
Header('Location: /img/1x1.gif');
/*
print $referer."-".$page."-".$fcCnt;
print "
";
foreach ($HTTP_COOKIE_VARS as $key=>$val) {
print $key." - ".$val."
";
}
*/
?>