Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jozef Sroka
ISPConfig 3
Commits
fdc9446e
Commit
fdc9446e
authored
Oct 21, 2016
by
Till Brehm
Browse files
Fixed
#4233
3.1 stable IPs of a client can not be selected
parent
174d56b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/ajax_get_ip.php
View file @
fdc9446e
...
@@ -47,7 +47,7 @@ $ip_type = $_GET['ip_type'];
...
@@ -47,7 +47,7 @@ $ip_type = $_GET['ip_type'];
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE groupid = ?"
,
$client_group_id
);
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE groupid = ?"
,
$client_group_id
);
$sql
=
"SELECT ip_address FROM server_ip WHERE ip_type = ? AND server_id = ? AND (client_id = 0 OR client_id=?)"
;
$sql
=
"SELECT ip_address FROM server_ip WHERE ip_type = ? AND server_id = ? AND (client_id = 0 OR client_id=?)"
;
$ips
=
$app
->
db
->
queryAllRecords
(
$sql
,
$ip_type
,
$server_id
,
$tmp
[
'
group
id'
]);
$ips
=
$app
->
db
->
queryAllRecords
(
$sql
,
$ip_type
,
$server_id
,
$tmp
[
'
client_
id'
]);
// $ip_select = "<option value=''></option>";
// $ip_select = "<option value=''></option>";
if
(
$ip_type
==
'IPv4'
){
if
(
$ip_type
==
'IPv4'
){
$ip_select
=
(
$web_config
[
'enable_ip_wildcard'
]
==
'y'
)
?
"*#"
:
""
;
$ip_select
=
(
$web_config
[
'enable_ip_wildcard'
]
==
'y'
)
?
"*#"
:
""
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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