frontend_dev.php 595 B

12345678910111213
  1. <?php
  2. // this check prevents access to debug front controllers that are deployed by accident to production servers.
  3. // feel free to remove this, extend it or make something more sophisticated.
  4. if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) {
  5. die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  6. }
  7. require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
  8. $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
  9. sfContext::createInstance($configuration)->dispatch();