function getVersions($authentication) { global $db, $conf, $langs; dol_syslog("Function: getVersions login=" . $authentication['login']); if ($authentication['entity']) { $conf->entity = $authentication['entity']; } // Init and check authentication $objectresp = array(); $errorcode = ''; $errorlabel = ''; $error = 0; $fuser = check_authentication($authentication, $error, $errorcode, $errorlabel); // Check parameters if (!$error) { $objectresp['result'] = array('result_code' => 'OK', 'result_label' => ''); $objectresp['dolibarr'] = version_dolibarr(); $objectresp['os'] = version_os(); $objectresp['php'] = version_php(); $objectresp['webserver'] = version_webserver(); } if ($error) { $objectresp = array('result' => array('result_code' => $errorcode, 'result_label' => $errorlabel)); } return $objectresp; }
$langs->load("install"); if (!$user->admin) { accessforbidden(); } /* * Actions */ // None /* * View */ llxHeader(); print_fiche_titre($langs->trans("SummarySystem"), '', 'title_setup'); print '<table class="noborder" width="100%">'; print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibarr</td></tr>\n"; $dolversion = version_dolibarr(); print "<tr {$bc['0']}><td width=\"280\">" . $langs->trans("Version") . "</td><td>" . $dolversion . "</td></tr>\n"; print '</table>'; print "<br>\n"; print '<table class="noborder" width="100%">'; print "<tr class=\"liste_titre\"><td colspan=\"2\">" . $langs->trans("OS") . "</td></tr>\n"; $osversion = version_os(); print "<tr {$bc['0']}><td width=\"280\">" . $langs->trans("Version") . "</td><td>" . $osversion . "</td></tr>\n"; print '</table>'; print "<br>\n"; // Serveur web print '<table class="noborder" width="100%">'; print "<tr class=\"liste_titre\"><td colspan=\"2\">" . $langs->trans("WebServer") . "</td></tr>\n"; $apacheversion = version_webserver(); print "<tr {$bc['0']}><td width=\"280\">" . $langs->trans("Version") . "</td><td>" . $apacheversion . "</td></tr>\n"; print '</table>';