Acesta este un script facut in urma cu cateva luni, care in timp s-a raspandit pe multe site-uri de pe internetul romanesc. Scrii la variabila $id id-ul persoanei si scriptul ii va gasi statusul.
<?php
/*
Yahoo! Invisible Scanner
Author: Dragos Gaftoneanu
Date: 09/24/2010
www.dragosgaftoneanu.com
*/
$id = "YourIdHere"; // The id which will be scanned
$link = "http://www.ymsgr.net/check.php?id="; // The server which scans the id
/* Scanning */
$thelink = $link . $id;
$source = file_get_contents_curl($thelink);
$status = get_string_between ($source, '<font color="#FF9900">--', '--</font>');
echo $id . " is " . $status;
/* Functions */
function file_get_contents_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
function get_string_between($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}
?>