#!/usr/bin/env php setBlog(DC_BLOG_ID); if ($core->blog->id == null) { fwrite(STDERR,"Blog is not defined\n"); exit(1); } if (!isset($opts['u']) || !$core->auth->checkUser($opts['u'])) { fwrite(STDERR,"Unable to set user\n"); exit(1); } $core->plugins->loadModules(DC_PLUGINS_ROOT); $core->blog->settings->addNamespace('zoneclearFeedServer'); try { $zc = new zoneclearFeedServer($core); $zc->checkFeedsUpdate(); } catch (Exception $e) { fwrite(STDERR,$e->getMessage()."\n"); exit(1); }