| 1 | <?php |
|---|
| 2 | require_once('config.php'); |
|---|
| 3 | // this check prevents access to debug front controllers that are deployed by accident to production servers. |
|---|
| 4 | // feel free to remove this, extend it or make something more sophisticated. |
|---|
| 5 | // if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) |
|---|
| 6 | // { |
|---|
| 7 | // die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|---|
| 8 | // } |
|---|
| 9 | |
|---|
| 10 | $included_in_installer = true; |
|---|
| 11 | require_once('pre_installer_code.php'); |
|---|
| 12 | |
|---|
| 13 | require_once($options['sf_root_dir'].DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'ProjectConfiguration.class.php'); |
|---|
| 14 | |
|---|
| 15 | $configuration = ProjectConfiguration::getApplicationConfiguration('installer', 'dev', true,$full_root_dir); |
|---|
| 16 | ProjectConfiguration::getActive()->setWebDir($options['sf_web_dir']); |
|---|
| 17 | sfContext::createInstance($configuration)->dispatch(); |
|---|
| 18 | |
|---|