if ($_REQUEST['p_'] == '') { $_REQUEST['p_'] = 'intro/'; $_REQUEST['root'] = 1; } if (empty($_REQUEST['p_']) && $_SERVER['QUERY_STRING'] == 'er=1') { $req = $_SERVER['REQUEST_URI']; if (substr_count($req, '%0a%20')) { Redirect('/', 301); } $_REQUEST['p_'] = $_SERVER['REQUEST_URI']; $dsp->pages->page404noRedirect(); exit; } // Режим технических работ if (defined('MAINTENANCE') && MAINTENANCE) { if (!_isAjax()) { require_once dirname(__FILE__) . "/maintenance.html"; } exit; } Un_magic_quotes(); if (!empty($_POST)) { include_once 'post_processor.php'; } parse_str($_SERVER['QUERY_STRING'], $pices); unset($pices['p_']); $query_string = http_build_query($pices); if (isset($pices['_blocks']) || isset($pices['_sblocks'])) { $dsp->_Builder->addNode($dsp->_Builder->createNode("debug")); } if (!empty($query_string)) {
* * @package PHPLucidFrame\App * @since PHPLucidFrame v 1.0.0 * @copyright Copyright (c), PHPLucidFrame. * @author Sithu K. <*****@*****.**> * @link http://phplucidframe.com * @license http://www.opensource.org/licenses/mit-license.php MIT License * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE */ require_once '../lib/bootstrap.php'; ob_start('_flush'); $_page = router(); require $_page; if (in_array(rtrim(substr($_page, -7), '.php'), array('401', '403', '404'))) { _cfg('layoutMode', false); } if (_cfg('layoutMode') && _isAjax() === false) { $query = _ds(APP_ROOT, _r(), 'query.php'); if (is_file($query) && file_exists($query)) { require_once $query; } $layout = _i(_ds('inc', 'tpl', _cfg('layoutName') . '.php')); if (is_file($layout) && file_exists($layout)) { require_once $layout; } else { die('Layout file is missing: ' . $layout); } } ob_end_flush();