podcrawler.php 221 Bytes
Newer Older
David Morley's avatar
David Morley committed
1 2
<?php

dmorley's avatar
dmorley committed
3
$json = json_decode(file_get_contents('https://the-federation.info/pods.json'));
dmorley's avatar
dmorley committed
4 5 6 7
if ($json) {
  foreach ($json->pods ?? [] as $poddata) {
    echo exec("php-cgi db/add.php domain={$poddata->host}") . "\r\n";
  }
David Morley's avatar
David Morley committed
8
}