Add a central include file

This commit is contained in:
2018-02-13 19:08:41 +01:00
parent f2b75c81c1
commit 73efba625b
9 changed files with 49 additions and 59 deletions

View File

@@ -1,11 +1,6 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Europe/Oslo');
setlocale(LC_ALL, 'nb_NO');
require __DIR__ . '/../../inc/navbar.php';
require __DIR__ . '/../../src/_autoload.php';
require __DIR__ . '/../../sql_config.php';
?>
require_once dirname(__DIR__, 2) . implode(DIRECTORY_SEPARATOR, ['', 'inc', 'include.php']);
?><!DOCTYPE html>
<html lang="no">
<title>Kommunikasjonsverkstedet</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -39,5 +34,5 @@ Det er også mulig å ta i bruk analog kontakt ved å møte opp <a href="https:/
<nav>
<?= navbar(1, 'kontakt'); ?>
<?= loginbar(null, $pdo); ?>
<?= loginbar($sp, $pdo); ?>
</nav>