Supply filetype when adding new file.
[mediadatabase.git] / php / inc.header.php
blob235c24d7fa1fda451645d54117d465228c81e6da
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>MediaBase</title>
26 <link rel="stylesheet" href="styles.css" type="text/css">
27 </head>
29 <body>
30 <p>
31 <img src="img/mediabase.jpg" alt="MediaBase logo">
33 <p>
34 <a href="index.php">Browse</a>
35 &nbsp;&nbsp;|&nbsp;&nbsp;
36 <a href="locations.php">Locations</a>
37 <?php
38 // &nbsp;&nbsp;|&nbsp;&nbsp;
39 // <a href="searchaudio.php">Search audio</a>
41 &nbsp;&nbsp;|&nbsp;&nbsp;
42 <a href="searchfiles.php">Search files</a>
43 <?php
44 if ($config['use_categories'])
47 &nbsp;&nbsp;|&nbsp;&nbsp;
48 <a href="categories.php">Categories</a>
49 <?php
53 <p>