DH_Alumni/general.php
2021-04-21 10:17:02 +02:00

37 lines
894 B
PHP

<?php
function getConfig() {
return parse_ini_file('config.ini.php');
}
function getDatabase() {
$config = getConfig();
if($db = mysqli_connect($config['db_host'], $config['db_user'], $config['db_password'], $config['db_database'])){
return $db;
}
return null;
}
function returnHeader() {
?>
<!Doctype html>
<html lang="de">
<head>
<title>Alumni Max Emden</title>
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
<link href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<?php
}
function returnFooter() {
?>
</body>
</html>
<?php
}