Location: PHPKode > projects > Work Tracker > work-tracker-0.1/modules/admin/hooks/funcs.php
<?php
/* $Id: funcs.php 2 2004-08-05 21:42:03Z eroberts $ */
/** 
 * @package Issue-Tracker
 * @subpackage Administration
 */

if (eregi(basename(__FILE__),$_SERVER['PHP_SELF'])) {
  print "Direct module access forbidden.";
  exit;
}

/* {{{ Function: colorize_log */
/**
 * Colorize log output for easy viewing
 *
 * @param string $buffer Information to colorize
 */
function colorize_log($buffer)
{
  $buffer = str_replace("[","<font color=\"red\">[</font>",$buffer);
  $buffer = str_replace("]","<font color=\"red\">]</font>",$buffer);
  $buffer = str_replace("(","<font color=\"red\">(</font>",$buffer);
  $buffer = str_replace(")","<font color=\"red\">)</font>",$buffer);
  $buffer = str_replace("{","<font color=\"red\">{</font>",$buffer);
  $buffer = str_replace("}","<font color=\"red\">}</font>",$buffer);
  $buffer = str_replace("Array","<font color=\"blue\">Array</font>",$buffer);
  $buffer = str_replace("=>","<font color=\"magenta\">=></font>",$buffer);
  $buffer = str_replace(":","<font color=\"green\">:</font>",$buffer);
  return $buffer;
}
/* }}} */
?>
Return current item: Work Tracker