-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.php
37 lines (31 loc) · 1.19 KB
/
index.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
35
36
37
<?php
include_once('functions.php');
?>
<html>
<head>
<title>FITB - Welcome</title>
<link rel="stylesheet" href="fitb.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
</head>
<body>
<?php include_once('header.php'); # includes the <div> for the header ?>
<div id="wrap">
<?php include_once('side.php'); # includes the <div> for the side bar ?>
<div id="main">
<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
if (!function_exists("mysqli_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 (!$link=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>';
}
?>
<div>
</div>
</body>
</html>