Skip to content

Instantly share code, notes, and snippets.

@decebal
Created January 27, 2012 15:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save decebal/1689344 to your computer and use it in GitHub Desktop.
Save decebal/1689344 to your computer and use it in GitHub Desktop.
display errors on dev ip
if($_SERVER['REMOTE_ADDR'] == '86.120.211.231'){
ini_set("display_errors", 'On');
error_reporting(E_ALL ^ E_NOTICE);
}else{
ini_set("display_errors", 'Off');
}
{if $smarty.server.REMOTE_ADDR == '86.120.211.231'}
{$page|@vd}
{/if}
@dianastefan
Copy link

Update:

if($_SERVER['REMOTE_ADDR'] == '188.26.89.254'){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment