Posted By

kspal on 10/21/11


Tagged

css debug


Versions (?)

information de debug style


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

}

  1. .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; }
  2.  
  3. {%if ch_debug %}
  4. <div class='debug'>
  5. <img src="/img/firebug.png"/>
  6. {{ch_debug}}
  7. </div>
  8. {%endif%}

Report this snippet  

You need to login to post a comment.