summaryrefslogtreecommitdiffstats
path: root/frontends/php/instal.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
commit23bdb608fe93cf4a98683dae0a09fcca30aa9d1d (patch)
treefa3b2460d754189c42780f7da474fb6599240856 /frontends/php/instal.php
parentdda9501aff9b7293055eee1a8c769068d3701ad7 (diff)
downloadzabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.gz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.xz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.zip
- developed frontend installation wizard (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3434 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/instal.php')
-rw-r--r--frontends/php/instal.php87
1 files changed, 87 insertions, 0 deletions
diff --git a/frontends/php/instal.php b/frontends/php/instal.php
new file mode 100644
index 00000000..9a183205
--- /dev/null
+++ b/frontends/php/instal.php
@@ -0,0 +1,87 @@
+<?php
+/*
+** ZABBIX
+** Copyright (C) 2000-2005 SIA Zabbix
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+?>
+<?php
+ require_once "include/config.inc.php";
+ require_once "include/forms.inc.php";
+
+ $page["title"] = "S_INSTALLATION";
+ $page["file"] = "instal.php";
+
+include_once "include/page_header.php"
+
+?>
+<?php
+ $fields=array(
+// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
+
+/* actions */
+ "install"=> 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),
+ );
+
+ check_fields($fields);
+?>
+<?php
+ if(isset($_REQUEST['install']))
+ {
+ Redirect('setup.php');
+ }
+ elseif(isset($_REQUEST['update']))
+ {
+ error('*UNDER CONSTRUCTION*');
+ }
+
+ $form = new CFormTable(S_INSTALLATION_UPDATE);
+ $form->SetHelp('install_source_web.php');
+ $form->AddRow(
+ array(bold(S_NEW_INSTALLATION_BIG),BR,BR,
+ bold(S_DESCRIPTION),BR,
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',BR,
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',BR,
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',
+ BR,BR,BR
+ ),
+ new CButton('install',S_NEW_INSTALLATION));
+ $form->AddRow(
+ array(bold(S_UPDATE_BIG),BR,BR,
+ bold(S_DESCRIPTION),BR,
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',BR,
+ 'todo todo todo todo todo ',BR,
+ 'todo todo todo todo todo ',
+ 'todo todo todo todo todo ',BR,
+ 'todo todo todo todo todo ',
+ BR,BR,BR
+ ),
+ new CButton('update',S_UPDATE));
+ $form->Show();
+
+?>
+<?php
+
+include_once "include/page_footer.php"
+
+?>