/
verify.php
34 lines (33 loc) · 2.06 KB
/
verify.php
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
<div class="jumbotron message-box">
<h2 class=""><?php eT('Database upgrade'); ?></h2>
<p class="lead"><?php eT('Make sure to make a database backup before proceeding.'); ?></p>
<p class="lead"><?php eT('Please verify the following information before continuing with the database upgrade:'); ?></p>
<div class="row">
<div class="col-md-offset-4 col-md-4">
<table class="table table-striped">
<tr><th><?php eT('Database type:'); ?></th><td><?php echo Yii::app()->db->getDriverName(); ?></td></tr>
<tr><th><?php eT('Database name:'); ?></th><td><?php echo getDBConnectionStringProperty('dbname'); ?></td></tr>
<tr><th><?php eT('Table prefix:'); ?></th><td><?php echo Yii::app()->db->tablePrefix; ?></td></tr>
<tr><th><?php eT('Site name:'); ?></th><td><?php echo Yii::app()->getConfig("sitename"); ?></td></tr>
<tr><th><?php eT('Root URL:'); ?></th><td><?php echo Yii::app()->getController()->createUrl('/'); ?></td></tr>
<tr><th><?php eT('Current database version:'); ?></th><td><?php echo GetGlobalSetting('DBVersion'); ?></td></tr>
<tr><th><?php eT('Target database version:'); ?></th><td><?php echo Yii::app()->getConfig('dbversionnumber'); ?></td></tr>
</table>
</div>
</div>
<?php if ((int)GetGlobalSetting('DBVersion')<132) { ?>
<div class="alert alert-danger" role="alert">
<strong><?php echo eT("Error:"); ?></strong> <?php eT("You will not be able to update because your previous LimeSurvey version is too old.");?>
<br>
<?php eT("Please first update to Version 2.6.4 or any later 2.x version before you update to Version 3.x."); ?>
</div>
<?php }
else
{ ?>
<p>
<a class="btn btn-lg btn-success" href="<?php echo Yii::app()->getController()->createUrl("admin/databaseupdate/sa/db/continue/yes"); ?>" role="button">
<?php eT('Start database upgrade'); ?>
</a>
</p>
<?php } ?>
</div>