예제 #1
0
         $tpl->assign('db_driver', $db_driver);
         $tpl->assign('db_server', $db_server);
         $tpl->assign('db_name', $db_name);
         $tpl->assign('db_user', $db_user);
         $tpl->assign('db_pass', $db_pass);
         $tpl->assign('failed', true);
         $tpl->assign('result', $result);
         $tpl->assign('config_path', realpath(APP_PATH . "/framework.config.php"));
         $tpl->assign('template', 'steps/step_config_file.tpl.php');
     }
     break;
     // Initialize the database
 // Initialize the database
 case STEP_INIT_DB:
     // [TODO] Add current user to patcher/upgrade authorized IPs
     if (CerberusInstaller::isDatabaseEmpty()) {
         // install
         $patchMgr = DevblocksPlatform::getPatchService();
         // [JAS]: Run our overloaded container for the platform
         $patchMgr->registerPatchContainer(new PlatformPatchContainer());
         // Clean script
         if (!$patchMgr->run()) {
             // [TODO] Show more info on the error
             $tpl->assign('template', 'steps/step_init_db.tpl.php');
         } else {
             // success
             // Read in plugin information from the filesystem to the database
             DevblocksPlatform::readPlugins();
             /*
              * [TODO] This possibly needs to only start with core, because as soon 
              * as we add back another feature with licensing we'll have installer