Imported Upstream version 3.4.0
This commit is contained in:
88
install/templates/index.htm.tpl
Normal file
88
install/templates/index.htm.tpl
Normal file
@@ -0,0 +1,88 @@
|
||||
<!-- (c) 2005-2018 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer main template -->
|
||||
<!-- Website : https://sourceforge.net/projects/nagiosql/ -->
|
||||
<!-- Version : 3.4.0 -->
|
||||
<!-- GIT Repo : https://gitlab.com/wizonet/NagiosQL -->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>{PAGETITLE}</title>
|
||||
<link href="css/install.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="page_margins">
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
<div id="header-logo">
|
||||
<a href="index.php"><img src="images/nagiosql.png" border="0" alt="NagiosQL"></a>
|
||||
</div>
|
||||
<div id="documentation">
|
||||
<a href='https://sourceforge.net/projects/nagiosql/files/nagiosql/Documentation/' target='_blank'>{NAGIOS_FAQ}</a>
|
||||
</div>
|
||||
<div id="langselector">
|
||||
<form action="" name="frmLanguage" id="frmLanguage" method="post">
|
||||
{LANGUAGE} :
|
||||
<select title="{LANGUAGE}" name="selLanguage" onchange="document.frmLanguage.submit();">
|
||||
{LANG_OPTION}
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div id="indexmain">
|
||||
<div id="indexmain_content">
|
||||
<h1>{MAIN_TITLE}</h1>
|
||||
<div style="text-align: center;">{TEXT_PART_1}<br>{TEXT_PART_2}<a href="https://sourceforge.net/projects/nagiosql/" target="_blank">NagiosQL @ Sourceforge</a></div>
|
||||
<p><div style="text-align: center;"><strong>{TEXT_PART_9}</strong></div>
|
||||
<br>
|
||||
<p>{TEXT_PART_3}</p>
|
||||
<p>{TEXT_PART_4}</p>
|
||||
<ul>
|
||||
<li>{TEXT_PART_5}</li>
|
||||
<ul>
|
||||
<li>{TEXT_PHP_REQ_1}</li>
|
||||
<li>{TEXT_PHP_REQ_2}</li>
|
||||
<li>{TEXT_PHP_REQ_3}</li>
|
||||
<li>{TEXT_PHP_REQ_6}</li>
|
||||
<li>{TEXT_PHP_REQ_8}</li>
|
||||
<li>{TEXT_PHP_REQ_10}</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>{TEXT_PART_6}</li>
|
||||
<ul>
|
||||
<li>{TEXT_INI_REQ_1}</li>
|
||||
<li>{TEXT_INI_REQ_2}</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>{TEXT_PART_7}</li>
|
||||
<li>{TEXT_PART_8}</li>
|
||||
</ul>
|
||||
{UPDATE_ERROR}
|
||||
<form name="frmInstall" id="frmInstall" action="install.php" method="post">
|
||||
<input type="hidden" name="hidLocale" value="{LOCALE}">
|
||||
<input type="hidden" name="hidStep" value="1">
|
||||
<input type="hidden" name="hidJScript" value="">
|
||||
<p><input type="submit" name="butNewInstall" id="butNewInstall" value="{NEW_INSTALLATION}" {DISABLE_NEW}>
|
||||
<input type="submit" name="butUpgrade" id="butUpgrade" value="{UPDATE}" {DISABLE_UPDATE}></p>
|
||||
<p><a href='https://sourceforge.net/projects/nagiosql/files/nagiosql/Documentation/' target='_blank'>{ONLINE_DOC}</a></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<a href='https://sourceforge.net/projects/nagiosql/' target='_blank'>NagiosQL</a> <?php echo BASE_VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="">
|
||||
<!--
|
||||
document.frmInstall.hidJScript.value = 'yes';
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,90 +0,0 @@
|
||||
<!-- (c) 2005-2017 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer main template -->
|
||||
<!-- Website : http://www.nagiosql.org -->
|
||||
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
||||
<!-- Author : $LastChangedBy: martin $ -->
|
||||
<!-- Version : 3.3.0 -->
|
||||
<!-- Revision : $LastChangedRevision: 2 $ -->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>{PAGETITLE}</title>
|
||||
<link href="css/install.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="page_margins">
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
<div id="header-logo">
|
||||
<a href="index.php"><img src="images/nagiosql.png" border="0" alt="NagiosQL"></a>
|
||||
</div>
|
||||
<div id="documentation">
|
||||
<a href='http://www.nagiosql.org/documentation.html' target='_blank'>{NAGIOS_FAQ}</a>
|
||||
</div>
|
||||
<div id="langselector">
|
||||
<form action="" name="frmLanguage" id="frmLanguage" method="post">
|
||||
{LANGUAGE} :
|
||||
<select name="selLanguage" onchange="document.frmLanguage.submit();">
|
||||
{LANG_OPTION}
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div id="indexmain">
|
||||
<div id="indexmain_content">
|
||||
<h1>{MAIN_TITLE}</h1>
|
||||
<center>{TEXT_PART_1}<br>{TEXT_PART_2}<a href="http://www.nagiosql.org" target="_blank">www.nagiosql.org</a></center>
|
||||
<p><center><b>{TEXT_PART_9}</b></center></p>
|
||||
<br>
|
||||
<p>{TEXT_PART_3}</p>
|
||||
<p>{TEXT_PART_4}</p>
|
||||
<ul>
|
||||
<li>{TEXT_PART_5}</li>
|
||||
<ul>
|
||||
<li>{TEXT_PHP_REQ_1}</li>
|
||||
<li>{TEXT_PHP_REQ_2}</li>
|
||||
<li>{TEXT_PHP_REQ_3}</li>
|
||||
<li>{TEXT_PHP_REQ_6}</li>
|
||||
<li>{TEXT_PHP_REQ_8}</li>
|
||||
<li>{TEXT_PHP_REQ_10}</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>{TEXT_PART_6}</li>
|
||||
<ul>
|
||||
<li>{TEXT_INI_REQ_1}</li>
|
||||
<li>{TEXT_INI_REQ_2}</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>{TEXT_PART_7}</li>
|
||||
<li>{TEXT_PART_8}</li>
|
||||
</ul>
|
||||
{UPDATE_ERROR}
|
||||
<form name="frmInstall" id="frmInstall" action="install.php" method="post">
|
||||
<input type="hidden" name="hidLocale" value="{LOCALE}">
|
||||
<input type="hidden" name="hidStep" value="1">
|
||||
<input type="hidden" name="hidJScript" value="">
|
||||
<p><input type="submit" name="butNewInstall" id="butNewInstall" value="{NEW_INSTALLATION}" {DISABLE_NEW}>
|
||||
<input type="submit" name="butUpgrade" id="butUpgrade" value="{UPDATE}" {DISABLE_UPDATE}></p>
|
||||
<p><a href='http://www.nagiosql.org/documentation.html' target='_blank'>{ONLINE_DOC}</a></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<a href='http://www.nagiosql.org' target='_blank'>NagiosQL</a> <?php echo BASE_VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
document.frmInstall.hidJScript.value = 'yes';
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
35
install/templates/install.htm.tpl
Normal file
35
install/templates/install.htm.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
<!-- (c) 2005-2018 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template -->
|
||||
<!-- Website : https://sourceforge.net/projects/nagiosql/ -->
|
||||
<!-- Version : 3.4.0 -->
|
||||
<!-- GIT Repo : https://gitlab.com/wizonet/NagiosQL -->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>{PAGETITLE}</title>
|
||||
<link href="css/install.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="page_margins">
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
<div id="header-logo">
|
||||
<a href="index.php"><img src="images/nagiosql.png" border="0" alt="NagiosQL Logo" title="NagiosQL Logo"></a>
|
||||
</div>
|
||||
<div id="documentation">
|
||||
<a href="https://sourceforge.net/projects/nagiosql/faq.html" target="_blank"><?php echo translate("Online Documentation"); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
{CONTENT}
|
||||
</div>
|
||||
<div id="footer">
|
||||
<a href='https://sourceforge.net/projects/nagiosql/' target='_blank'>NagiosQL</a> <?php echo BASE_VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,37 +0,0 @@
|
||||
<!-- (c) 2005-2017 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template -->
|
||||
<!-- Website : http://www.nagiosql.org -->
|
||||
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
||||
<!-- Author : $LastChangedBy: martin $ -->
|
||||
<!-- Version : 3.3.0 -->
|
||||
<!-- Revision : $LastChangedRevision: 2 $ -->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>{PAGETITLE}</title>
|
||||
<link href="css/install.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="page_margins">
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
<div id="header-logo">
|
||||
<a href="index.php"><img src="images/nagiosql.png" border="0" alt="NagiosQL Logo" title="NagiosQL Logo"></a>
|
||||
</div>
|
||||
<div id="documentation">
|
||||
<a href="http://www.nagiosql.org/faq.html" target="_blank"><?php echo translate("Online Documentation"); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
{CONTENT}
|
||||
</div>
|
||||
<div id="footer">
|
||||
<a href='http://www.nagiosql.org' target='_blank'>NagiosQL</a> <?php echo BASE_VERSION; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,12 +1,10 @@
|
||||
<!-- (c) 2005-2017 by Martin Willisegger -->
|
||||
<!-- (c) 2005-2018 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template -->
|
||||
<!-- Website : http://www.nagiosql.org -->
|
||||
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
||||
<!-- Author : $LastChangedBy: martin $ -->
|
||||
<!-- Version : 3.3.0 -->
|
||||
<!-- Revision : $LastChangedRevision: 2 $ -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template - step 1 -->
|
||||
<!-- Website : https://sourceforge.net/projects/nagiosql/ -->
|
||||
<!-- Version : 3.4.0 -->
|
||||
<!-- GIT Repo : https://gitlab.com/wizonet/NagiosQL -->
|
||||
<div id="installmenu">
|
||||
<div id="installmenu_content">
|
||||
<p class="step1_active"><br><br>{STEP1_BOX}</p>
|
||||
@@ -15,8 +13,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="installmain">
|
||||
<div id="installmain_content">
|
||||
<h1>{STEP1_TITLE}</h1>
|
||||
<div id="installmain_content">
|
||||
<h1>{STEP1_TITLE}</h1>
|
||||
<h3>{STEP1_SUBTITLE1}</h3>
|
||||
<img src='images/{CHECK_1_PIC}.png' alt='{CHECK_1_PIC}' title='{CHECK_1_PIC}' class='textmiddle'> Javascript: <span class='{CHECK_1_CLASS}'>{CHECK_1_VALUE}</span>{CHECK_1_INFO}
|
||||
<h3>{STEP1_SUBTITLE2}</h3>
|
||||
@@ -45,16 +43,16 @@
|
||||
{MESSAGE}
|
||||
<br>
|
||||
<div id="{DIV_ID}">
|
||||
<form name="frmStep1" id="frmStep1" action="install.php" method="post">
|
||||
<input type="hidden" name="hidJScript" value="">
|
||||
{FORM_CONTENT}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<form name="frmStep1" id="frmStep1" action="install.php" method="post">
|
||||
<input type="hidden" name="hidJScript" value="">
|
||||
{FORM_CONTENT}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
document.frmStep1.hidJScript.value = 'yes';
|
||||
//-->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
document.frmStep1.hidJScript.value = 'yes';
|
||||
//-->
|
||||
</script>
|
||||
<div id="ie_clearing"> </div>
|
||||
172
install/templates/step2.htm.tpl
Normal file
172
install/templates/step2.htm.tpl
Normal file
@@ -0,0 +1,172 @@
|
||||
<!-- (c) 2005-2018 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template - step 2 -->
|
||||
<!-- Website : https://sourceforge.net/projects/nagiosql/ -->
|
||||
<!-- Version : 3.4.0 -->
|
||||
<!-- GIT Repo : https://gitlab.com/wizonet/NagiosQL -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// Send form
|
||||
/**
|
||||
* @return {boolean}
|
||||
*/
|
||||
function LockButton() {
|
||||
if (checkForm() === false) {
|
||||
return false;
|
||||
} else {
|
||||
// Submit form
|
||||
document.frmSetup.submit();
|
||||
}
|
||||
}
|
||||
// Check form entries
|
||||
function checkForm() {
|
||||
// Are all required fields filled in?
|
||||
const fields = "tfDBserver,tfLocalSrv,tfDBport,tfDBname,tfDBuser,tfDBpass{INSTALL_FIELDS}";
|
||||
const form = document.frmSetup;
|
||||
const ar_field = fields.split(",");
|
||||
for (let i=0;i<ar_field.length;i++){
|
||||
if (form[ar_field[i]].value === "") {
|
||||
alert("{FIELDS_MESSAGE}");
|
||||
form[ar_field[i]].focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (form.tfQLpass.value !== form.tfQLpassrepeat.value) {
|
||||
alert("PASSWORD_MESSAGE");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// 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 = '';
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</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>
|
||||
<td style="width:250px;">{STEP2_TEXT2_2} <em>*</em></td>
|
||||
<td>
|
||||
<select title="{STEP2_TEXT2_2}" name="selDBtype" id="selDBtype" class="required" onchange="modifyPort(this.value);">
|
||||
{STEP2_VALUE2_2}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT2_3} <em>*</em></td>
|
||||
<td><input title="{STEP2_TEXT2_3}" type="text" name="tfDBserver" id="tfDBserver" class="required" value="{STEP2_VALUE2_3}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT2_4} <em>*</em></td>
|
||||
<td><input title="{STEP2_TEXT2_4}" type="text" name="tfLocalSrv" id="tfLocalSrv" class="required" value="{STEP2_VALUE2_4}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT2_5} <em>*</em></td>
|
||||
<td><input title="{STEP2_TEXT2_5}" type="text" name="tfDBport" id="tfDBport" class="required" value="{STEP2_VALUE2_5}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT2_6} <em>*</em></td>
|
||||
<td><input title="{STEP2_TEXT2_6}" 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 title="{STEP2_TEXT2_7}" 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 title="{STEP2_TEXT2_8}" type="password" name="tfDBpass" id="tfDBpass" class="required" value="{STEP2_VALUE2_8}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT2_9} <em>*</em></td>
|
||||
<td><input title="{STEP2_TEXT2_9}" 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 title="{STEP2_TEXT2_10}" name="tfDBprivPass" id="tfDBprivPass" class="required" type="password"></td>
|
||||
</tr>
|
||||
<tr class="{INST_VISIBLE}">
|
||||
<td>{STEP2_TEXT2_11}</td>
|
||||
<td><input title="{STEP2_TEXT2_11}" 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 title="{STEP2_TEXT3_2}" 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 title="{STEP2_TEXT3_3}" 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 title="{STEP2_TEXT3_4}" 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 title="{STEP2_TEXT4_2}" 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 title="{STEP2_TEXT5_2}" type="checkbox" name="chbPath" id="chbPath" value="1" {STEP2_VALUE5_2}></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT5_3}</td>
|
||||
<td><input title="{STEP2_TEXT5_3}" type="text" name="tfQLpath" id="tfQLpath" value="{STEP2_VALUE5_3}" size="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{STEP2_TEXT5_4}</td>
|
||||
<td><input title="{STEP2_TEXT5_4}" 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>
|
||||
@@ -1,174 +0,0 @@
|
||||
<!-- (c) 2005-2017 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template -->
|
||||
<!-- Website : http://www.nagiosql.org -->
|
||||
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
||||
<!-- Author : $LastChangedBy: martin $ -->
|
||||
<!-- Version : 3.3.0 -->
|
||||
<!-- Revision : $LastChangedRevision: 2 $ -->
|
||||
<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;
|
||||
}
|
||||
// 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 = '';
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</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>
|
||||
<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>
|
||||
</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>
|
||||
88
install/templates/step3.htm.tpl
Normal file
88
install/templates/step3.htm.tpl
Normal file
@@ -0,0 +1,88 @@
|
||||
<!-- (c) 2005-2018 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template - step 3 -->
|
||||
<!-- Website : https://sourceforge.net/projects/nagiosql/ -->
|
||||
<!-- Version : 3.4.0 -->
|
||||
<!-- GIT Repo : https://gitlab.com/wizonet/NagiosQL -->
|
||||
<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'><a href='install.php?step=2'><br><br>{STEP2_BOX}</a></p>
|
||||
<p class='step3_active'><br><br>{STEP3_BOX}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="installmain">
|
||||
<div id="installmain_content">
|
||||
<h1>{STEP3_TITLE}</h1>
|
||||
<form name="frmSetup" id="frmSetup" action="install.php" method="post" class="cmxform">
|
||||
<fieldset>
|
||||
<legend><b>{STEP3_SUB_TITLE}</b></legend>
|
||||
{ERRORMESSAGE}
|
||||
<table cellpadding="0" cellspacing="1" border="0" class="{INST_VISIBLE}">
|
||||
<tr class="{STEP3_TEXT_02_SHOW}">
|
||||
<td valign="top" style="width:350px;"><label>{STEP3_TEXT_01}</label></td>
|
||||
<td>{STEP3_TEXT_02}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_03_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_03}</label></td>
|
||||
<td>{STEP3_TEXT_04}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_05_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_05}</label></td>
|
||||
<td>{STEP3_TEXT_06}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_07_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_07}</label></td>
|
||||
<td>{STEP3_TEXT_08}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_09_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_09}</label></td>
|
||||
<td>{STEP3_TEXT_10}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_11_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_11}</label></td>
|
||||
<td>{STEP3_TEXT_12}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_13_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_13}</label></td>
|
||||
<td>{STEP3_TEXT_14}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_15_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_15}</label></td>
|
||||
<td>{STEP3_TEXT_16}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_17_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_17}</label></td>
|
||||
<td>{STEP3_TEXT_18}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<br>
|
||||
<fieldset class="{STEP4_VISIBLE}">
|
||||
<legend><b>{STEP4_SUB_TITLE}</b></legend>
|
||||
<table cellpadding="0" cellspacing="1" border="0" class="{STEP4_VISIBLE}">
|
||||
<tr>
|
||||
<td valign="top" style="width:350px;"><label>{STEP4_TEXT_01}</label></td>
|
||||
<td>{STEP4_TEXT_02}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_03_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_03}</label></td>
|
||||
<td>{STEP4_TEXT_04}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_05_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_05}</label></td>
|
||||
<td>{STEP4_TEXT_06}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_07_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_07}</label></td>
|
||||
<td>{STEP4_TEXT_08}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<p style="color:red; font-weight:bold;">{INFO_TEXT}</p>
|
||||
{BUTTON}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ie_clearing"> </div>
|
||||
@@ -1,90 +0,0 @@
|
||||
<!-- (c) 2005-2017 by Martin Willisegger -->
|
||||
<!-- -->
|
||||
<!-- Project : NagiosQL -->
|
||||
<!-- Component : Installer template -->
|
||||
<!-- Website : http://www.nagiosql.org -->
|
||||
<!-- Date : $LastChangedDate: 2017-06-22 09:29:35 +0200 (Thu, 22 Jun 2017) $ -->
|
||||
<!-- Author : $LastChangedBy: martin $ -->
|
||||
<!-- Version : 3.3.0 -->
|
||||
<!-- Revision : $LastChangedRevision: 2 $ -->
|
||||
<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'><a href='install.php?step=2'><br><br>{STEP2_BOX}</a></p>
|
||||
<p class='step3_active'><br><br>{STEP3_BOX}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="installmain">
|
||||
<div id="installmain_content">
|
||||
<h1>{STEP3_TITLE}</h1>
|
||||
<form name="frmSetup" id="frmSetup" action="install.php" method="post" class="cmxform">
|
||||
<fieldset>
|
||||
<legend><b>{STEP3_SUB_TITLE}</b></legend>
|
||||
{ERRORMESSAGE}
|
||||
<table cellpadding="0" cellspacing="1" border="0" class="{INST_VISIBLE}">
|
||||
<tr class="{STEP3_TEXT_02_SHOW}">
|
||||
<td valign="top" style="width:350px;"><label>{STEP3_TEXT_01}</label></td>
|
||||
<td>{STEP3_TEXT_02}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_03_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_03}</label></td>
|
||||
<td>{STEP3_TEXT_04}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_05_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_05}</label></td>
|
||||
<td>{STEP3_TEXT_06}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_07_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_07}</label></td>
|
||||
<td>{STEP3_TEXT_08}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_09_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_09}</label></td>
|
||||
<td>{STEP3_TEXT_10}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_11_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_11}</label></td>
|
||||
<td>{STEP3_TEXT_12}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_13_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_13}</label></td>
|
||||
<td>{STEP3_TEXT_14}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_15_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_15}</label></td>
|
||||
<td>{STEP3_TEXT_16}</td>
|
||||
</tr>
|
||||
<tr class="{STEP3_TEXT_17_SHOW}">
|
||||
<td valign="top"><label>{STEP3_TEXT_17}</label></td>
|
||||
<td>{STEP3_TEXT_18}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<br>
|
||||
<fieldset class="{STEP4_VISIBLE}">
|
||||
<legend><b>{STEP4_SUB_TITLE}</b></legend>
|
||||
<table cellpadding="0" cellspacing="1" border="0" class="{STEP4_VISIBLE}">
|
||||
<tr>
|
||||
<td valign="top" style="width:350px;"><label>{STEP4_TEXT_01}</label></td>
|
||||
<td>{STEP4_TEXT_02}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_03_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_03}</label></td>
|
||||
<td>{STEP4_TEXT_04}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_05_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_05}</label></td>
|
||||
<td>{STEP4_TEXT_06}</td>
|
||||
</tr>
|
||||
<tr class="{STEP4_TEXT_07_SHOW}">
|
||||
<td valign="top"><label>{STEP4_TEXT_07}</label></td>
|
||||
<td>{STEP4_TEXT_08}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<p style="color:red; font-weight:bold;">{INFO_TEXT}</p>
|
||||
{BUTTON}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ie_clearing"> </div>
|
||||
Reference in New Issue
Block a user