<?php use Pecee\DB\Pdo; use Pecee\Locale; $key = \Pecee\Registry::getInstance(); $site = \Pecee\UI\Site::getInstance(); /* ---------- Configuration start ---------- */ $key->set('host', 'ninjaimg.com'); // Debug mode enabled $site->setDebug(env('DEBUG')); /* Database */ $key->set(Pdo::SETTINGS_CONNECTION_STRING, 'mysql:host=' . env('DB_HOST') . ';dbname=' . env('DB_DATABASE') . ';charset=utf8'); $key->set(Pdo::SETTINGS_USERNAME, env('DB_USERNAME')); $key->set(Pdo::SETTINGS_PASSWORD, env('DB_PASSWORD')); /* Site main language */ Locale::getInstance()->setLocale('da-DK'); Locale::getInstance()->setDefaultLocale('da-DK'); // Add IP's that are allowed to debug, clear-cache etc. $site->addAdminIp('127.0.0.1'); $site->addAdminIp('::1'); /* ---------- Configuration end ---------- */
<?php /* @var $this \NinjaImg\Widget\Controlpanel\Controlpanel */ echo \Pecee\UI\Site::GetInstance()->getDocType(); ?> <html> <head> <?php echo $this->printHeader(); ?> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo url('controlpanel.home'); ?> ">NinjaImg</a> </div> <div id="navbar" class="collapse navbar-collapse"> <?php echo $this->mainMenu; ?> </div>