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

Last change on this file since 2648 was 2648, checked in by goya, 9 years ago

kicke les desinscrits avec is_active négatif

File size: 1019 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['HTTP_CF_CONNECTING_IP'], array('127.0.0.1',
6                '82.225.240.116', //Tangui (Paris)
7                '88.168.238.200', //Benjamin (Paris))) || !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1','173.245.49.172',
8                '82.225.240.116', //Tangui (Paris)
9                '88.168.238.200', //Benjamin (Paris)
10                '129.199.114.20', //Benjamin (Paris, ENS)
11                '77.205.50.174', //Brice
12                                              '::1', )))
13{
14  die('You ('.@$_SERVER['REMOTE_ADDR'].')are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
15}
16
17require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
18
19$configuration = ProjectConfiguration::getApplicationConfiguration('backend', 'dev', true);
20sfContext::createInstance($configuration)->dispatch();
Note: See TracBrowser for help on using the repository browser.