<?php

// Define some useful constants
if (!defined('_ROOT_')) {
	define('_ROOT_', '');
}
if (!defined('_USER_ROOT_')) {
	define('_USER_ROOT_', '');
}
define('_APP_',         _ROOT_ . 'app/');
define('_DATA_',        _USER_ROOT_ . 'data/');
define('_STATIC_',      _USER_ROOT_ . 'static/');
define('_VENDOR_',      _ROOT_ . 'vendor/');

// Data
define('_PAGES_',       _DATA_ . 'pages/');
define('_CONFIG_',      _DATA_ . 'config/');
define('_USERS_',       _DATA_ . 'users/');
define('_LOGS_',        _DATA_ . 'logs/');

// Static
define('_UPLOADS_',     _STATIC_ . 'files/');
define('_COMPONENTS_',  _STATIC_ . 'components/');

define('_BIN_',         _APP_ . 'bin/');
define('_THEMES_',      _ROOT_ . 'themes/');
define('_PLUGINS_',     _ROOT_ . 'plugins/');
define('_VERSION_',     '0.7.1');

require_once _APP_ . 'bootstrap.php';

<?php
// PARVULA CMS

// Define some useful constants
if (!defined('_ROOT_')) {
	define('_ROOT_', '');
}
if (!defined('_USER_ROOT_')) {
	define('_USER_ROOT_', _ROOT_);
}
if (!defined('_RESOURCE_ROOT_')) {
	define('_RESOURCE_ROOT_', _ROOT_);
}
define('_APP_',         _ROOT_ . 'app/');
define('_DATA_',        _USER_ROOT_ . 'data/');
define('_STATIC_',      _USER_ROOT_ . 'static/');
define('_VENDOR_',      _ROOT_ . 'vendor/');

// Data
define('_PAGES_',       _DATA_ . 'pages/');
define('_CONFIG_',      _DATA_ . 'config/');
define('_USERS_',       _DATA_ . 'users/');
define('_LOGS_',        _DATA_ . 'logs/');

// Static
define('_UPLOADS_',     _STATIC_ . 'files/');
define('_COMPONENTS_',  _STATIC_ . 'components/');

define('_BIN_',         _APP_ . 'bin/');
define('_THEMES_',      _RESOURCE_ROOT_ . 'themes/');
define('_PLUGINS_',     _RESOURCE_ROOT_ . 'plugins/');
define('_VERSION_',     '0.7.2');

require_once _APP_ . 'bootstrap.php';

Add `_RESOURCE_ROOT_` const for themes and plugins paths
Add `_RESOURCE_ROOT_` const for themes and plugins paths

Useful for multisite or some server configuration.
