source: cpc/trunk/project/web/backend_dev.php @ 1675

Last change on this file since 1675 was 1675, checked in by goya, 11 years ago

oups commit malheureux corrigé

File size: 594 bytes
Line 
1<?php
2
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.
5if (!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
10require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
11
12$configuration = ProjectConfiguration::getApplicationConfiguration('backend', 'dev', true);
13sfContext::createInstance($configuration)->dispatch();
Note: See TracBrowser for help on using the repository browser.