#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); $helptext = <<find(); while ($feedsub->fetch()) { try { echo $feedsub->getUri() . " ({$feedsub->sub_state})"; if ($feedsub->garbageCollect()) { echo " INACTIVE\n"; } else { echo " ACTIVE\n"; } } catch (NoProfileException $e) { echo " DELETED (no profile)\n"; $feedsub->delete(); continue; } catch (NoUriException $e) { // Probably the getUri() call echo "[unknown] DELETED (no uri)\n"; $feedsub->delete(); continue; } catch (Exception $e) { echo " ERROR: {$e->getMessage()}\n"; } }