#!/usr/bin/env php . /** * @package GNUsocial * @copyright 2010 StatusNet, Inc. * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ define('INSTALLDIR', dirname(__DIR__, 3)); define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $helptext = <<fetch()) { echo "Renewing feed subscription\n\tExp.: {$sub->sub_end}\n\tFeed: {$sub->uri}\n\tHub: {$sub->huburi}\n"; try { $sub->renew(); } catch (Exception $e) { echo "FAILED: {$e->getMessage()}\n"; } } echo "Done!";