View Single Post
  #1  
Old 11-03-2006, 08:49 AM
 
gfiebich gfiebich is offline
 

Senior Member
  
Join Date: Feb 2003
Location: St. Paul, MN
Posts: 108
 

Default Restrict display of debug console by IP address

This is probably obvious to everyone else, but here goes anyhow:

I like to make regular use of the Smarty Debug Console on live sites, but hate having customers see it. The fix? Only display the Console to my IP address.

In debug.tpl or debug_templates.tpl (whichever you're using), simply wrap all the code like this:
Code:
{if $CLIENT_IP eq 'YOUR EXTERNAL IP ADDRESS HERE'} all the debug.tpl code here {/if}

If you don't know your external IP address, you can find it easily in the debug_template.tpl popup window.

I did this in xcart 4.0.x.

-Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS
Reply With Quote