English_classes/config.php
2019-09-18 23:46:51 +02:00

13 lines
359 B
PHP

<?php
const ORDINAL_ENGLISH = array('first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', 'tenth');
$string = file_get_contents("./config.json");
if ($string === false) {
die("Can't read config file!");
}
$config = json_decode($string,true);
if ($config === null) {
die("Config file is not JSON...");
}
?>