From 6f2e181732084950f1cab209f308347460dc290e Mon Sep 17 00:00:00 2001 From: sasha Date: Fri, 7 Mar 2008 14:16:21 +0000 Subject: - [DEV-108] GUI - Autodiscovery git-svn-id: svn://svn.zabbix.com/trunk@5461 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'frontends/php/include/forms.inc.php') diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index 0791da68..4926b14d 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -260,21 +260,7 @@ if(isset($_REQUEST['type_changed'])) { - switch($new_check_type) - { - case SVC_SSH: $new_check_ports = 22; break; - case SVC_LDAP: $new_check_ports = 389; break; - case SVC_SMTP: $new_check_ports = 25; break; - case SVC_FTP: $new_check_ports = 21; break; - case SVC_HTTP: $new_check_ports = 80; break; - case SVC_POP: $new_check_ports = 110; break; - case SVC_NNTP: $new_check_ports = 119; break; - case SVC_IMAP: $new_check_ports = 143; break; - case SVC_TCP: $new_check_ports = 80; break; - case SVC_AGENT: $new_check_ports = 10050; break; - case SVC_SNMPv1:$new_check_ports = 161; break; - case SVC_SNMPv2:$new_check_ports = 161; break; - } + $new_check_ports = svc_default_port($new_check_type); } $external_param = array(); switch($new_check_type) -- cgit