tidied up PHP_EOLs and moved all configs to main index.php