You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fill the IP select field with the IP addresses that are allowed for this client
98
-
// $ip_select = "<option value='*'>*</option>";
99
-
// $app->tpl->setVar("ip_address",$ip_select);
100
-
$sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver'];
98
+
$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'];
101
99
$ips = $app->db->queryAllRecords($sql);
102
100
$ip_select = "<option value='*'>*</option>";
103
101
//$ip_select = "";
@@ -111,7 +109,7 @@ function onShowEnd() {
111
109
unset($tmp);
112
110
unset($ips);
113
111
114
-
//* Reseller: If the logged in user is not admin and has sub clients (is a rseller)
112
+
//* Reseller: If the logged in user is not admin and has sub clients (is a reseller)
// Fill the IP select field with the IP addresses that are allowed for this client
141
-
//$ip_select = "<option value='*'>*</option>";
142
-
//$app->tpl->setVar("ip_address",$ip_select);
143
-
$sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver'];
139
+
$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'];
0 commit comments