public static function singleton() { if (!isset(self::$instance)) { $nombreClase = __CLASS__; self::$instance = new $nombreClase(); } return self::$instance; }
<?php include 'fakeFBdetector.php'; $detect = new FakeFBDetector(); $result = null; //Check if the ID exists $profile_id = $_POST['id']; if (isset($profile_id)) { if ($detect->isFakeFacebook($profile_id)) { $result = "fb falso"; } else { $result = "fb real"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Fake Facebook Detector By James Jara and Luis Montero</title> <style type="text/css"> <!-- body { background-color: #003366; } .Estilo1 { font-size: 24px; color: #FFFFFF; } .Estilo2 { color: #FFFFFF;