<?php $menuBootstrap = array('menu.php', 'formulaire.php', 'bouton.php', 'message.php', 'pagination.php', 'tableau.php', 'breadcrumb.php'); $menuApi = array('application.php', 'breadcrumbapi.php', 'database.php', 'tool.php', 'utilisateur.php', 'upload.php', 'notification.php', 'projet.php'); ?> <nav id="menu"> <div id="menuEntreprise"> <p> <?php $menuApplication = Lib\Application::getApplication($bdd); echo '<i class="fa ' . $menuApplication->applicationIcon . '"></i> ' . $menuApplication->applicationNom; ?> </p> </div> <div id="menuLogo"> <?php $menuAvatar = Lib\Utilisateur::getUtilisateur($bdd)->utilisateurAvatar; if (!empty($menuAvatar)) { echo '<img src="' . BASEFRONT . 'img/utilisateur/avatar/' . $menuAvatar . '">'; } else { echo '<i class="fa fa-user"></i>'; } ?> </div> <a href="<?php echo BASEFRONT; ?> dashboard/dashboard.php" class="menuNav <?php
<?php require_once __DIR__ . '/../lib/Loader.php'; $config = (require_once __DIR__ . '/../cfg/config.php'); $app = new \Lib\Application($config); $app->run();
* @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://github.com/enygma/usher */ namespace Usher; require_once 'Lib/Loader.php'; ob_start(); try { Lib\Loader::init(); Lib\Console::init(); Lib\Config::load(); } catch (\Exception $e) { Lib\Console\Output::msg('Error on setup: ' . $e->getMessage()); die; } $projectName = Lib\Config::getOption('project.name'); Lib\Console\Output::msg('Executing project "' . $projectName . '"'); // get and execute our tasks try { $app = new Lib\Application(); $app->execute(); } catch (\Exception $e) { Lib\Console\Output::error('Error on build! (' . $e->getMessage() . ')'); } if (Lib\Console::getOption('logFile') !== null) { $output = ob_get_contents(); Lib\Utility\Logger::write($output); } if (Lib\Console::getOption('runQuiet') == true) { ob_end_clean(); }