/** * Подгрузчик модулей по умолчанию (прямой загрузчик без лишних проверок) * @param String $mode - название модуля */ public function load_def_mode($mode) { include_once MCR_MODE_PATH . $mode . ".php"; $module = new module($this); return $module->content(); }
define('MCR', ''); require_once "../system.php"; $core->def_header = $core->sp(MCR_ROOT . "install/theme/header.html"); $mode = isset($_GET['mode']) ? $_GET['mode'] : 'step_1'; if (!$core->config->main['install'] && $mode != 'finish') { $core->notify('', '', 3, 'install/?mode=finish'); } switch ($mode) { case 'step_1': case 'step_2': case 'step_3': case 'settings': require_once MCR_ROOT . 'install/' . $mode . '.php'; $module = new module($core); $content = $module->content(); break; case 'finish': $content = $core->sp(MCR_ROOT . "install/theme/finish.html"); break; default: $content = $core->notify('Установка!', 'Шаг #1', 4, 'install/?mode=step_1'); break; } function load_left_block($core, $mode) { $array = array("step_1" => "Шаг #1", "step_2" => "Шаг #2", "step_3" => "Шаг #3", "settings" => "Настройки", "finish" => "Завершение установки"); ob_start(); foreach ($array as $key => $value) { if ($mode == $key) { echo '<li class="active"><a href="javascript://">' . $value . '</a></li>';