// Get config instance
$cfg = FrameworkConfiguration::getSelfInstance();
-// Initialize output system
-require($cfg->getConfigEntry('base_path') . 'inc/output.php');
-
// This application needs a database connection then we have to simply include
// the inc/database.php script
require($cfg->getConfigEntry('base_path') . 'inc/database.php');
// Try it
try {
// Get a debugger instance
- $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_class'));
+ $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_' . $this->getResponseTypeFromSystem() . '_class'));
} catch (NullPointerException $e) {
// Didn't work, no instance there
exit('Cannot create debugInstance! Exception=' . $e->__toString() . ', message=' . $e->getMessage());
// CFG: DECO-XML-REWRITER-TEMPLATE-CLASS
$cfg->setConfigEntry('deco_xml_rewriter_template_class', 'XmlRewriterTemplateDecorator');
-// CFG: DEBUG-CLASS
-$cfg->setConfigEntry('debug_class', 'DebugWebOutput');
+// CFG: DEBUG-WEB-CLASS
+$cfg->setConfigEntry('debug_web_class', 'DebugWebOutput');
+
+// CFG: DEBUG-CONSOLE-CLASS
+$cfg->setConfigEntry('debug_console_class', 'DebugConsoleOutput');
// CFG: DEFAULT-LANGUAGE
$cfg->setConfigEntry('default_lang', 'de'); // A two-char language string: de for german, en for english and so on
+++ /dev/null
-<?php
-/**
- * Initializes the output middleware layer
- *
- * @author Roland Haeder <webmaster@shipsimu.org>
- * @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
- * @license GNU GPL 3.0 or any newer version
- * @link http://www.shipsimu.org
- * @deprecated
- * @todo Minimize these includes
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-// Get a debugger instance
-$debug = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_class'));
-
-// Empty string should be ignored and used for testing the middleware
-DebugMiddleware::getSelfInstance()->output('');
-
-// [EOF]
-?>