Fix: Error in ereg_replace
This commit is contained in:
parent
1036eabd42
commit
4c165a2a2a
@ -2,9 +2,6 @@
|
|||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* $Id$
|
|
||||||
* $Source$
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -21,9 +18,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/admin/system/phpinfo.php
|
* \file htdocs/admin/system/phpinfo.php
|
||||||
\brief Page des infos système de php
|
* \brief Page des infos système de php
|
||||||
\version $Revision$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -34,6 +31,10 @@ if (!$user->admin)
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* View
|
||||||
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
/* Style phpinfo
|
/* Style phpinfo
|
||||||
@ -90,14 +91,14 @@ $chaine = eregi_replace('background-color: #ffffff;','',$chaine);
|
|||||||
$chaine = eregi_replace('.*<style','<style',$chaine);
|
$chaine = eregi_replace('.*<style','<style',$chaine);
|
||||||
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
||||||
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
$chaine = eregi_replace('<title>.*<body>','',$chaine);
|
||||||
$chaine = eregi_replace('a:link {[^}]*}','',$chaine);
|
$chaine = eregi_replace('a:link \{[^\}]*}','',$chaine);
|
||||||
$chaine = eregi_replace('a:hover {[^}]*}','',$chaine);
|
$chaine = eregi_replace('a:hover \{[^\}]*}','',$chaine);
|
||||||
$chaine = eregi_replace('td, th {[^}]*}','',$chaine);
|
$chaine = eregi_replace('td, th \{[^\}]*}','',$chaine);
|
||||||
$chaine = eregi_replace('img {[^}]*}','',$chaine);
|
$chaine = eregi_replace('img \{[^\}]*}','',$chaine);
|
||||||
$chaine = eregi_replace('table.*important; }','',$chaine);
|
$chaine = eregi_replace('table.*important; }','',$chaine);
|
||||||
$chaine = eregi_replace('<hr />','',$chaine);
|
$chaine = eregi_replace('<hr />','',$chaine);
|
||||||
$chaine = eregi_replace('</body></html>','',$chaine);
|
$chaine = eregi_replace('</body></html>','',$chaine);
|
||||||
$chaine = eregi_replace('body, td, th, h1, h2 {font-family: sans-serif;}','',$chaine);
|
$chaine = eregi_replace('body, td, th, h1, h2 \{font-family: sans-serif;\}','',$chaine);
|
||||||
$chaine = eregi_replace('cellpadding="3" ','cellpadding="1" cellspacing="1" ',$chaine);
|
$chaine = eregi_replace('cellpadding="3" ','cellpadding="1" cellspacing="1" ',$chaine);
|
||||||
$chaine = eregi_replace('class="h"','class="liste_titre"',$chaine);
|
$chaine = eregi_replace('class="h"','class="liste_titre"',$chaine);
|
||||||
$chaine = eregi_replace('<th colspan="2">','<td>',$chaine);
|
$chaine = eregi_replace('<th colspan="2">','<td>',$chaine);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user