Skip to content

Commit

Permalink
Check for installed MySQLi extension during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
slackero committed Nov 18, 2016
1 parent fe57d4c commit 0ae3d1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion setup/inc/install.css
Expand Up @@ -55,7 +55,6 @@ h1 {
}
.error {
color: #CC3300;
font-weight: normal;
}
.chatlist, .chatlist a {
color: #406C94;
Expand Down
18 changes: 13 additions & 5 deletions setup/inc/step0.inc.php
Expand Up @@ -49,10 +49,18 @@
}


?></li>
<li>MySQL version: <?php
?></li>
<li>MySQLi extension: <?php
if(function_exists('mysqli_connect')) {
echo '<strong>installed</strong> <img src="../img/famfamfam/icon_accept.gif" alt="OK" class="icon1" />';
} else {
echo '<strong class="error">not installed</strong> <img src="../img/famfamfam/action_stop.gif" alt="Stop" class="icon1" />';
$setup_recommend = false;
}
?></li>
<li>MySQLi version: <?php

$mysql_version = @mysqli_get_server_info();
$mysql_version = mysqli_get_server_info();
$mysqlnd = false;
if(!$mysql_version) {
$mysql_version = @mysqli_get_client_info();
Expand Down Expand Up @@ -201,8 +209,8 @@
if(!$setup_recommend) {

echo '<p class="error">
<img src="../img/famfamfam/icon_alert.gif" alt="" class="icon1" />
It is not recommend to continue with setup. See the warnings!
<img src="../img/famfamfam/icon_alert.gif" alt="" class="icon1" />
<strong>It is not recommend to continue with setup. See the warnings!</strong>
</p>';

}
Expand Down

0 comments on commit 0ae3d1d

Please sign in to comment.