From b6ecd0b1c0d40bca9a40ab08ddce2a2fa0aa80bf Mon Sep 17 00:00:00 2001 From: osmiy Date: Thu, 15 Feb 2007 14:06:26 +0000 Subject: - added Clone functionality (Eugene) - more PostgreSQL support - allow schama generation in any place calling git-svn-id: svn://svn.zabbix.com/trunk@3831 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/items.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'frontends/php/items.php') diff --git a/frontends/php/items.php b/frontends/php/items.php index a6575624..ac3125f5 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -137,6 +137,7 @@ include_once "include/page_header.php"; "register"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), "group_task"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), "save"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), + "clone"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), "update"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), "copy"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), "select"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, null, null), @@ -203,6 +204,11 @@ include_once "include/page_header.php"; unset($_REQUEST["itemid"]); unset($_REQUEST["form"]); } + else if(isset($_REQUEST["clone"]) && isset($_REQUEST["itemid"])) + { + unset($_REQUEST["itemid"]); + $_REQUEST["form"] = "clone"; + } else if(isset($_REQUEST["save"])) { $applications = get_request("applications",array()); -- cgit