country_code); $country = $record->country_name; $state = $record->region; $city = $record->city; $postalcode = $record->postal_code; $ulke2=$country; if(!$city) $city =$state; if(!$city) $city =$country; setcookie("country_short",$country_short,time()+86400,"/","$cookiedomain"); setcookie("country",$country,time()+86400,"/","$cookiedomain"); setcookie("city",$city,time()+86400,"/","$cookiedomain"); setcookie("postalcode",$postalcode,time()+86400,"/","$cookiedomain"); } else $ulke2=$country; if($country_short=="us") $afflink.="&zip={$postalcode}"; $th = @file("facetabletemplate.htm") or die("Can't open Template file"); $m = implode("",$th); include("countries_x.inc"); $ulke=str_replace(" ","_",$ulke2); $toplamsayfa=$countries_x[$ulke]; $pageno=rand(1,$toplamsayfa); $fileinc="{$listpath}/{$ulke}{$pageno}.php"; if (!is_file($fileinc)) $fileinc="{$listpath}/United_States{$pageno}.php"; include"$fileinc"; shuffle($profiller); for ($i = 1; $i <=12; $i++) { $profilno=$i-1; $idcik=$profiller[$profilno]['id']; $nick=$profiller[$profilno]['nick']; $folder=substr($idcik,-1,1); $md5=md5($idcik); $ilk8=substr($md5, 0, 6); $dosyaisim= $ilk8."x".$idcik.".jpg"; $picture="{$thumbdir}/{$folder}/{$dosyaisim}"; $m = @str_replace("{NICK".$i."}",$profiller[$profilno]['nick'],$m); $m = @str_replace("{PHOTO".$i."}",$picture,$m); } $m = str_replace("\"","\\\"",$m); $m = str_replace("\'","",$m); $m = str_replace("\n","",$m); $m = str_replace("\r","",$m); $m = @str_replace("{link}",$afflink,$m); $m = @str_replace("{CITY}",$city,$m); ?> document.write('');