Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Restrict display of debug console by IP address

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:48 PM.

   

 
X-Cart forums © 2001-2020