Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory-plugins
Commits
328af70e
Commit
328af70e
authored
Oct 28, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Oct 28, 2014
Browse files
Fixes
#3442
Fixed dashboard network tab dns servers links
parent
4b7e4eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dashboard/addons/dashboard/class_dashBoardNetwork.inc
View file @
328af70e
...
...
@@ -83,8 +83,8 @@ class dashboardNetwork extends simplePlugin
$cn
=
preg_replace
(
"/^cn=([^,]+),.*$/"
,
"$1"
,
$dn
);
if
(
!
isset
(
$servers
[
$dn
]))
{
$servers
[
$dn
]
=
array
(
'name'
=>
$cn
,
'link'
=>
objects
::
link
(
$
attrs
[
'dn'
]
,
'server'
,
'service_serviceDNS'
,
$cn
,
FALSE
),
'name'
=>
$cn
,
'link'
=>
objects
::
link
(
$
dn
,
'server'
,
'service_serviceDNS'
,
$cn
,
FALSE
),
'zones'
=>
array
()
);
}
...
...
@@ -92,8 +92,8 @@ class dashboardNetwork extends simplePlugin
}
elseif
(
preg_match
(
"/^zoneName=/"
,
$dn
))
{
$reverseName
=
preg_replace
(
"/^zoneName=([^,]+),.*$/"
,
"$1"
,
$attrs
[
'dn'
]);
$zoneName
=
preg_replace
(
"/^zoneName=([^,]+),.*$/"
,
"$1"
,
$dn
);
$dn
=
preg_replace
(
"/^zoneName=[^,]+,/"
,
""
,
$dn
);
$IP
=
DNS
::
FlipIp
(
str_replace
(
DNS
::
getInAddrArpa
(),
""
,
$reverseName
));
$dn
=
preg_replace
(
"/^zoneName=[^,]+,/"
,
""
,
$dn
);
$IP
=
DNS
::
FlipIp
(
str_replace
(
DNS
::
getInAddrArpa
(),
""
,
$reverseName
));
for
(
$dots
=
count
(
explode
(
"."
,
$IP
));
$dots
<
4
;
$dots
++
)
{
$IP
.
=
".0"
;
}
...
...
Côme Chilliet
@cchilliet
mentioned in issue
#1037 (closed)
·
Sep 02, 2017
mentioned in issue
#1037 (closed)
mentioned in issue #1037
Toggle commit list
Write
Preview
Supports
Markdown
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