Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Friendly output incase people don't have PHP MySQL support

  • Loading branch information...
commit f698bd5417995cd2418f5d6f1e4f2031586a7f31 1 parent 0e6d774
@lozzd authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.php
View
6 index.php
@@ -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>';
Please sign in to comment.
Something went wrong with that request. Please try again.