#!/usr/bin/env php setBlog(is_string(DC_BLOG_ID) ? DC_BLOG_ID : ''); if (is_null(dcCore::app()->blog) || dcCore::app()->blog->id == null) { fwrite(STDERR, "Blog is not defined\n"); exit(1); } if (!isset($opts['u']) || is_null(dcCore::app()->auth) || !dcCore::app()->auth->checkUser(is_string($opts['u']) ? $opts['u'] : '')) { fwrite(STDERR, "Unable to set user\n"); exit(1); } dcCore::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); }