~lzap/cupooy/trunk

« back to all changes in this revision

Viewing changes to web/frontend_dev.php

  • Committer: Lukáš Zapletal
  • Date: 2009-11-16 11:41:15 UTC
  • Revision ID: lzap@shark-20091116114115-fb6rk8bq5ayk0fv4
Finish

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
// this check prevents access to debug front controllers that are deployed by accident to production servers.
4
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')))
 
5
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1', '213.155.225.111')))
6
6
{
7
7
  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
8
8
}