27require
'../../main.inc.php';
48print
'<div class="div-table-responsive-no-min">';
49print
'<table class="noborder centpercent">';
50print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"Database").
'</td></tr>'.
"\n";
51print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"Version").
'</td><td>'.$db::LABEL.
' '.$db->getVersion().
'</td></tr>'.
"\n";
52print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DatabaseServer").
'</td><td>'.$conf->db->host.
'</td></tr>'.
"\n";
53print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DatabasePort").
'</td><td>'.(empty($conf->db->port) ? $langs->trans(
"Default") : $conf->db->port).
'</td></tr>'.
"\n";
54print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DatabaseName").
'</td><td>'.$conf->db->name.
'</td></tr>'.
"\n";
55print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DriverType").
'</td><td>'.$conf->db->type.($db->getDriverInfo() ?
' ('.$db->getDriverInfo().
')' :
'').
'</td></tr>'.
"\n";
56print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"User").
'</td><td>'.$conf->db->user.
'</td></tr>'.
"\n";
57print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"Password").
'</td><td>'.preg_replace(
'/./i',
'*', $dolibarr_main_db_pass).
'</td></tr>'.
"\n";
58print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DBStoringCharset").
'</td><td>'.$db->getDefaultCharacterSetDatabase().
'</td></tr>'.
"\n";
59print
'<tr class="oddeven"><td width="300">'.$langs->trans(
"DBSortingCharset").
'</td><td>'.$db->getDefaultCollationDatabase().
'</td></tr>'.
"\n";
65print
'<div class="div-table-responsive-no-min">';
66print
'<table class="noborder centpercent">';
67print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"Tables").
'</td></tr>'.
"\n";
68print
'<tr class="oddeven"><td class=""><a href="'.DOL_URL_ROOT.
'/admin/system/database-tables.php?mainmenu=home">'.
img_picto(
'',
'list',
'class="pictofixedwidth"').$langs->trans(
"List").
'</a></td></tr>'.
"\n";
72$listofvars = $db->getServerParametersValues();
73$listofstatus = $db->getServerStatusValues();
74$arraylist = array(
'listofvars',
'listofstatus');
76if (!count($listofvars) && !count($listofstatus)) {
77 print $langs->trans(
"FeatureNotAvailableWithThisDatabaseDriver");
79 foreach ($arraylist as $listname) {
81 print
'<div class="div-table-responsive-no-min">';
82 print
'<table class="noborder centpercent">';
83 print
'<tr class="liste_titre">';
84 print
'<td width="300">'.$langs->trans(
"Parameters").
'</td>';
85 print
'<td>'.$langs->trans(
"Value").
'</td>';
90 if (preg_match(
'/mysql/i', $db->type)) {
92 'character_set_database'=>array(
'var'=>
'dolibarr_main_db_character_set',
'valifempty'=>
'utf8'),
93 'collation_database'=>array(
'var'=>
'dolibarr_main_db_collation',
'valifempty'=>
'utf8_unicode_ci')
98 if ($listname ==
'listofvars') {
99 $listtouse = $listofvars;
101 if ($listname ==
'listofstatus') {
102 $listtouse = $listofstatus;
105 foreach ($listtouse as $param => $paramval) {
106 print
'<tr class="oddeven">';
110 print
'<td class="wordbreak">';
111 $show = 0; $text =
'';
112 foreach ($arraytest as $key => $val) {
113 if ($key != $param) {
116 $tmpvar = $val[
'var'];
118 $text =
'Should be in line with value of param <b>'.$val[
'var'].
'</b> thas is <b>'.($val2 ? $val2 :
"'' (=".$val[
'valifempty'].
")").
'</b>';
125 print $form->textwithpicto($paramval, $text);
128 print $form->textwithpicto($paramval, $text, 1,
'warning');
133 print
'</table>'.
"\n";
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.