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