* Copyright (C) 2007 Rodolphe Quiedeville * Copyright (C) 2007-2024 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 * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * \file htdocs/admin/system/browser.php * \brief Page to show Dolibarr information */ // Load Dolibarr environment require '../../main.inc.php'; // Load translation files required by the page $langs->loadLangs(array("install", "other", "admin")); if (empty($user->admin)) { accessforbidden(); } /* * View */ llxHeader('', '', '', '', 0, 0, '', '', '', 'mod-admin page-system_browser'); print load_fiche_titre($langs->trans("InfoBrowser"), '', 'title_setup'); // Browser print '
'; print ''; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print '
'.$langs->trans("Parameter").'
'.$langs->trans("UserAgent").''.dol_escape_htmltag($conf->browser->ua).'
'.$langs->trans("BrowserName").''.$conf->browser->name.'
'.$langs->trans("BrowserOS").''.$conf->browser->os.'
'.$langs->trans("Version").''.$conf->browser->version.'
'.$langs->trans("Layout").' (phone/tablet/classic)'.$conf->browser->layout.'
'.$langs->trans("IPAddress").''.dol_escape_htmltag($_SERVER['REMOTE_ADDR']); if (!empty($_SERVER['HTTP_CLIENT_IP'])) { print ' (HTTP_CLIENT_IP='.dol_escape_htmltag($_SERVER['HTTP_CLIENT_IP']).')'; } if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { print ' (HTTP_X_FORWARDED_FOR='.dol_escape_htmltag($_SERVER['HTTP_X_FORWARDED_FOR']).')'; } print '
'.$langs->trans("SessionName").''.session_name().'
'.$langs->trans("SessionId").'********
'.$langs->trans("Screen").''; print $_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight']; print '
'; print '
'; print '
'; // End of page llxFooter(); $db->close();