Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ec9fdf78
Commit
ec9fdf78
authored
May 11, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: gettext() foo
parent
c8d185a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
rc.initial.password
src/etc/rc.initial.password
+8
-6
No files found.
src/etc/rc.initial.password
View file @
ec9fdf78
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment