$v) { if ('--update-only' == $v) { $cid = $argv[$k+1]; break; } } } $GLOBALS['rss'] -> header = new Header( __('Updating'), LOCATION_UPDATE, null, "", (HDR_NONE | HDR_NO_CACHECONTROL ) ); $GLOBALS['rss'] -> feedList = new FeedList(false); // Instantiate a different Update object, depending on the client if ($cline && !$silent && !$newsonly) { $update = new CommandLineUpdate($cid); } elseif ($cline && !$silent && $newsonly) { $update = new CommandLineUpdateNews($cid); } elseif (getConfig('rss.config.serverpush') && !$silent && $browser->supportsServerPush()) { $update = new HTTPServerPushUpdate($cid); } elseif(!$silent && $browser->supportsAJAX()) { $update = new AJAXUpdate($cid); } elseif($mobile) { $update = new MobileUpdate($cid); } else { error_reporting(0); $update = new SilentUpdate($cid); } $GLOBALS['rss'] -> appendContentObject($update); if (!$silent && !$cline) { $GLOBALS['rss'] -> renderWithTemplate('index.php','update'); } else { $update->render(); } ?>