From 23bdb608fe93cf4a98683dae0a09fcca30aa9d1d Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 7 Nov 2006 08:56:18 +0000 Subject: - developed frontend installation wizard (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3434 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/setup.php | 124 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 frontends/php/setup.php (limited to 'frontends/php/setup.php') diff --git a/frontends/php/setup.php b/frontends/php/setup.php new file mode 100644 index 00000000..5e2b4042 --- /dev/null +++ b/frontends/php/setup.php @@ -0,0 +1,124 @@ + + + array(T_ZBX_STR, O_OPT, null, null, null), + "distributed"=> array(T_ZBX_STR, O_OPT, null, null, null), + "trouble"=> array(T_ZBX_STR, O_OPT, null, null, null), + + "type"=> array(T_ZBX_STR, O_OPT, null, IN('"MYSQL","POSTGRESQL","ORACLE"'), null), + "server"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "database"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "user"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "password"=> array(T_ZBX_STR, O_OPT, null, null, null), + + "nodename"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "nodeid"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(0,999), null), +/* actions */ + "save_config"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), + "retry"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), + "cancel"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), + "finish"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), + "next"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), + "back"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), +/* other */ + "form"=> array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL), + "form_refresh"=> array(T_ZBX_INT, O_OPT, NULL, NULL, NULL) + ); + + check_fields($fields, false); +?> + +Show(); + + //SDI($ZBX_CONFIG); + + global $_POST; + unset($_POST); +?> + -- cgit