Exemple #1
0
 function pre($string, $options_string = NULL)
 {
     if (!$GLOBALS['USE_DEBUGLIB']) {
         return;
     }
     $options = DbugL::parse_options($options_string);
     if (isset($options['debug_level']) && $options['debug_level'] > $GLOBALS['DEBUGLIB_LVL']) {
         return;
     }
     if (isset($options['trim_tabs'])) {
         $string = DbugL::trim_leading_tabs($string, $options['trim_tabs']);
     }
     $html = DbugL::html_prefix() . '<div class="DbugL_pre"><span>' . DbugL::format_string($string) . '</span></div>';
     if (isset($options['return']) && $options['return'] == '1') {
         return $html;
     } else {
         print $html;
     }
 }