Ajout de la protection + couleurs HTML

This commit is contained in:
Michel Roux 2013-10-17 09:57:29 +02:00
parent 3d2acdd63f
commit ad0aa11ace
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,7 @@
<?php
ini_set('display_errors', true);
require_once 'config.php';
require_once 'utils.php';
global $servers;
?><!doctype html>
<html>

View File

@ -11,14 +11,14 @@ if (defined('ONGITLAB') && ONGITLAB) {
function ansi2html($string) {
$dictionary = array(
'[30m' => '<span style="color:blue">',
'[31m' => '<span style="color:blue">',
'[32m' => '<span style="color:blue">',
'[33m' => '<span style="color:blue">',
'[30m' => '<span style="color:black">',
'[31m' => '<span style="color:red">',
'[32m' => '<span style="color:green">',
'[33m' => '<span style="color:yellow">',
'[34m' => '<span style="color:blue">',
'[35m' => '<span style="color:blue">',
'[36m' => '<span style="color:blue">',
'[37m' => '<span style="color:blue">',
'[35m' => '<span style="color:fuchsia">',
'[36m' => '<span style="color:aqua">',
'[37m' => '<span style="color:white">',
'[m' => '</span>',
);