summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-07 14:16:21 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-07 14:16:21 +0000
commit6f2e181732084950f1cab209f308347460dc290e (patch)
tree010c0b87f1e21a62d39d3e4dc283f4a283076ac1 /frontends/php/include/forms.inc.php
parent4c4c7ec61d8d890ff596acbc2737aa0f36d54d6f (diff)
downloadzabbix-6f2e181732084950f1cab209f308347460dc290e.tar.gz
zabbix-6f2e181732084950f1cab209f308347460dc290e.tar.xz
zabbix-6f2e181732084950f1cab209f308347460dc290e.zip
- [DEV-108] GUI - Autodiscovery
git-svn-id: svn://svn.zabbix.com/trunk@5461 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php16
1 files changed, 1 insertions, 15 deletions
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)