summaryrefslogtreecommitdiff
path: root/setup/templates/upgrade.tpl
blob: 68e16194567a86be415515947fb8cfb4cade18ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo Filters::noXSS($title); ?> Flyspray</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="styles/setup.css" type="text/css" media="screen" />
</head>
<body>
<div id="header">
      <div id="logo">
        <h1><a href="<?php echo Filters::noXSS($index); ?>" title="Flyspray - The bug Killer!"><?php echo L('upgrade'); ?></a></h1>
      </div><!-- End of logo -->
</div><!-- End of header -->
<div id="content">
<form action="upgrade.php" method="post" onsubmit="document.getElementById('upgradebutton').disabled = true;return true;" >
	<input type="hidden" name="upgrade" value="1" />
	<div class="install">
            <h2><?php echo L('preconditionchecks'); ?></h2>
            <p><?php echo sprintf(L('versioncompare'), $installed_version, $short_version); ?></p>
            <p><?php echo L('writeaccessconf'); ?></p>
            <div class="installBlock">
		<table class="formBlock">
		<tr>
			<td valign="top">../<?php echo Filters::noXSS(basename(CONFIG_PATH)); ?></td>
			<td align="left"><b><?php if ($checks['config_writable']): ?><span class="green">writeable</span><?php else: ?><span class="red">not writeable</span><?php endif; ?></b></td>
                </tr>
                <tr>
			<td valign="top">Database connection</td>
			<td align="left"><b><?php if ($checks['db_connect']): ?><span class="green">OK</span><?php else: ?><span class="red">Failed</span><?php endif; ?></b></td>
		</tr>
		</table>
	</div>
<?php if (!$upgrade_possible): ?>
	<p style="clear:both">Apparently, an upgrade is not possible. <?php echo Filters::noXSS($todo); ?></p>
	<p style="text-align:center"><a class="button" href="../">Back to Home</a></p>
<?php else: ?>
	<p><?php echo L('upgradepossible'); ?></p>
	<h2><?php echo L('precautions'); ?></h2>
	<p><?php echo L('precautionbackup'); ?></p>

	<?php if (isset($upgrade_options)): ?>
	<h2>Upgrade options</h2>
        <p><?php echo $upgrade_options; ?></p>
        <?php endif; ?>

	<?php if ($ask_for_conversion): ?>
	<h2><?php echo L('explainwhatandwhyheader'); ?></h2>
	<p><?php echo L('explainwhatandwhycontent'); ?></p>
	<p><input name="yes_please_do_convert" type="checkbox"/><?php echo eL('yes'); ?>
	<input name="no_please_do_not_convert" type="checkbox"/><?php echo eL('no'); ?></p>
	<?php endif; ?>

	<h2><?php echo L('performupgrade'); ?></h2>
	<p><input name="upgrade" id="upgradebutton" class="button" value="<?php echo eL('performupgrade'); ?>" type="submit" /></p>
	<?php if (isset($done)): ?>
	<div class="green"><?php echo join('<br />',$upgradelog); ?></div>
	<p>If all went fine:</p>
	<ol>
	<li>Delete setup directory or restrict access to this directory by a htaccess rule.</li>
	<li><a href="../" class="button" style="padding:4px;background-color:#fff;border-radius:3px;border:1px solid #000;display:inline-block">Back to Overview</a></li>
	</ol>
	<?php else: ?>
	<p>Info: This may take a while depending on the upgrade type and your database size: from a few seconds up to doing a coffee break.</p>
	<p>We do not get upgrade progress feedback while the upgrading process is running, but if it takes longer it can be a sign of problem.</p>
	<?php endif; ?>
<?php endif; ?>
	</div><!-- End of install -->
</form>
</div><!-- End of content -->
<div id="footer">
      <p>Flyspray <?php echo Filters::noXSS($fs->version); ?><br />
        Copyright 2004-<?php echo Filters::noXSS(date('Y')); ?> &copy; The Flyspray team.  All rights reserved.
      </p>
</div><!-- End of footer -->
</body>
</html>