|
|
|
|
@ -1438,26 +1438,19 @@ function display_database_settings_form( |
|
|
|
|
$database_exists_text = $e->getMessage(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($manager->getConnection()->isConnected()): ?> |
|
|
|
|
|
|
|
|
|
<?php echo $database_exists_text ?> |
|
|
|
|
<div id="db_status" class="alert alert-success"> |
|
|
|
|
Database host: <strong><?php echo $manager->getConnection()->getHost(); ?></strong><br />
|
|
|
|
|
Database port: <strong><?php echo $manager->getConnection()->getPort(); ?></strong><br />
|
|
|
|
|
Database driver: <strong><?php echo $manager->getConnection()->getDriver()->getName(); ?></strong><br />
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
|
|
|
|
<?php echo $database_exists_text ?> |
|
|
|
|
<div id="db_status" style="float:left;" class="alert alert-danger"> |
|
|
|
|
<div style="float:left;"> |
|
|
|
|
<?php echo get_lang('FailedConectionDatabase'); ?></strong>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
if ($manager && $manager->getConnection()->isConnected()): ?> |
|
|
|
|
<?php echo $database_exists_text ?> |
|
|
|
|
<div id="db_status" class="alert alert-success"> |
|
|
|
|
Database host: <strong><?php echo $manager->getConnection()->getHost(); ?></strong><br/>
|
|
|
|
|
Database port: <strong><?php echo $manager->getConnection()->getPort(); ?></strong><br/>
|
|
|
|
|
Database driver: <strong><?php echo $manager->getConnection()->getDriver()->getName(); ?></strong><br/>
|
|
|
|
|
</div> |
|
|
|
|
<?php else: ?> |
|
|
|
|
<div id="db_status" class="alert alert-danger"> |
|
|
|
|
<p><?php echo get_lang('FailedConectionDatabase'); ?></strong></p>
|
|
|
|
|
<code><?php echo $database_exists_text ?></code>
|
|
|
|
|
</div> |
|
|
|
|
<?php endif; ?> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<div class="col-sm-6"> |
|
|
|
|
<button type="submit" name="step2" class="btn btn-default pull-right" value="< <?php echo get_lang('Previous'); ?>" >
|
|
|
|
|
|