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(); } elseif ($cline && !$silent && $newsonly) { $update = new CommandLineUpdateNews(); } elseif (getConfig('rss.config.serverpush') && !$silent && $browser->supportsServerPush()) { $update = new HTTPServerPushUpdate(); } elseif(!$silent && $browser->supportsAJAX()) { $update = new AJAXUpdate(); } elseif($mobile) { $update = new MobileUpdate(); } else { error_reporting(0); $update = new SilentUpdate(); } $GLOBALS['rss'] -> appendContentObject($update); if (!$silent && !$cline) { $GLOBALS['rss'] -> renderWithTemplate('index.php','update'); } else { $update->render(); } ?>