예제 #1
0
            return false;
        }
    }
    return $oprofile;
}
$quiet = have_option('q', 'quiet');
$lop = new LooseOstatusProfile();
if (have_option('u', 'uri')) {
    $lop->uri = get_option_value('u', 'uri');
} else {
    if (!have_option('a', 'all')) {
        show_help();
        exit(1);
    }
}
$cnt = $lop->find();
if (!empty($cnt)) {
    if (!$quiet) {
        echo "Found {$cnt} OStatus profiles:\n";
    }
} else {
    if (have_option('u', 'uri')) {
        if (!$quiet) {
            echo "Couldn't find an existing OStatus profile with that URI.\n";
        }
    } else {
        if (!$quiet) {
            echo "Couldn't find any existing OStatus profiles.\n";
        }
    }
    exit(0);