Move constants to global.php

This commit is contained in:
Daniel Rudolf 2015-08-28 18:19:03 +02:00
parent c496297c44
commit 284e0ce7de
2 changed files with 14 additions and 13 deletions

13
global.php Normal file
View file

@ -0,0 +1,13 @@
<?php
define('HTTPDOCS', realpath(rtrim(__DIR__, '/')) . '/');
define('ROOT_DIR', realpath(HTTPDOCS . '../httpdocs-includes') . '/');
define('LIB_DIR', ROOT_DIR . 'lib/');
define('VENDOR_DIR', ROOT_DIR . 'vendor/');
define('PLUGINS_DIR', ROOT_DIR . 'plugins/');
define('THEMES_DIR', HTTPDOCS . 'themes/');
define('CONFIG_DIR', ROOT_DIR . 'config/');
define('CACHE_DIR', LIB_DIR . 'cache/');
require_once(VENDOR_DIR . 'autoload.php');

View file

@ -1,15 +1,3 @@
<?php
define('ROOT_DIR', realpath(dirname(__FILE__)) . '/');
define('LIB_DIR', ROOT_DIR . 'lib/');
define('VENDOR_DIR', ROOT_DIR . 'vendor/');
define('PLUGINS_DIR', ROOT_DIR . 'plugins/');
define('THEMES_DIR', ROOT_DIR . 'themes/');
define('CONFIG_DIR', ROOT_DIR . 'config/');
define('CACHE_DIR', LIB_DIR . 'cache/');
define('CONTENT_EXT', '.md');
require_once(VENDOR_DIR . 'autoload.php');
require_once(LIB_DIR . 'pico.php');
require_once(__DIR__ . '/global.php');
$pico = new Pico();