template(); $inc->mothership(); // Assign the page's title and the content template that needs to be used $GLOBALS['template']->assign('title', $GLOBALS['lang']['updates']); $GLOBALS['template']->assign('content', 'plain.tpl'); if ($GLOBALS['mothership']->check_updates()) { $GLOBALS['template']->assign('text', $GLOBALS['lang']['update_available'].'
'.$GLOBALS['lang']['update_download'].''); } else { $GLOBALS['template']->assign('text', $GLOBALS['lang']['update_current']); } // Display the output $GLOBALS['template']->display('update.tpl'); // do events that need to be done at the end of the file $inc->finished(); ?>