$loader->register(); // // Initialize static string wrapper // PMF_String::init('en'); $installer = new PMF_Installer(); $system = new PMF_System(); // // Initializing Twig // $twig = new Twig_Environment(new Twig_Loader_Filesystem(PMF_ROOT_DIR . '/setup/assets/twig')); $tplLayoutVars = array('version' => PMF_System::getVersion(), 'currentYear' => date('Y'), 'criticalErrors' => $installer->checkBasicStuff(), 'filePermErrors' => $installer->checkFilesystemPermissions(), 'nonCriticalErrors' => $installer->checkNoncriticalSettings()); $twig->loadTemplate('layout.twig')->display($tplLayoutVars); // not yet POSTed if (!isset($_POST['sql_server']) && !isset($_POST['sql_user']) && !isset($_POST['sql_db'])) { $tplDatabaseVars = array('databases' => $system->getSupportedSafeDatabases(true), 'dirname' => dirname(__DIR__)); ?> <form class="form-horizontal" action="index.php" method="post"> <div class="row"> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <?php $twig->loadTemplate('database.twig')->display($tplDatabaseVars); ?> </div> <?php if (extension_loaded('ldap')) { ?> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <?php