element * @uses $vars['body'] The main content of the page * @uses $vars['sysmessages'] A 2d array of various message registers, passed from system_messages() * @uses $var['forward'] A relative path to forward to after upgrade. Defaults to /admin */ $forward = elgg_extract('forward', $vars, '/admin'); if ($forward == '/admin' && !elgg_is_admin_logged_in()) { $forward = '/'; } $refresh_url = elgg_http_add_url_query_elements(elgg_get_site_url() . 'upgrade.php', array( 'upgrade' => 'upgrade', 'forward' => $forward, // add the security code 'code' => get_input('code') )); $refresh_url = htmlspecialchars($refresh_url); // render content before head so that JavaScript and CSS can be loaded. See #4032 $body = "