diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php index 4301dfc5f57..55b55c9c321 100644 --- a/htdocs/admin/system/index.php +++ b/htdocs/admin/system/index.php @@ -1,6 +1,7 @@ * Copyright (C) 2004-2009 Laurent Destailleur + * Copyright (C) 2005-2010 Regis Houssin * * 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 @@ -19,7 +20,7 @@ /** * \file htdocs/admin/system/index.php - * \brief Page accueil infos syst�me + * \brief Page accueil infos systeme * \version $Id$ */ diff --git a/htdocs/admin/system/os.php b/htdocs/admin/system/os.php index 01e2d814670..0c3c3d7ad6a 100644 --- a/htdocs/admin/system/os.php +++ b/htdocs/admin/system/os.php @@ -1,5 +1,6 @@ + * Copyright (C) 2005-2010 Regis Houssin * * 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 @@ -18,12 +19,12 @@ /** * \file htdocs/admin/system/os.php - * \brief Page des infos syst�me de l'OS + * \brief Page des infos systeme de l'OS * \version $Id$ */ require("./pre.inc.php"); - +require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php"); $langs->load("admin"); @@ -46,12 +47,8 @@ print "\n"; print "".$langs->trans("PHP_OS")."".PHP_OS."\n"; // Recupere la version de l'OS -ob_start(); -phpinfo(); -$chaine = ob_get_contents(); -ob_end_clean(); -preg_match('/System <\/td>([^\\/]*)<\/td>/i',$chaine,$reg); -print "".$langs->trans("Version")."".$reg[1]."\n"; +$osversion=version_os(); +print "".$langs->trans("Version")."".$osversion."\n"; print '';