Skip to content

Instantly share code, notes, and snippets.

@h1ldebrand
Created June 9, 2018 07:53
Show Gist options
  • Save h1ldebrand/3cdc0e73914c8bd4d912c13f9b3f2d11 to your computer and use it in GitHub Desktop.
Save h1ldebrand/3cdc0e73914c8bd4d912c13f9b3f2d11 to your computer and use it in GitHub Desktop.
//php file check
if ($_SERVER['REMOTE_ADDR'] == '194.29.63.96' ) {
//your code here
}
//smarty check
{if $smarty.server.REMOTE_ADDR == '194.29.63.96'}
{* other debugging code goes here *}
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment