public function install_extension()
 {
     $modsurl = array('themes' => 'http://www.exponentcms.org/site_podcast.php?module=filedownload&src=%40random4e6a70cebdc96', 'fixes' => 'http://www.exponentcms.org/site_podcast.php?module=filedownload&src=%40random4e6a710126abf', 'mods' => 'http://www.exponentcms.org/site_podcast.php?module=filedownload&src=%40random4e6a7148c84a9');
     $RSS = new SimplePie();
     $RSS->set_cache_location(BASE . 'tmp/rsscache');
     // default is ./cache
     //	        $RSS->set_cache_duration(3600);  // default if 3600
     $RSS->set_timeout(20);
     // default is 10
     //	        $RSS->set_output_encoding('UTF-8');  // which is the default
     $items['themes'] = array();
     $items['fixes'] = array();
     $items['mods'] = array();
     foreach ($modsurl as $type => $url) {
         $RSS->set_feed_url($url);
         $feed = $RSS->init();
         if (!$feed) {
             // an error occurred in the rss.
             continue;
         }
         $RSS->handle_content_type();
         foreach ($RSS->get_items() as $rssItem) {
             $rssObject = new stdClass();
             $rssObject->title = $rssItem->get_title();
             $rssObject->body = $rssItem->get_description();
             $rssObject->rss_link = $rssItem->get_permalink();
             $rssObject->publish = $rssItem->get_date('U');
             $rssObject->publish_date = $rssItem->get_date('U');
             foreach ($rssItem->get_enclosures() as $enclosure) {
                 $rssObject->enclosure = $enclosure->get_link();
             }
             $items[$type][] = $rssObject;
         }
     }
     $form = new form();
     $form->register(null, '', new htmlcontrol(expCore::maxUploadSizeMessage()));
     $form->register('mod_archive', 'Extension Archive', new uploadcontrol());
     $form->register('submit', '', new buttongroupcontrol(gt('Upload Extension')));
     $form->meta('module', 'administration');
     $form->meta('action', 'install_extension_confirm');
     assign_to_template(array('themes' => $items['themes'], 'fixes' => $items['fixes'], 'mods' => $items['mods'], 'form_html' => $form->toHTML()));
 }