<?xml version="1.0" encoding="utf-8"?>
{strip}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<style type="text/css">
		{* hidden from 4.x browsers: *}
		@import "{$smarty.const.INSTALL_PKG_URL}style/install.css";
	</style>
	<title>Upgrade Bitweaver</title>
	<link rel="shortcut icon" href="{$smarty.const.INSTALL_PKG_URL}favicon.ico" type="image/x-icon" />
	<link rel="icon" href="{$smarty.const.INSTALL_PKG_URL}favicon.ico" type="image/x-icon" />
</head>
<body id="step{$smarty.request.step}">
	<div id="container">
		<div id="wrapper">
			<div id="content">
				{if $gBitUser->isAdmin()}
					<h1>Upgrade Bitweaver</h1>
					{legend legend=""}
						<div class="center">
							<a href="https://www.bitweaver.org/">
								<img src="{$smarty.const.INSTALL_PKG_URL}style/images/bitweaver_logo-trans.png" width="121" height="121" alt="bitweaver logo" title="Click here to visit the upgrade instructions" />
							</a>
						</div>
						<p class="danger">{tr}You have just updated your bitweaver code to <strong>version {$gBitSystem->getBitVersion()}</strong>. For security or technical reasons access to your site is locked down until you make some necessary changes to your database and site configuration. The installer will help you make the these updates and ensure your site is secure before unlocking access.{/tr}
							<br /><br />
							{tr}Please <strong><a href="{$smarty.const.INSTALL_PKG_URL}install.php?step=4">visit the Installer to finish updating your site</a></strong> and unlock it.{/tr}</p>
						<ul class="help">
							<li>If you wish to find out more about this upgrade, please visit our <a class="external" href="https://www.bitweaver.org/wiki/upgrade">Upgrade page</a></li>
						</ul>

						<hr />
						<h3>Troubleshooting</h3>
						<p>If you can not visit the installer, please make sure that you've reverted all security measures such as permissions or renaming files. Reverting common security measures might include:</p>
						<ul>
							<li>
								<strong>Linux</strong><br />
								<p><code>
									cd {$smarty.const.BIT_ROOT_PATH}<br />
									chmod -R 755 install/<br />
									find install/ -type f -print | xargs chmod 644
								</code></p>
							</li>
							<li>
								<strong>Windows</strong>
								<p>If you've renamed your <kbd>install/install_inc.php</kbd> to something else, you need to revert this change.</p>
							</li>
						</ul>
					{/legend}
				{else}
					{include file="bitpackage:install/install_login.tpl" title="Only site adminstrators can access this website at this time."}
				{/if}
			</div>
		</div>
	</div>
</body>
</html>
{/strip}
