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)
-   -   Show debug console for certain IP's only (https://forum.x-cart.com/showthread.php?t=56436)

bigredseo 11-18-2010 10:53 AM

Re: Show debug console for certain IP's only
 
Quote:

Originally Posted by amy2203
I don't have a dedicated IP at home where I do a lot of modding, so is there a way I can limit this to a logged in admin user?


Not really the solution you're looking for, but you could always modify the IP number in the file each time your IP number at your house changes. To find your IP number go to http://www.whatismyip.com and then just slap that in the code.

Great addition to the code Steve. This should be something X-Cart takes and expands for an incremental release. Nice work!

ADDISON 03-15-2011 08:12 AM

Re: Show debug console for certain IP's only
 
You can improve it creating an input box in Admin for IP address.

Let's say you have dynamic IP. Find it using a whatismyip script on many websites. Then login in your administrator account and put the IP address into input box. Save, and enable Webmaster Mode.

Only you should see the Debug Console in Frontend.

ADDISON 09-12-2011 07:11 AM

Re: Show debug console for certain IP's only
 
Is there an update for v4.4.3 to disable Webmaster console in frontend based on user name (e.g. only admin) not IP's?

ADDISON 11-24-2011 03:57 AM

Re: Show debug console for certain IP's only
 
This should be available by default in all X-Cart versions. The script could be improved in this way. When the Admin chooses to use the Webmaster console, automatically the script gets his IP address. Based on this IP address, the script will be show the console only to it. This elegant way solve the problem with dynamic IP's.

gb2world 11-27-2011 10:03 PM

Re: Show debug console for certain IP's only
 
The mod in this thread does not apply to Webmaster mode - it applies to the debug console.

---


All times are GMT -8. The time now is 11:50 PM.

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