This commit is contained in:
2024-03-29 15:47:35 +01:00
parent 85d2cf4be2
commit 7619856ef2
27 changed files with 2255 additions and 193 deletions

13
inc/db.inc.php Normal file
View File

@ -0,0 +1,13 @@
<?php
$config = require_once __DIR__ . '/../config.php';
$db = new PDO(
$config->sql->dsn,
$config->sql->user,
$config->sql->password,
[
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ
]
);
?>