| | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | |
| | | // Checking module permissions |
| | | if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) { |
| | | header("Location: ../index.php"); |
| | | exit; |
| | | } |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | | |
| | | $server_id = intval($_GET["server_id"]); |
| | | |
| | |
| | | $sql = "SELECT ip_address FROM server_ip WHERE server_id = $server_id"; |
| | | $ips = $app->db->queryAllRecords($sql); |
| | | // $ip_select = "<option value=''></option>"; |
| | | $ip_select = ""; |
| | | $ip_select = "<option value='*'>*</option>\r\n"; |
| | | if(is_array($ips)) { |
| | | foreach( $ips as $ip) { |
| | | //$selected = ($ip["ip_address"] == $this->dataRecord["ip_address"])?'SELECTED':''; |