Work on rpm package
This commit is contained in:
parent
911117f6ce
commit
6652909b1e
@ -63,25 +63,14 @@ $configfileparameters=array(
|
||||
'separator',
|
||||
'dolibarr_main_authentication',
|
||||
'separator',
|
||||
'?dolibarr_main_auth_ldap_login_attribute',
|
||||
'?dolibarr_main_auth_ldap_host',
|
||||
'?dolibarr_main_auth_ldap_port',
|
||||
'?dolibarr_main_auth_ldap_version',
|
||||
'?dolibarr_main_auth_ldap_dn',
|
||||
'?dolibarr_main_auth_ldap_admin_login',
|
||||
'?dolibarr_main_auth_ldap_admin_pass',
|
||||
'?dolibarr_main_auth_ldap_debug',
|
||||
'separator',
|
||||
'?dolibarr_lib_ADODB_PATH',
|
||||
'?dolibarr_lib_TCPDF_PATH',
|
||||
'?dolibarr_lib_FPDFI_PATH',
|
||||
'?dolibarr_lib_NUSOAP_PATH',
|
||||
'?dolibarr_lib_PHPEXCEL_PATH',
|
||||
'?dolibarr_lib_GEOIP_PATH',
|
||||
'?dolibarr_lib_ODTPHP_PATH',
|
||||
'?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
|
||||
'?dolibarr_font_DOL_DEFAULT_TTF',
|
||||
'?dolibarr_font_DOL_DEFAULT_TTF_BOLD'
|
||||
'dolibarr_main_auth_ldap_login_attribute',
|
||||
'dolibarr_main_auth_ldap_host',
|
||||
'dolibarr_main_auth_ldap_port',
|
||||
'dolibarr_main_auth_ldap_version',
|
||||
'dolibarr_main_auth_ldap_dn',
|
||||
'dolibarr_main_auth_ldap_admin_login',
|
||||
'dolibarr_main_auth_ldap_admin_pass',
|
||||
'dolibarr_main_auth_ldap_debug'
|
||||
);
|
||||
$configfilelib=array(
|
||||
// 'separator',
|
||||
@ -109,18 +98,7 @@ $configfilelib=array(
|
||||
'dolibarr_main_auth_ldap_dn',
|
||||
'dolibarr_main_auth_ldap_admin_login',
|
||||
'dolibarr_main_auth_ldap_admin_pass',
|
||||
'dolibarr_main_auth_ldap_debug',
|
||||
'separator',
|
||||
'dolibarr_lib_ADODB_PATH',
|
||||
'dolibarr_lib_TCPDF_PATH',
|
||||
'dolibarr_lib_FPDFI_PATH',
|
||||
'dolibarr_lib_NUSOAP_PATH',
|
||||
'dolibarr_lib_PHPEXCEL_PATH',
|
||||
'dolibarr_lib_GEOIP_PATH',
|
||||
'dolibarr_lib_ODTPHP_PATH',
|
||||
'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
|
||||
'dolibarr_font_DOL_DEFAULT_TTF',
|
||||
'dolibarr_font_DOL_DEFAULT_TTF_BOLD'
|
||||
'dolibarr_main_auth_ldap_debug'
|
||||
);
|
||||
$var=true;
|
||||
print '<table class="noborder" width="100%">';
|
||||
@ -138,23 +116,9 @@ foreach($configfileparameters as $key)
|
||||
|
||||
if (empty($ignore))
|
||||
{
|
||||
$newkey = preg_replace('/^\?/','',$key);
|
||||
|
||||
if (preg_match('/^\?/',$key) && empty(${$newkey}))
|
||||
{
|
||||
$i++;
|
||||
continue; // We discard parametes starting with ?
|
||||
}
|
||||
|
||||
if ($newkey == 'separator' && $lastkeyshown == 'separator')
|
||||
{
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].">";
|
||||
if ($newkey == 'separator')
|
||||
if ($key == 'separator')
|
||||
{
|
||||
print '<td colspan="3"> </td>';
|
||||
}
|
||||
@ -163,17 +127,16 @@ foreach($configfileparameters as $key)
|
||||
// Label
|
||||
print "<td>".$configfilelib[$i].'</td>';
|
||||
// Key
|
||||
print '<td>'.$newkey.'</td>';
|
||||
print '<td>'.$key.'</td>';
|
||||
// Value
|
||||
print "<td>";
|
||||
if ($newkey == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$newkey});
|
||||
else if ($newkey == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$newkey})) print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT');
|
||||
else if ($newkey == 'dolibarr_main_url_root_alt' && preg_match('/__auto__/',${$newkey})) print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT_ALT');
|
||||
else print ${$newkey};
|
||||
if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key});
|
||||
else if ($key == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.constant('DOL_MAIN_URL_ROOT');
|
||||
else if ($key == 'dolibarr_main_url_root_alt' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.constant('DOL_MAIN_URL_ROOT_ALT');
|
||||
else print ${$key};
|
||||
print "</td>";
|
||||
}
|
||||
print "</tr>\n";
|
||||
$lastkeyshown=$newkey;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user