Return to Snippet

Revision: 52359
at October 21, 2011 01:42 by kspal


Initial Code
.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%}

Initial URL

                                

Initial Description
//////////////////////////////////////////////////////////
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."<br>\n";
        }
}

Initial Title
information de debug style

Initial Tags
css, debug

Initial Language
CSS