2017-10-20 15:00:08 +02:00
|
|
|
<!-- (c) 2005-2017 by Martin Willisegger -->
|
2017-05-22 11:24:21 +02:00
|
|
|
<!-- -->
|
|
|
|
<!-- Project : NagiosQL -->
|
|
|
|
<!-- Component : Installer template -->
|
|
|
|
<!-- Website : http://www.nagiosql.org -->
|
2017-10-20 15:00:08 +02:00
|
|
|
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
2017-05-22 11:24:21 +02:00
|
|
|
<!-- Author : $LastChangedBy: martin $ -->
|
2017-10-20 15:00:08 +02:00
|
|
|
<!-- Version : 3.3.0 -->
|
|
|
|
<!-- Revision : $LastChangedRevision: 2 $ -->
|
2017-05-22 11:24:21 +02:00
|
|
|
<script language="JavaScript" type="text/JavaScript">
|
|
|
|
<!--
|
|
|
|
// Send form
|
|
|
|
function LockButton() {
|
|
|
|
if (checkForm() == false) {
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
// Submit form
|
|
|
|
document.frmSetup.submit();
|
|
|
|
document.frmSetup.subForm.disabled = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Check form entries
|
|
|
|
function checkForm() {
|
|
|
|
// Are all required fields filled in?
|
|
|
|
var fields = "tfDBserver,tfLocalSrv,tfDBport,tfDBname,tfDBuser,tfDBpass{INSTALL_FIELDS}";
|
|
|
|
var form = document.frmSetup;
|
|
|
|
var error = false;
|
|
|
|
var ar_field = fields.split(",");
|
|
|
|
for (i=0;i<ar_field.length;i++){
|
|
|
|
if (form[ar_field[i]].value == "") {
|
|
|
|
alert("{FIELDS_MESSAGE}");
|
|
|
|
form[ar_field[i]].focus();
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (form.tfQLpass.value != form.tfQLpassrepeat.value) {
|
|
|
|
alert("PASSWORD_MESSAGE");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2017-10-20 15:00:08 +02:00
|
|
|
// Modify port value
|
|
|
|
function modifyPort(db) {
|
|
|
|
if ((db == 'mysql') || (db == 'mysqli')) {
|
|
|
|
document.frmSetup.tfDBport.value = '3306';
|
|
|
|
document.frmSetup.tfDBport.className = 'required';
|
|
|
|
} else if (db == 'pgsql') {
|
|
|
|
document.frmSetup.tfDBport.value = '5432';
|
|
|
|
document.frmSetup.tfDBport.className = 'required';
|
|
|
|
} else {
|
|
|
|
document.frmSetup.tfDBport.value = '';
|
|
|
|
document.frmSetup.tfDBport.className = '';
|
|
|
|
}
|
|
|
|
}
|
2017-05-22 11:24:21 +02:00
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
<div id="installmenu">
|
|
|
|
<div id="installmenu_content">
|
|
|
|
<p class="step1_active"><a href='install.php?step=1'><br><br>{STEP1_BOX}</a></p>
|
|
|
|
<p class='step2_active'><br><br>{STEP2_BOX}</p>
|
|
|
|
<p class='step3_active'><a href='install.php?step=3'><br><br>{STEP3_BOX}</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="installmain">
|
|
|
|
<div id="installmain_content">
|
|
|
|
<h1>{STEP2_TITLE}</h1>
|
|
|
|
<form name="frmSetup" id="frmSetup" action="install.php" method="post" class="cmxform">
|
|
|
|
<p class='hint'>{STEP2_TEXT1_1}:</p>
|
|
|
|
{STEP2_TEXT1_2}
|
|
|
|
<fieldset>
|
|
|
|
<legend><b>{STEP2_TEXT2_1}</b></legend>
|
|
|
|
<table cellpadding="0" cellspacing="1" border="0">
|
|
|
|
<tr>
|
2017-10-20 15:00:08 +02:00
|
|
|
<td style="width:250px;">{STEP2_TEXT2_2} <em>*</em></td>
|
|
|
|
<td>
|
|
|
|
<select name="selDBtype" id="selDBtype" class="required" onchange="modifyPort(this.value)">
|
|
|
|
{STEP2_VALUE2_2}
|
|
|
|
</select>
|
|
|
|
</td>
|
2017-05-22 11:24:21 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_3} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfDBserver" id="tfDBserver" class="required" value="{STEP2_VALUE2_3}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_4} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfLocalSrv" id="tfLocalSrv" class="required" value="{STEP2_VALUE2_4}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_5} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfDBport" id="tfDBport" class="required" value="{STEP2_VALUE2_5}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_6} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfDBname" id="tfDBname" class="required" value="{STEP2_VALUE2_6}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="{INST_VISIBLE}">
|
|
|
|
<td>{STEP2_TEXT2_7} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfDBuser" id="tfDBuser" class="required" value="{STEP2_VALUE2_7}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="{INST_VISIBLE}">
|
|
|
|
<td>{STEP2_TEXT2_8} <em>*</em></td>
|
|
|
|
<td><input type="password" name="tfDBpass" id="tfDBpass" class="required" value="{STEP2_VALUE2_8}"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_9} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfDBprivUser"id="tfDBprivUser" class="required" value="{STEP2_VALUE2_9}" size="19"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT2_10} <em>*</em></td>
|
|
|
|
<td><input name="tfDBprivPass" id="tfDBprivPass" class="required" type="password"></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="{INST_VISIBLE}">
|
|
|
|
<td>{STEP2_TEXT2_11}</td>
|
|
|
|
<td><input type="checkbox" name="chbDrop" id="chbDrop" value="1" {STEP2_VALUE2_11}></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="{INST_VISIBLE}">
|
|
|
|
<legend><b>{STEP2_TEXT3_1}</b></legend>
|
|
|
|
<table cellpadding="0" cellspacing="1" border="0">
|
|
|
|
<tr>
|
|
|
|
<td style="width:250px;">{STEP2_TEXT3_2} <em>*</em></td>
|
|
|
|
<td><input type="text" name="tfQLuser" id="tfQLuser" class="required" value="{STEP2_VALUE3_2}" size="15"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT3_3} <em>*</em></td>
|
|
|
|
<td><input type="password" class="required" name="tfQLpass" id="tfQLpass" value="{STEP2_VALUE3_3}" size="15"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT3_4} <em>*</em></td>
|
|
|
|
<td><input type="password" class="required" name="tfQLpassrepeat" id="tfQLpassrepeat" size="15"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="{INST_VISIBLE}">
|
|
|
|
<legend><b>{STEP2_TEXT4_1}</b></legend>
|
|
|
|
<table cellpadding="0" cellspacing="1" border="0">
|
|
|
|
<tr>
|
|
|
|
<td style="width:250px;">{STEP2_TEXT4_2} </td>
|
|
|
|
<td><input type="checkbox" name="chbSample" id="chbSample" value="1" {STEP2_VALUE4_2}></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="{INST_VISIBLE}">
|
|
|
|
<legend><b>{STEP2_TEXT5_1}</b></legend>
|
|
|
|
<table cellpadding="0" cellspacing="1" border="0">
|
|
|
|
<tr>
|
|
|
|
<td style="width:250px;">{STEP2_TEXT5_2}</td>
|
|
|
|
<td><input type="checkbox" name="chbPath" id="chbPath" value="1" {STEP2_VALUE5_2}></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT5_3}</td>
|
|
|
|
<td><input type="text" name="tfQLpath" id="tfQLpath" value="{STEP2_VALUE5_3}" size="15"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{STEP2_TEXT5_4}</td>
|
|
|
|
<td><input type="text" name="tfNagiosPath" id="tfNagiosPath" value="{STEP2_VALUE5_4}" size="15"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" style="padding-top:5px;">{STEP2_TEXT5_5}<br>{STEP2_TEXT5_6}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<br>
|
|
|
|
<div id="install-next">
|
|
|
|
<input type="hidden" name="hidStep" value="3">
|
|
|
|
<img src="images/next.png" onClick="LockButton()" alt="{STEP2_FORM_1}" title="{STEP2_FORM_1}" style="cursor:pointer"><br>{STEP2_FORM_1}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="ie_clearing"> </div>
|