Move constants to global.php
This commit is contained in:
parent
c496297c44
commit
284e0ce7de
13
global.php
Normal file
13
global.php
Normal 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');
|
||||||
|
|
14
index.php
14
index.php
@ -1,15 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once(__DIR__ . '/global.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');
|
|
||||||
$pico = new Pico();
|
$pico = new Pico();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user