summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-14 11:40:51 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-14 11:40:51 +0000
commitb4beb0cb8e825b035d6eeba0d6705cc287404f15 (patch)
tree6c3ccd73fff93d689d85c2fc995fa443667287a4 /frontends/php/include/forms.inc.php
parente77f9ad3928b55a41898857f6ebb8a61cadeab75 (diff)
downloadzabbix-b4beb0cb8e825b035d6eeba0d6705cc287404f15.tar.gz
zabbix-b4beb0cb8e825b035d6eeba0d6705cc287404f15.tar.xz
zabbix-b4beb0cb8e825b035d6eeba0d6705cc287404f15.zip
- removed autoregistration
git-svn-id: svn://svn.zabbix.com/trunk@4009 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php60
1 files changed, 0 insertions, 60 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 42c093e0..afffc9ff 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -2624,66 +2624,6 @@
$frmGItem->Show();
}
- # Insert autoregistration form
- function insert_autoregistration_form()
- {
- $frmAutoReg = new CFormTable(S_AUTOREGISTRATION,"config.php");
- $frmAutoReg->SetHelp("web.autoregistration.php");
- $frmAutoReg->AddVar("config",$_REQUEST["config"]);
-
- if(isset($_REQUEST["autoregid"]))
- {
- $frmAutoReg->AddVar("autoregid",$_REQUEST["autoregid"]);
- $result = DBselect("select * from autoreg where id=".$_REQUEST["autoregid"]);
-
- $row = DBfetch($result);
- $pattern= $row["pattern"];
-
- $frmAutoReg->SetTitle(S_AUTOREGISTRATION." \"".$pattern."\"");
- }
-
- if(isset($_REQUEST["autoregid"]) && !isset($_REQUEST["form_refresh"]))
- {
- $priority = $row["priority"];
- $hostid = $row["hostid"];
- $h = get_host_by_hostid($hostid);
- $host = $h["host"];
- }
- else
- {
- $pattern = get_request("pattern", "*");
- $priority = get_request("priority", 10);
- $hostid = get_request("hostid", 0);
- $host = get_request("host", "");
- }
-
- $col=0;
-
- $frmAutoReg->AddRow(S_PATTERN,new CTextBox("pattern",$pattern,64));
- $frmAutoReg->AddRow(S_PRIORITY,new CTextBox("priority",$priority,4));
- $frmAutoReg->AddRow(S_HOST,array(
- new CTextBox("host",$host,32,'yes'),
- new CButton("btn1",S_SELECT,
- "return PopUp('popup.php?dstfrm=".$frmAutoReg->GetName().
- "&dstfld1=hostid&dstfld2=host&srctbl=hosts&srcfld1=hostid&srcfld2=host',450,450);",
- 'T')
- ));
- $frmAutoReg->AddVar("hostid",$hostid);
-
- $frmAutoReg->AddItemToBottomRow(new CButton("save",S_SAVE));
- if(isset($_REQUEST["autoregid"]))
- {
- $frmAutoReg->AddItemToBottomRow(SPACE);
- $frmAutoReg->AddItemToBottomRow(new CButtonDelete(
- "Delete selected autoregistration rule?",
- url_param("form").url_param("config").url_param("autoregid").
- "&pattern=".$pattern));
- }
- $frmAutoReg->AddItemToBottomRow(SPACE);
- $frmAutoReg->AddItemToBottomRow(new CButtonCancel(url_param("config")));
- $frmAutoReg->Show();
- }
-
function insert_value_mapping_form()
{
$frmValmap = new CFormTable(S_VALUE_MAP);