Created
May 6, 2014 06:41
-
-
Save arslanbekov/7305f045e00c489c85cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function print_r_pre($DATA, $NAME_VARIABLE = '', $SECURE = true, $IPS = array()) { | |
$IPS = array_merge(array( | |
'***REMOTE_ADDR***' | |
), $IPS); | |
if (in_array($_SERVER['REMOTE_ADDR'], $IPS)) { | |
echo ' | |
<div style="background: rgb(119, 87, 87) !important; color: #ffffff !important; font-size: 12px !important; margin: 10px; padding: 10px;"> | |
<b>< DATA DEBUG \></b><br /> | |
' . ($NAME_VARIABLE != '' ? '<br />VARIABLE: ' . $NAME_VARIABLE . '<br />' : '') . ' | |
<pre> | |
'; | |
print_r($DATA); | |
echo ' | |
</pre> | |
</div> | |
'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment