diff --git a/ChangeLog b/ChangeLog index a404a20169b..ce5f819bb6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.7 compared to 3.6.* ***** For users: +- New: Add info page about browser. - New: Enable feature developed for 3.6 we forgot to enabled: Adding prefix on uploaded file names. - New: No more dependency between contract and service module. diff --git a/htdocs/admin/system/browser.php b/htdocs/admin/system/browser.php new file mode 100644 index 00000000000..2a97cf8e8eb --- /dev/null +++ b/htdocs/admin/system/browser.php @@ -0,0 +1,80 @@ + + * Copyright (C) 2007 Rodolphe Quiedeville + * Copyright (C) 2007-2012 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 informations + */ + +require '../../main.inc.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; + +$langs->load("admin"); +$langs->load("install"); +$langs->load("other"); + +if (! $user->admin) + accessforbidden(); + + +/* + * View + */ + +$form=new Form($db); + +llxHeader(); + +print_fiche_titre($langs->trans("InfoBrowser"),'','setup'); + +$tmp=getBrowserInfo(); + +// Browser +$var=true; +print ''; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +$var=!$var; +print ''."\n"; +print '
'.$langs->trans("Parameter").''.$langs->trans("Value").'
'.$langs->trans("UserAgent").''.$_SERVER['HTTP_USER_AGENT'].'
'.$langs->trans("BrowserName").''.$tmp['browsername'].'
'.$langs->trans("BrowserOS").''.$tmp['browseros'].'
'.$langs->trans("Version").''.$tmp['browserversion'].'
'.$langs->trans("Smartphone").' ?'.$tmp['phone'].'
'.$langs->trans("IPAddress").''.$_SERVER['REMOTE_ADDR'].'
'.$langs->trans("SessionName").''.session_name().'
'.$langs->trans("SessionId").''.session_id().'
'.$langs->trans("Screen").''; +print $_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight']; +print '
'; +print '
'; + + + +llxFooter(); + +$db->close(); diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php index fe9bde59cec..79d5e7cf0aa 100644 --- a/htdocs/admin/system/dolibarr.php +++ b/htdocs/admin/system/dolibarr.php @@ -90,6 +90,20 @@ $var=!$var; print ''.$langs->trans("CurrentMenuHandler").''; print $conf->standard_menu; print ''."\n"; +$var=!$var; +print ''.$langs->trans("Screen").''; +print $_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight']; +print ''."\n"; +$var=!$var; +print ''.$langs->trans("Session").''; +$i=0; +foreach($_SESSION as $key => $val) +{ + if ($i > 0) print ', '; + print $key.' => '.$val; + $i++; +} +print ''."\n"; print ''; print '
'; diff --git a/htdocs/core/class/html.formadmin.class.php b/htdocs/core/class/html.formadmin.class.php index f7a6154706f..042474781d7 100644 --- a/htdocs/core/class/html.formadmin.class.php +++ b/htdocs/core/class/html.formadmin.class.php @@ -180,7 +180,7 @@ class FormAdmin $newprefix=$tab[0]; if ($newprefix=='1' && ($conf->global->MAIN_FEATURES_LEVEL < 1)) continue; if ($newprefix=='2' && ($conf->global->MAIN_FEATURES_LEVEL < 2)) continue; - if (! empty($conf->browser->firefox) && $newprefix != $oldprefix) // Add separators + if ($newprefix != $oldprefix) // Add separators { // Affiche titre print ''; + if ($i > 0) print ''; print '