Move the configurable item to top of index.php

This commit is contained in:
Timothy Warren 2015-06-16 11:43:30 -04:00
parent d9e0d5fca6
commit d4d8b5d9c7
1 changed files with 5 additions and 6 deletions

View File

@ -3,6 +3,11 @@
* Here begins everything!
*/
/**
* Well, whose list is it?
*/
define('WHOSE', "Tim's");
/**
* Joins paths together. Variadic to take an
* arbitrary number of arguments
@ -11,17 +16,11 @@
*/
function _dir() { return implode(DIRECTORY_SEPARATOR, func_get_args()); }
define('ROOT_DIR', __DIR__);
define('APP_DIR', _dir(ROOT_DIR, 'app'));
define('CONF_DIR', _dir(APP_DIR, 'config'));
define('BASE_DIR', _dir(APP_DIR, 'base'));
/**
* Well, whose list is it?
*/
define('WHOSE', "Tim's");
// Load config and global functions
$config = require _dir(APP_DIR, '/config/config.php');
require _dir(BASE_DIR, '/functions.php');