mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-09 15:44:03 +00:00
24 lines
678 B
Text
24 lines
678 B
Text
|
<?php
|
|||
|
|
|||
|
$_SESSION['_config']['normalhostname'] = "HOSTNAME";
|
|||
|
$_SESSION['_config']['securehostname'] = "HOSTNAME";
|
|||
|
$_SESSION['_config']['folder'] = "/";
|
|||
|
|
|||
|
// 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
|
|||
|
("Die Datenbank existiert nicht");
|
|||
|
?>
|