about summary refs log tree commit diff stats
path: root/central/trunk/includes/db.php
blob: b9f275bae7dbb82dc816be602765c42f33156dd6 (plain) (blame)
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
<?php

/* InstaDisc Server - A Four Island Project */

if (!extension_loaded('curl'))
{
	die('Sorry, but the PHP Extension "curl" is required for InstaDisc Server and you don\'t have it installed.');
}

if (!file_exists('config.php'))
{
	header('Location: install.php');
	exit;
}

if (file_exists('install.php'))
{
	die('Excuse me, but you need to delete install.php before you can use this as leaving install.php there is a biiiig security hole.');
}

session_start();

include('includes/config.php');

mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);

?>