Ajout de la protection + couleurs HTML
This commit is contained in:
parent
3d2acdd63f
commit
ad0aa11ace
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
ini_set('display_errors', true);
|
||||
require_once 'config.php';
|
||||
require_once 'utils.php';
|
||||
global $servers;
|
||||
?><!doctype html>
|
||||
<html>
|
||||
|
14
utils.php
14
utils.php
@ -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>',
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user