Example #1
0
 public static function init()
 {
     self::$startTime = microtime(true);
     self::$foregroundColors['black'] = '0;30';
     self::$foregroundColors['dark_gray'] = '1;30';
     self::$foregroundColors['blue'] = '0;34';
     self::$foregroundColors['light_blue'] = '1;34';
     self::$foregroundColors['green'] = '0;32';
     self::$foregroundColors['light_green'] = '1;32';
     self::$foregroundColors['cyan'] = '0;36';
     self::$foregroundColors['light_cyan'] = '1;36';
     self::$foregroundColors['red'] = '0;31';
     self::$foregroundColors['light_red'] = '1;31';
     self::$foregroundColors['purple'] = '0;35';
     self::$foregroundColors['light_purple'] = '1;35';
     self::$foregroundColors['brown'] = '0;33';
     self::$foregroundColors['yellow'] = '1;33';
     self::$foregroundColors['light_gray'] = '0;37';
     self::$foregroundColors['white'] = '1;37';
     self::$htmlColors['black'] = '#000000';
     self::$htmlColors['dark_gray'] = '#505050';
     self::$htmlColors['blue'] = '#0000ff';
     self::$htmlColors['light_blue'] = '#5555ff';
     self::$htmlColors['green'] = '#00ff00';
     self::$htmlColors['light_green'] = '#55ff55';
     self::$htmlColors['cyan'] = '#00dddd';
     self::$htmlColors['light_cyan'] = '#44ffff';
     self::$htmlColors['red'] = '#ff0000';
     self::$htmlColors['light_red'] = '#ff5555';
     self::$htmlColors['purple'] = '#800080';
     self::$htmlColors['light_purple'] = '#FF0080';
     self::$htmlColors['yellow'] = '#FFFF00';
     self::$htmlColors['brown'] = '#A52A2A';
     self::$htmlColors['light_gray'] = '#808080';
     self::$htmlColors['white'] = '#ffffff';
     self::$htmlColors['magenta'] = '#FF00FF';
     self::$backgroundColors['black'] = '40';
     self::$backgroundColors['red'] = '41';
     self::$backgroundColors['green'] = '42';
     self::$backgroundColors['yellow'] = '43';
     self::$backgroundColors['blue'] = '44';
     self::$backgroundColors['magenta'] = '45';
     self::$backgroundColors['cyan'] = '46';
     self::$backgroundColors['light_gray'] = '47';
 }