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

View File

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