#!/usr/bin/env php loadFromBlog(is_string(DC_BLOG_ID) ? DC_BLOG_ID : ''); if (!App::blog()->isDefined() || '' == App::blog()->id()) { fwrite(STDERR, "Blog is not defined\n"); exit(1); } if (!isset($opts['u']) || !App::auth()->checkUser(is_string($opts['u']) ? $opts['u'] : '')) { fwrite(STDERR, "Unable to set user\n"); exit(1); } App::plugins()->loadModules(DC_PLUGINS_ROOT); try { $zc = Dotclear\Plugin\zoneclearFeedServer\ZoneclearFeedServer::instance(); $zc->checkFeedsUpdate(); } catch (Exception $e) { fwrite(STDERR, $e->getMessage() . "\n"); exit(1); }