2013-01-19 18:38:58 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$_SESSION['_config']['normalhostname'] = "HOSTNAME";
|
|
|
|
|
$_SESSION['_config']['securehostname'] = "HOSTNAME";
|
2015-06-30 20:48:13 +00:00
|
|
|
|
$_SESSION['_config']['folder'] = "";
|
2013-01-19 18:38:58 +00:00
|
|
|
|
|
|
|
|
|
// Variablen intialisieren f<>r MySQL
|
|
|
|
|
// Do not change variable names, other scripts are parsing this file for them!
|
|
|
|
|
$host=":/var/run/mysqld/mysqld.sock";
|
|
|
|
|
$user="DB-USER";
|
|
|
|
|
$password="DB-PASSWORD";
|
|
|
|
|
$database="DATABASE";
|
|
|
|
|
|
|
|
|
|
// Stellt Verbindung mit DB her oder gibt Meldung aus
|
|
|
|
|
if (!mysql_connect($host,$user,$password)){
|
|
|
|
|
echo 'Keine Verbindung zur Datenbank m<>glich';
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// W<>hlt DB aus oder gibt Meldung aus
|
|
|
|
|
mysql_select_db("$database") or die
|
2015-06-30 20:48:13 +00:00
|
|
|
|
("Die Datenbank existiert nicht");
|
2013-01-19 18:38:58 +00:00
|
|
|
|
?>
|