29 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', 'On');
*/
error_reporting(E_NONE);
define('_PROJECT_DIR', getcwd() . '/../'); // Директория проекта, относительно неё строится всё остальное
define('_ROOT_DIR', getcwd() . '/'); // Директория где точка входа (index.php)
define('_SHOP_DIR', getcwd() . '/'); // Директория где точка входа в магазин (index.php)
const _ENGINE_DIR = _PROJECT_DIR . 'engine/'; // Директория с движкой
const _SITE_PATH = ''; // Если index.php внутри какого-то пути http, например admin/
const _BASE_DIR = _ENGINE_DIR . 'www/'; // Базовая директория, внутри которой модули и шаблоны
const __REAL_CAT_OBJ_ = '_sys_cat';
const _DEBUG = true;
header("Content-type: text/html; charset=utf-8");
require_once(_ENGINE_DIR . 'bootstrap.php');
if (!empty($cat)) {
echo $cat->render();
}