source: cpc/trunk/project/web/frontend_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: 1.1 KB
Line 
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.
4if ( !in_array(@$_SERVER['HTTP_CF_CONNECTING_IP'], array('127.0.0.1',
5                '82.225.240.116', //Tangui (Paris)
6                '88.168.238.200', //Benjamin (Paris))) || !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1',
7                '82.225.240.116', //Tangui (Paris)
8                '88.168.238.200', //Benjamin (Paris)
9                '129.199.114.20', //Benjamin (Paris, ENS)
10                '145.238.180.6' , // Benjamin Meudon
11                '88.181.216.59', //Tangui (Nantes)
12                '80.13.217.126', //Tangui (April)
13                '88.191.92.80', //Serveur dédié
14                '78.232.200.105', //Tangui Rennes
15                '78.29.235.101', //Tangui Bx
16                '::1')))
17{
18//  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
19}
20
21require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
22
23$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
24sfContext::createInstance($configuration)->dispatch();
Note: See TracBrowser for help on using the repository browser.