$SiteName = "British Sex Contacts";
require "includes/Connect.php";
//require "OLDBSC/includes/Headers.php";
// Add trafic to qd_hits table
//include 'OLDBSC/logbscstats.php';
// GENERATE RANDOM CONTACTS
function random_char($string) {
$length = strlen($string);
$position = mt_rand(0, $length - 1);
return($string[$position]);
}
function random_string ($charset_string, $length) {
$return_string = random_char($charset_string);
for ($x = 1; $x < $length; $x++)
$return_string .= random_char($charset_string);
return($return_string);
}
// GENERATE RANDOM
$random = array();
mt_srand((double)microtime() * 1000000);
$max = 100;
for($i=0;count($random)<5; $i++) {
$rand=rand(1, $max);
if(!in_array($rand,$random)) {
$random[$i]=$rand;
}
}
$CharsetOffset01 = "1234";
$CharsetOffset02 = "123456";
$Offset = random_string($CharsetOffset01, 1);
$Offset .= random_string($CharsetOffset02, 1);
$GirlCount = 1;
$sql = "SELECT ID, Name, Filename, Age, LastLogin, Location, RealTown, Description FROM QDGirls WHERE ( (Filename != '') AND (Filename IS NOT NULL) ) AND LastLogin <= CURDATE() ORDER BY LastLogin DESC, ID DESC LIMIT $Offset, 5";
$result = mysql_query($sql,$connection);
while ($myrow = mysql_fetch_array($result)) {
$ContactID[$GirlCount] = $myrow["ID"];
$ContactName[$GirlCount] = $myrow["Name"];
$Filename[$GirlCount] = $myrow["Filename"];
$ContactAge[$GirlCount] = $myrow["Age"];
$LastLogin[$GirlCount] = $myrow["LastLogin"];
$ContactRealTown[$GirlCount] = $myrow["Location"];
$Town[$GirlCount] = $myrow["RealTown"];
if ($Town[$GirlCount] != "") {
$ContactRealTown[$GirlCount] = "$Town[$GirlCount]";
}
if ($ContactRealTown[$GirlCount] == "%") {
$ContactRealTown[$GirlCount] = "the SOUTH-EAST";
}
$ContactDescription[$GirlCount] = $myrow["Description"];
$ContactID[$GirlCount] = $myrow["ID"];
// $ContactLink[$GirlCount] = "ViewProfile.php?ContactID=$ContactID[$GirlCount]&S_Gender=M&SiteID=$SiteID";
$ContactLink[$GirlCount] = "Join.php?SiteID=$SiteID";
$ContactPic[$GirlCount] = "
$ContactName[$GirlCount], $ContactAge[$GirlCount]');\">";
$GirlCount++;
}
// CLOSE CONNECTION
mysql_free_result($result);
mysql_close($connection);
?>
echo "$Count_Members"; ?> members! echo "$Count_New"; ?> new profiles! echo "$Count_Online"; ?> members online now! |
||||||||||||||
|