Firebug and FirePHP only for selected domains?

How can I automatically enable Firebug and FirePHP only for pages in the selected TLD, for example. *.dev ?
I do not see any options for this. Maybe some custom text?

Also, is there a way to always start Firebug in minimum status mode?

+4
source share
1 answer

The best way to do this is the following (not verified):

 $firephp = FirePHP::getInstance(true); // always disable first $firephp->setEnabled(false); if(substr($_SERVER['HTTP_HOST'], -4, 4)==".dev") { // only enable when criteria matches $firephp->setEnabled(true); } 

This suggests that FirePHP <1.0. Using FirePHP 1.0 is even easier. You can install FirePHP on the site, and it will be enabled only if INSIGHT_CONFIG_PATH is set and an authorized client is found.

I am not 100% sure what you mean when starting Firebug in minimized mode. It saves the setting the last time you used it. If you want to explore some of the options that we can implement to control Firebug, get in touch .

+1
source

Source: https://habr.com/ru/post/1334754/


All Articles