예제 #1
0
function pullOstatusProfile($uri)
{
    $oprofile = null;
    if (Validate::email($uri)) {
        $oprofile = LooseOstatusProfile::updateWebfinger($uri);
    } else {
        if (Validate::uri($uri)) {
            $oprofile = LooseOstatusProfile::updateProfileURL($uri);
        } else {
            print "Sorry, we could not reach the address: {$uri}\n";
            return false;
        }
    }
    return $oprofile;
}