addCollector(new DebugBar\DataCollector\MemoryCollector()); $debugbar->addCollector(new DebugBar\DataCollector\PhpInfoCollector()); $debugbar->addCollector(new DebugBar\DataCollector\RequestDataCollector()); $debugbar->addCollector(new DebugBar\DataCollector\TimeDataCollector()); $debugbar->addCollector(new DebugBar\Bridge\MonologCollector($logger)); $debugbar->addCollector(new DebugBar\DataCollector\PDO\PDOCollector($dbo->getPDO())); $debugbarRenderer = $debugbar->getJavascriptRenderer(); $debugbarRenderer->setIncludeVendors(false); $debugbarRenderer->setBaseUrl($paths['assets'].'/php-debugbar'); } echo ' '.$pageTitle.' - '.tr('OpenSTAManager').' '; // CSS foreach (App::getAssets()['css'] as $style) { echo ' '; } // Print CSS foreach (App::getAssets()['print'] as $style) { echo ' '; } if (Auth::check()) { echo ' '; } else { echo ' '; } // JS foreach (App::getAssets()['js'] as $js) { echo ' '; } // Impostazioni di default per gli alert echo ' '; if (Auth::check()) { if (!empty($debugbarRenderer)) { echo $debugbarRenderer->renderHead(); } if (Settings::get('Abilita esportazione Excel e PDF')) { echo ' '; } } $hide_sidebar = get_var('Nascondere la barra sinistra di default'); echo '
'; if (Auth::check()) { $calendar = ($_SESSION['period_start'] != date('Y').'-01-01' || $_SESSION['period_end'] != date('Y').'-12-31') ? 'red' : 'white'; echo '