db_query("SELECT browser_hits FROM hits_browser WHERE browser_name = '". $browser . "' AND browser_version = '" . $browserVers . "'", __FILE__, __LINE__); if ($gfldb->db_numrows()==0) { $gfldb->db_query("INSERT INTO hits_browser ( browser_name, browser_version, browser_hits ) VALUES ( '$browser', '$browserVers', 1 )", __FILE__, __LINE__); } else { list($numhits) = $gfldb->db_fetch_rowarray(); $nh = $numhits+1; $gfldb->db_query("UPDATE hits_browser SET browser_hits = $nh WHERE browser_name = '$browser' AND browser_version = '$browserVers'", __FILE__, __LINE__); } // hits by date $gfldb->db_query("SELECT num_hits FROM hits_date WHERE date_hit='".database_date(time())."'", __FILE__, __LINE__); if ($gfldb->db_numrows()==0) $gfldb->db_query("INSERT INTO hits_date ( date_hit, num_hits ) VALUES ( '".database_date(time())."', 1 )", __FILE__, __LINE__); else { $nh = $gfldb->db_result(0, "num_hits")+1; $gfldb->db_query("UPDATE hits_date SET num_hits = $nh WHERE date_hit='".database_date(time())."'", __FILE__, __LINE__); } // Who referred me? $refurl = $_SERVER['HTTP_REFERER']; if (strlen($refurl)>0) { $url_components = parse_url($refurl); $refhost = $url_components["host"]; if (strcmp($refhost, "www.globalfreeloaders.com")!=0) { $referrer = $refurl; $gfldb->db_query("SELECT referrer_id FROM hits_referrer WHERE referrer_url='$referrer'", __FILE__, __LINE__); if ($gfldb->db_numrows()==0) { $gfldb->db_query("INSERT INTO hits_referrer ( referrer_url ) VALUES ( '$referrer' )", __FILE__, __LINE__); $refid = $gfldb->db_insert_id(); } else { $refid = $gfldb->db_result(0, "referrer_id"); } $gfldb->db_query("SELECT date FROM hits_referrer_hits WHERE referrer_id = $refid AND date = NOW()", __FILE__, __LINE__); if ($gfldb->db_numrows() == 1) { $gfldb->db_query("UPDATE hits_referrer_hits SET num_hits = num_hits+1 WHERE referrer_id = $refid AND date = CURDATE()", __FILE__, __LINE__); } else { $gfldb->db_query("INSERT INTO hits_referrer_hits ( date, referrer_id, num_hits ) VALUES ( NOW(), $refid, 1 )", __FILE__, __LINE__); } } } ?>
GlobalFreeloaders.com is an online community, bringing people together to offer you free accommodation all over the world. Save money and make new friends whilst seeing the world from a local's perspective!

Welcome to GlobalFreeloaders.com!

For more information click on New User Info.

Read what one of our members had to say about his GlobalFreeloading experience around Europe, or check out some Testimonials from other members.

If you would like to join GlobalFreeloaders then click here to register.

Already a member? Simply click on Members and enter your username and password to log into the site, or just use the Quick Login in the left frame.

If you have any questions, suggestions or complaints, please contact us. Such contributions are valued as they will help improve GlobalFreeloaders.com.