theme().'/'); define('HTML_PATH_THEME_CSS', HTML_PATH_THEME.'css/'); define('HTML_PATH_THEME_JS', HTML_PATH_THEME.'js/'); define('HTML_PATH_THEME_IMG', HTML_PATH_THEME.'img/'); define('HTML_PATH_ADMIN_ROOT', HTML_PATH_ROOT.ADMIN_URI_FILTER.'/'); define('HTML_PATH_ADMIN_THEME', HTML_PATH_ROOT.'bl-kernel/admin/themes/'.$site->adminTheme().'/'); define('HTML_PATH_ADMIN_THEME_JS', HTML_PATH_ADMIN_THEME.'js/'); define('HTML_PATH_ADMIN_THEME_CSS', HTML_PATH_ADMIN_THEME.'css/'); define('HTML_PATH_CORE_JS', HTML_PATH_ROOT.'bl-kernel/js/'); define('HTML_PATH_CORE_CSS', HTML_PATH_ROOT.'bl-kernel/css/'); define('HTML_PATH_CORE_IMG', HTML_PATH_ROOT.'bl-kernel/img/'); define('HTML_PATH_CONTENT', HTML_PATH_ROOT.'bl-content/'); define('HTML_PATH_UPLOADS', HTML_PATH_ROOT.'bl-content/uploads/'); define('HTML_PATH_UPLOADS_PAGES', HTML_PATH_UPLOADS.'pages/'); define('HTML_PATH_UPLOADS_PROFILES', HTML_PATH_UPLOADS.'profiles/'); define('HTML_PATH_UPLOADS_THUMBNAILS', HTML_PATH_UPLOADS.'thumbnails/'); define('HTML_PATH_PLUGINS', HTML_PATH_ROOT.'bl-plugins/'); // --- Objects with dependency --- $language = new Language( $site->language() ); $url->checkFilters( $site->uriFilters() ); // --- CONSTANTS with dependency --- // Tag URI filter define('TAG_URI_FILTER', $url->filters('tag')); // Category URI filter define('CATEGORY_URI_FILTER', $url->filters('category')); // Page URI filter define('PAGE_URI_FILTER', $url->filters('page')); // Content order by: date / position define('ORDER_BY', $site->orderBy()); // Allow unicode characters in the URL define('EXTREME_FRIENDLY_URL', $site->extremeFriendly()); // Minutes to execute the autosave function define('AUTOSAVE_INTERVAL', $site->autosaveInterval()); // TRUE for upload images restric to a pages, FALSE to upload images in common define('IMAGE_RESTRICT', $site->imageRestrict()); // TRUE to convert relatives images to absoultes, FALSE No changes apply define('IMAGE_RELATIVE_TO_ABSOLUTE', $site->imageRelativeToAbsolute()); // --- PHP paths with dependency --- // This paths are absolutes for the OS define('THEME_DIR', PATH_ROOT.'bl-themes'.DS.$site->theme().DS); define('THEME_DIR_PHP', THEME_DIR.'php'.DS); define('THEME_DIR_CSS', THEME_DIR.'css'.DS); define('THEME_DIR_JS', THEME_DIR.'js'.DS); define('THEME_DIR_IMG', THEME_DIR.'img'.DS); define('THEME_DIR_LANG', THEME_DIR.'languages'.DS); // --- Absolute paths with domain --- // This paths are absolutes for the user / web browsing. define('DOMAIN', $site->domain()); define('DOMAIN_BASE', DOMAIN.HTML_PATH_ROOT); define('DOMAIN_CORE_JS', DOMAIN.HTML_PATH_CORE_JS); define('DOMAIN_CORE_CSS', DOMAIN.HTML_PATH_CORE_CSS); define('DOMAIN_THEME', DOMAIN.HTML_PATH_THEME); define('DOMAIN_THEME_CSS', DOMAIN.HTML_PATH_THEME_CSS); define('DOMAIN_THEME_JS', DOMAIN.HTML_PATH_THEME_JS); define('DOMAIN_THEME_IMG', DOMAIN.HTML_PATH_THEME_IMG); define('DOMAIN_ADMIN_THEME', DOMAIN.HTML_PATH_ADMIN_THEME); define('DOMAIN_ADMIN_THEME_CSS', DOMAIN.HTML_PATH_ADMIN_THEME_CSS); define('DOMAIN_ADMIN_THEME_JS', DOMAIN.HTML_PATH_ADMIN_THEME_JS); define('DOMAIN_UPLOADS', DOMAIN.HTML_PATH_UPLOADS); define('DOMAIN_UPLOADS_PAGES', DOMAIN.HTML_PATH_UPLOADS_PAGES); define('DOMAIN_UPLOADS_PROFILES', DOMAIN.HTML_PATH_UPLOADS_PROFILES); define('DOMAIN_UPLOADS_THUMBNAILS', DOMAIN.HTML_PATH_UPLOADS_THUMBNAILS); define('DOMAIN_PLUGINS', DOMAIN.HTML_PATH_PLUGINS); define('DOMAIN_CONTENT', DOMAIN.HTML_PATH_CONTENT); define('DOMAIN_ADMIN', DOMAIN_BASE.ADMIN_URI_FILTER.'/'); define('DOMAIN_TAGS', Text::addSlashes(DOMAIN_BASE.TAG_URI_FILTER, false, true)); define('DOMAIN_CATEGORIES', Text::addSlashes(DOMAIN_BASE.CATEGORY_URI_FILTER, false, true)); define('DOMAIN_PAGES', Text::addSlashes(DOMAIN_BASE.PAGE_URI_FILTER, false, true)); $ADMIN_CONTROLLER = ''; $ADMIN_VIEW = ''; $ID_EXECUTION = uniqid(); // string 13 characters long $WHERE_AM_I = $url->whereAmI(); // --- Objects shortcuts --- $L = $language; // DEBUG: Print constants // $arr = array_filter(get_defined_constants(), 'is_string'); // echo json_encode($arr); // exit;