Skip to content

Commit

Permalink
Friendly output incase people don't have PHP MySQL support
Browse files Browse the repository at this point in the history
  • Loading branch information
lozzd committed Nov 4, 2011
1 parent 0e6d774 commit f698bd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Expand Up @@ -20,7 +20,11 @@
<h2>Welcome to FITB</h2>
<p>FITB is a automatic, RRDTool based graphing product that leaves no port untouched.</p>
<p>Select a host from the left.</p>
<?php
<?php
if (!function_exists("mysql_connect")) {
echo '<p><span class="red">It looks like you don\'t have PHP MySQL libraries installed. FITB will require these to connect to the
database</span></p>';
}
if (!connectToDB()) {
echo '<p><span class="red">FITB is having trouble connecting to your database. Have you set up MySQL with the FITB database and specified
the correct connection parameters in config.php?</span></p>';
Expand Down

0 comments on commit f698bd5

Please sign in to comment.