Erant-OldApp/public/index.php

19 lines
356 B
PHP
Raw Normal View History

2022-07-13 20:44:10 +00:00
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$envFile = Dotenv\Dotenv::createArrayBacked(__DIR__)->load();
function env($key, $default = null) {
global $envFile;
if(isset($envFile[$key])) {
return $envFile[$key];
}
return $default;
}
header('Content-Type: text/html; charset=' . env("CHARSET"));
require_once(__DIR__ . '/index.html');