$basePath = implode(DIRECTORY_SEPARATOR, $basePathComponents) . DIRECTORY_SEPARATOR; $registry->set('db', $db); $registry->set('setup', new Setup()); $registry->set('base_path', $basePath); $registry->set('i18n_path', $basePath . 'i18n' . DIRECTORY_SEPARATOR); $registry->set('site_root_absolute', $site_root_absolute); $registry->set('template_path', $site_root_absolute . 'tpl' . DIRECTORY_SEPARATOR); $registry->set('site_image_path', $site_root_absolute . 'img' . DIRECTORY_SEPARATOR); $registry->set('material_path', $basePath . 'material' . DIRECTORY_SEPARATOR); $registry->set('site_attachment_root', $site_root_absolute . 'attachments' . DIRECTORY_SEPARATOR); $registry->set('site_css_root', $site_root_absolute . 'css' . DIRECTORY_SEPARATOR); $registry->set('site_js_root', $site_root_absolute . 'js' . DIRECTORY_SEPARATOR); $registry->set('counters_enabled', true); $registry->set('i18n_path', $basePath . 'i18n/'); $registry->set('template_path', $registry->get('i18n_path') . 'templates' . DIRECTORY_SEPARATOR . $registry->get('locale') . DIRECTORY_SEPARATOR); LocaleManager::setApplicationLocale(); @(include_once 'variables.local.php'); $registry->set('site_name', 'wbt.com'); $registry->set('site_protocol', $site_protocol); $registry->set('site_root', $site_protocol . $_SERVER['HTTP_HOST'] . '/'); $registry->set('site_attachment_path', 'attachments/'); $registry->set('site_i18n_root', $site_root_absolute . 'i18n/'); parse_str($_SERVER["REDIRECT_QUERY_STRING"], $__GET); if (get_magic_quotes_gpc()) { $_POST = Utils::stripslashes_deep($_POST); $_GET = Utils::stripslashes_deep($_GET); // $__GET = Utils::stripslashes_deep($__GET); $_COOKIE = Utils::stripslashes_deep($_COOKIE); $_REQUEST = Utils::stripslashes_deep($_REQUEST); } $registry->set('attachment_settings', array('news' => array('name' => 'Новости', 'list_page' => 'news.php', 'edit_page' => 'news_edit.php', 'path' => 'news/'), 'block' => array('name' => 'Блоки', 'list_page' => 'block.php', 'edit_page' => 'block_edit.php', 'path' => 'block/'), 'page' => array('name' => 'Страницы', 'list_page' => 'page.php', 'edit_page' => 'page_edit.php', 'path' => 'page/'), 'tape' => array('name' => 'Ленты', 'list_page' => 'tape.php', 'edit_page' => 'tape_edit.php', 'path' => 'tape/'), 'template' => array('name' => 'Шаблоны страниц', 'list_page' => 'template.php', 'edit_page' => 'template_edit.php', 'path' => 'template/'), 'email_template' => array('name' => 'Шаблоны уведомлений', 'list_page' => 'email_template.php', 'edit_page' => 'email_template_edit.php', 'path' => 'email_template/')));