// Fill the IP select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND client_id=0 OR client_id=".$_SESSION['s']['user']['client_id'];
//* Fill the IPv4 select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv4' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")";
$ips=$app->db->queryAllRecords($sql);
$ip_select="<option value='*'>*</option>";
//$ip_select = "";
...
...
@@ -108,6 +108,21 @@ class page_action extends tform_actions {
$app->tpl->setVar("ip_address",$ip_select);
unset($tmp);
unset($ips);
//* Fill the IPv6 select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv6' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")";
// Fill the IP select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND client_id=0 OR client_id=".$_SESSION['s']['user']['client_id'];
//* Fill the IPv4 select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv4' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")";
$ips=$app->db->queryAllRecords($sql);
$ip_select="<option value='*'>*</option>";
//$ip_select = "";
...
...
@@ -149,6 +164,21 @@ class page_action extends tform_actions {
$app->tpl->setVar("ip_address",$ip_select);
unset($tmp);
unset($ips);
//* Fill the IPv6 select field with the IP addresses that are allowed for this client
$sql="SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv6' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")";