public function stopDebug()
 {
     if (Debug::isEnabled()) {
         Debug::getInstance()->stop();
         FlashMessage::success('Debug Modus deaktiviert');
         Response::redirectToFrontpage();
     }
 }
示例#2
0
 /**
  *
  */
 public static function init()
 {
     Profiler::startSection('Debug.init');
     // Falls der globale Debug-Mode aktiviert wurde
     if (GLOBAL_DEBUG || isset($_SESSION['DEBUG']) && $_SESSION['DEBUG']) {
         Debug::getInstance()->start();
     } else {
         Debug::getInstance()->stop();
     }
     Profiler::endSection('Debug.init');
 }
 private function showDebugTab()
 {
     $result = new PanelControl(null, 'pnl');
     if (Debug::isEnabled()) {
         $btnStopDebug = new ButtonControl($result, 'btnStop');
         $btnStopDebug->setCaption('Stop Debug')->setLink('Debug', 'stopDebug');
     } else {
         $btnStartDebug = new ButtonControl($result, 'btnStart');
         $btnStartDebug->setCaption('Start Debug')->setLink('Debug', 'startDebug');
     }
     return $result;
 }
 /**
  * Startet die Verarbeitung des aktuellen Aufrufs.
  *
  * @param boolean $admin true, falls Aufruf der Administration
  */
 public static function start($admin = false)
 {
     // Bootstrapping der konkreten App aufrufen (vor dem Laden der Session!)
     // Beim Laden der Session werden u.a. schon DB-Abfragen ausgeführt. Einstellungen,
     // die die DB betreffen müssen also vorher (!) gemacht werden.
     include Environment::get()->srcDir . '/Bootstrap.php';
     $application = self::getInstance();
     $application->startSession();
     Debug::init();
     // Konkrete Applikation initialisieren (nach dem Laden der Session!)
     include Environment::get()->srcDir . '/InitApplication.php';
     // Request parsen und ausführen
     $request = $application->parseRequest();
     $request = self::sanitizeRequest($request, $admin);
     $application->handleRequest($request);
     // DB Verbindung garantiert trennen
     Database::getInstance()->close();
 }
示例#5
0
    <!-- /.modal-dialog -->
</div>


<?php 
Template::js('jquery-2.1.1.js');
Template::js('bootstrap.min.js');
Template::js('plugins/metisMenu/jquery.metisMenu.js');
Template::js('plugins/slimscroll/jquery.slimscroll.min.js');
Template::js('inspinia.js');
Template::js('plugins/pace/pace.min.js');
Template::js('plugins/jvectormap/jquery-jvectormap-2.0.2.min.js');
Template::js('plugins/jvectormap/jquery-jvectormap-world-mill-en.js');
Template::js('ModalizerControl.js', Configuration::get('site.internalUrl') . '/assets');
Template::js('GridControl.js', Configuration::get('site.internalUrl') . '/assets');
Template::js('spin.js', Configuration::get('site.internalUrl') . '/bower_components/spin.js');
Template::js('jquery.spin.js', Configuration::get('site.internalUrl') . '/bower_components/spin.js');
Template::js('jquery.validate.min.js', Configuration::get('site.internalUrl') . '/bower_components/jquery-validation/dist');
Template::js('globalize.js', Configuration::get('site.internalUrl') . '/bower_components/globalize/lib');
Template::js('globalize.culture.de-DE.js', Configuration::get('site.internalUrl') . '/bower_components/globalize/lib/cultures');
Template::js('validator.languages.de.js', Configuration::get('site.internalUrl') . '/assets');
Template::js('jquery.validate.globalize.min.js', Configuration::get('site.internalUrl') . '/assets');
Template::js('Chart.min.js', Configuration::get('site.internalUrl') . '/bower_components/Chart.js/dist');
Debug::showDebugConsole();
Javascript::display();
?>

</body>

</html>