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,44 +18,48 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\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");
|
||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* View
|
||||||
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
/* Style phpinfo
|
/* Style phpinfo
|
||||||
body {background-color: #ffffff; color: #000000;}
|
body {background-color: #ffffff; color: #000000;}
|
||||||
body, td, th, h1, h2 {font-family: sans-serif;}
|
body, td, th, h1, h2 {font-family: sans-serif;}
|
||||||
pre {margin: 0px; font-family: monospace;}
|
pre {margin: 0px; font-family: monospace;}
|
||||||
|
|
||||||
a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
|
a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
|
||||||
a:hover {text-decoration: underline;}
|
a:hover {text-decoration: underline;}
|
||||||
table {border-collapse: collapse;}
|
table {border-collapse: collapse;}
|
||||||
.center {text-align: center;}
|
.center {text-align: center;}
|
||||||
.center table { margin-left: auto; margin-right: auto; text-align: left;}
|
.center table { margin-left: auto; margin-right: auto; text-align: left;}
|
||||||
.center th { text-align: center !important; }
|
.center th { text-align: center !important; }
|
||||||
|
|
||||||
td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
|
td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
|
||||||
h1 {font-size: 150%;}
|
h1 {font-size: 150%;}
|
||||||
h2 {font-size: 125%;}
|
h2 {font-size: 125%;}
|
||||||
.p {text-align: left;}
|
.p {text-align: left;}
|
||||||
.e {background-color: #ccccff; font-weight: bold; color: #000000;}
|
.e {background-color: #ccccff; font-weight: bold; color: #000000;}
|
||||||
.h {background-color: #9999cc; font-weight: bold; color: #000000;}
|
.h {background-color: #9999cc; font-weight: bold; color: #000000;}
|
||||||
.v {background-color: #cccccc; color: #000000;}
|
.v {background-color: #cccccc; color: #000000;}
|
||||||
.vr {background-color: #cccccc; text-align: right; color: #000000;}
|
.vr {background-color: #cccccc; text-align: right; color: #000000;}
|
||||||
img {float: right; border: 0px;}
|
img {float: right; border: 0px;}
|
||||||
hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
|
hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@ -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