X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Restrict display of debug console by IP address (https://forum.x-cart.com/showthread.php?t=26340)

gfiebich 11-03-2006 08:49 AM

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


All times are GMT -8. The time now is 09:20 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.