Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Gerhard Kollinger (http://kollinger.it/+)
- define("MY_IP", "89.23.232.21");
- function silentDebug($info = NULL, $mixedOutputVar = 'no_value', $dieAfter = NULL, $htmlCommented = TRUE) {
- if($_SERVER['REMOTE_ADDR'] == MY_IP) {
- if($mixedOutputVar != 'no_value') {
- $output = is_array($mixedOutputVar) ? print_r($mixedOutputVar, TRUE) : $mixedOutputVar;
- $output = is_string($output) ? $output : var_export($output, TRUE);
- if($htmlCommented) {
- echo '<!--'.$info.': '.$output.'-->'."\n";
- }else {
- echo $info.': '.$output.'<br />'."\n";
- }
- if($dieAfter) {
- die();
- }
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement