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
a291ec24
Commit
a291ec24
authored
Jan 26, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: some baby steps with phpstorm inspection
parent
32f78562
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
auth.inc
src/etc/inc/auth.inc
+9
-4
config.lib.inc
src/etc/inc/config.lib.inc
+0
-3
interfaces.lib.inc
src/etc/inc/interfaces.lib.inc
+1
-2
No files found.
src/etc/inc/auth.inc
View file @
a291ec24
...
...
@@ -239,6 +239,8 @@ function index_users()
{
global
$config
;
$userindex
=
array
();
if
(
is_array
(
$config
[
'system'
][
'user'
]))
{
$i
=
0
;
foreach
(
$config
[
'system'
][
'user'
]
as
$userent
)
{
...
...
@@ -247,7 +249,7 @@ function index_users()
}
}
return
(
$userindex
)
;
return
$userindex
;
}
function
&
getUserEntry
(
$name
)
...
...
@@ -283,6 +285,8 @@ function &getGroupEntry($name)
if
(
isset
(
$groupindex
[
$name
]))
{
return
$config
[
'system'
][
'group'
][
$groupindex
[
$name
]];
}
return
array
();
}
function
&
getGroupEntryByGID
(
$gid
)
...
...
@@ -360,7 +364,6 @@ function local_sync_accounts()
}
/* remove local groups to avoid gid conflicts */
$gids
=
array
();
$fd
=
popen
(
'/usr/sbin/pw groupshow -a'
,
'r'
);
if
(
$fd
)
{
while
(
!
feof
(
$fd
))
{
...
...
@@ -606,9 +609,9 @@ function local_group_del_user($user)
function
local_group_set
(
$group
,
$reset
=
false
)
{
if
(
!
isset
(
$group
[
'name'
])
||
!
isset
(
$group
[
'gid'
]))
{
// input data invalid
return
false
;
return
;
}
$group_name
=
$group
[
'name'
];
$group_gid
=
$group
[
'gid'
];
$group_members
=
''
;
...
...
@@ -721,6 +724,8 @@ function auth_get_authserver($name)
}
}
}
return
false
;
}
function
auth_get_authserver_list
()
...
...
src/etc/inc/config.lib.inc
View file @
a291ec24
...
...
@@ -279,7 +279,6 @@ function security_checks_disabled()
function
cleanup_backups
()
{
global
$config
;
$i
=
false
;
if
(
isset
(
$config
[
'system'
][
'backupcount'
])
&&
is_numeric
(
$config
[
'system'
][
'backupcount'
])
&&
(
$config
[
'system'
][
'backupcount'
]
>=
0
))
{
$revisions
=
intval
(
$config
[
'system'
][
'backupcount'
]);
...
...
@@ -301,8 +300,6 @@ function cleanup_backups()
function
make_config_revision_entry
(
$desc
=
''
)
{
global
$config
;
if
(
!
empty
(
$_SESSION
[
'Username'
]))
{
$username
=
$_SESSION
[
'Username'
];
}
else
{
...
...
src/etc/inc/interfaces.lib.inc
View file @
a291ec24
...
...
@@ -196,7 +196,6 @@ function legacy_interface_stats($ifs=null)
/**
* detect interface capabilities using ifconfig -m
* @param $intf filter on interface name (empty for all)
* @return array list of interface specifics indexed by physical interface name
*/
function
legacy_interfaces_details
(
$intf
=
null
)
...
...
@@ -276,7 +275,7 @@ function legacy_interfaces_details($intf = null)
/**
* fetch interface details for one interface
* @param $intf interface name
* @param $intf
string
interface name
* @return array list of interface specifics
*/
function
legacy_interface_details
(
$intf
)
...
...
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