コード例 #1
0
 /**
  * Zeigt die Debug-Console an
  */
 public static function showDebugConsole()
 {
     if (Configuration::get('logging.debug') !== 'true') {
         return;
     }
     // TODO: Localhost!
     $allowed = ['92.217.151.126', '213.188.124.2', '94.219.179.56', '::1', '127.0.0.1', '92.217.158.188', '188.97.199.247', '94.219.93.70'];
     if (!in_array($_SERVER['REMOTE_ADDR'], $allowed)) {
         return;
     }
     Profiler::endAll();
     $debugConsole = new DebugConsoleControl(null, 'dbg');
     $html = $debugConsole->toHtml();
     echo $html;
 }