diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-29 10:28:15 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-29 10:28:15 +0000 |
| commit | 96429a66214858603fff8b687dc777ab1e366ef7 (patch) | |
| tree | 7af2c448a858143247ac384c8a64771aa4a978aa /frontends/php/setup.php | |
| parent | 65dd1614dba5dc1c81e953480e04e38dfda67f67 (diff) | |
- improved non standard PostgreSQL & MySQL port using (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4388 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/setup.php')
| -rw-r--r-- | frontends/php/setup.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/php/setup.php b/frontends/php/setup.php index 9e77eb6b..8babd907 100644 --- a/frontends/php/setup.php +++ b/frontends/php/setup.php @@ -21,6 +21,11 @@ <?php require_once "include/config.inc.php"; require_once "include/setup.inc.php"; +/* TMP !!! */ + +global $DB_SERVER; + +/* ******** */ $page["title"] = "S_INSTALLATION"; $page["file"] = "setup.php"; @@ -38,9 +43,10 @@ "trouble"=> array(T_ZBX_STR, O_OPT, null, null, null), "type"=> array(T_ZBX_STR, O_OPT, null, IN('"MYSQL","POSTGRESQL","ORACLE","SQLITE3"'), null), - "server"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "server"=> array(T_ZBX_STR, O_OPT, null, null, null), + "port"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(0,65535), null), "database"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), - "user"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, null), + "user"=> array(T_ZBX_STR, O_OPT, null, null, null), "password"=> array(T_ZBX_STR, O_OPT, null, null, null), "message"=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL), |
