Commit ec9fdf78 authored by Franco Fichtner's avatar Franco Fichtner

rc: gettext() foo

parent c8d185a4
......@@ -44,12 +44,14 @@ printf(_('Do you want to proceed [y|n]? '));
if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
if (isset($config['system']['webgui']['authmode']) &&
$config['system']['webgui']['authmode'] != "Local Database") {
echo "\n" . gettext('
The User manager authentication server is set to "' . $config['system']['webgui']['authmode'] . '".') . "\n" .
gettext('Do you want to set it back to Local Database [y|n]?');
if (strcasecmp(chop(fgets($fp)), "y") == 0)
$config['system']['webgui']['authmode'] = "Local Database";
$config['system']['webgui']['authmode'] != 'Local Database') {
printf("\n\n");
printf(_('The User manager authentication server is set to "%s".'), $config['system']['webgui']['authmode']);
printf("\n");
printf(_('Do you want to set it back to Local Database [y|n]? '));
if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
$config['system']['webgui']['authmode'] = 'Local Database';
}
}
$admin_user =& getUserEntryByUID(0);
if (!$admin_user) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment