The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to supress errors in config.php except for a specific ip
I'd like to do some troubleshooting on a live 4.2.2 site. It currently has this in the config.php:
Code:
define('SKIP_ALL_ERRORS', true); Code:
if ($_SERVER['REMOTE_ADDR'] != 'xxx.xxx.xx.xx') { define('SKIP_ALL_ERRORS', true); } |
#2
|
||||
|
||||
Lets try this:
Code:
$my_unique_ip="XXX.XXX.XX.X"; // Change this IP to your Unique IP. if ($_SERVER["REMOTE_ADDR"]!=$my_unique_ip) define('SKIP_ALL_ERRORS', true); |
Благодарность от: | ||
bzcomputers |
#3
|
|||
|
|||
Either one of those should work.
What errors are you getting? Remember, you're allowing errors to be shown to YOU when you do what you're doing. So yes... all sorts of errors can appear. |
#4
|
||||
|
||||
Looks like it was just the braces, once they were removed this worked:
Code:
if ($_SERVER['REMOTE_ADDR'] != 'xxx.xxx.xx.xx') define('SKIP_ALL_ERRORS', true); Thanks. |
#5
|
||||
|
||||
Excellent, glad to hear.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|