View sourcecode

The following files exists in this folder. Click to view.

database.php

17 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$host 
'127.0.0.1';
$db   'Stegen';
$user 'Intentionally removed by CSource';
$pass 'root';
$charset 'utf8mb4';

$dsn "mysql:host=$host;dbname=$db;charset=$charset";

try {
    
$conn = new PDO($dsn$user$pass);
    
$conn->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
} catch(
PDOException $e) {
    die(
"Connection failed: " $e->getMessage());
}
?>