if ($cookie) {
$ch = curl_init();
$url = "https://api.facebook.com/method/fql.query?access_token=$cookie[access_token]&query=select%20uid%2Cpage_id%20from%20page_fan%20where%20page_id%3D172232495764%20and%20uid%3D$cookie[uid]";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($ch);
curl_close($ch);
$p = explode("
", $data);
$p = explode("", $p[1]);
// $pilih = $_GET['id'];
if (strlen($p[0]) > 4)
{
/*
*/
?>
Pendaftaran Ditutup
}
else
{
?>
}
}
else
{
?>
Silahkan login sebelum melanjutkan
}
?>