Modification log added
[mediadatabase.git] / php / inc.header.php
blob231e44cbefce98c1e0ca979e6fb10343aecb31d2
1 <?php
2 require('inc.config.php');
3 require('inc.functions.php');
5 define('MB_T_AUDIO',1);
6 define('MB_T_DATA',2);
7 define('MB_T_EMPTY',3);
9 $self = $_SERVER['PHP_SELF'];
11 if (!mysql_connect($config['mysql_hostname'],$config['mysql_username'],$config['mysql_password'])) {
12 echo "<b>Fatal error:</b> ".mysql_error()."\n";
13 exit;
16 if (!mysql_select_db($config['mysql_database'])) {
17 echo "<b>Fatal error:</b> ".mysql_error()."\n";
18 exit;
22 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
23 <html>
24 <head>
25 <title>Offline media content database</title>
26 <link rel="stylesheet" href="styles.css" type="text/css">
27 </head>
29 <body>
30 <p>
31 <a href="index.php">Browse</a>
32 &nbsp;&nbsp;|&nbsp;&nbsp;
33 <a href="locations.php">Locations</a>
34 <?php
35 // &nbsp;&nbsp;|&nbsp;&nbsp;
36 // <a href="searchaudio.php">Search audio</a>
38 &nbsp;&nbsp;|&nbsp;&nbsp;
39 <a href="searchfiles.php">Search files</a>
40 <?php
41 if ($config['use_categories'])
44 &nbsp;&nbsp;|&nbsp;&nbsp;
45 <a href="categories.php">Categories</a>
46 <?php
50 <p>