/ Published in: CSS

//////////////////////////////////////////////////////////
function debug($ch,$force=false) {
global $debugphp,$iphost,$ch_debug;
$ip=getenv('REMOTE_ADDR');
if ((($debugphp==true)||($force==true))&&(in_array($ip, $iphost))) {
ob_start();
var_dump($ch);
$dump=ob_get_clean();
$ch_debug.=$dump."\n";
}
}
function debug($ch,$force=false) {
global $debugphp,$iphost,$ch_debug;
$ip=getenv('REMOTE_ADDR');
if ((($debugphp==true)||($force==true))&&(in_array($ip, $iphost))) {
ob_start();
var_dump($ch);
$dump=ob_get_clean();
$ch_debug.=$dump."\n";
}
}
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.debug{ background-color: #FFFFFF; border-radius: 10px 10px 10px 10px; box-shadow: 3px 3px 3px #CCCCCC; top: 5px;left: 5px; overflow: hidden; padding: 5px; position: fixed; width: 30px;height: 30px; z-index: 1000; } {%if ch_debug %} <div class='debug'> <img src="/img/firebug.png"/> {{ch_debug}} </div> {%endif%}
Comments
