database.tpl
2.84 KB
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
<form action="index.php?step_name=database" method="post" name="dbForm" id="dbForm">
<p class="title"><?php echo $title; ?></p>
<div id="database" class="step1" style="display:block;">
<div class="description">
This step performs the necessary Database Upgrades.
</div>
<div id="step_content_database" class="step">
<br/><br/>
<?php if (empty($action) || ($action == 'preview')) { ?>
<p>The table below describes the upgrades that need to occur to
upgrade your KnowledgeTree installation to <strong><?php echo $systemVersion;?></strong>.
Click on the button below the table to perform the upgrades.</p>
<?php echo $upgradeTable; ?>
<?php }
else if ($action == 'confirm') {
if (!$backupStatus) { ?>
<p>We are about to start the upgrade process.<P>
<?php }
else { ?>
<br/>
<font color="Red">Please ensure that you have made a backup before continuing with the upgrade process.</font>
<p>
<?php } ?>
<?php }
else if ($action == 'runUpgrade') {
// hiding pre-upgrade notification
/*
echo $preUpgrade;
echo '<br/><br/>';
*/
echo $upgradeTable;
echo '<br/><br/>';
// hiding pre-upgrade notification
/*
echo $postUpgrade;
echo '<br/><br/>';
*/
echo $upgradeStatus;
echo '<br/><br/>';
}
?>
</div>
</div>
<?php include 'templates/loading.tpl'; ?>
<div id="buttonBar">
<?php if (empty($action) || ($action == 'preview')) { ?>
<input type="submit" name="Previous" value="Previous" class="button_previous"/>
<input type="submit" name="ConfirmUpgrade" value="Next" class="button_next"/>
<?php }
else if ($action == 'confirm') { ?>
<input type="submit" name="Cancel" value="Cancel" class="button_previous"/>
<input type="button" name="RunUpgrade" value="Next" class="button_next" onclick="doSubmit(this);"/>
<?php }
else if ($action == 'runUpgrade') { ?>
<?php if ($backupSuccessful) { ?>
<script type="text/javascript">
alert("To complete the upgrade please do the following before continuing:\n\n1. Restart the services as appropriate for your environment.\n\n\nOn first run of your upgraded installaton please do the following:\n\n1. Hard refresh your bowser (CTRL-F5) on first view of the Dashboard.\n2. Enable the new plugins you wish to use.\n\n\nSelect 'Finish' at the bottom of this page to continue.")
</script>
<input type="submit" name="Next" value="Finish" class="button_next"/>
<?php }
else { ?><input type="submit" name="Previous" value="Restore" class="button_previous"/><?php } ?>
<?php } ?>
</div>
</form>