Improved installer. Added page to set initial admin password. Added

page to configure and check TSM servers.
This commit is contained in:
Frank Fegert 2009-06-04 22:12:22 +00:00
parent 65322d9858
commit 1cba138b95

View File

@ -29,14 +29,44 @@
*/
include_once "includes/global.php";
if ($_REQUEST["step"] != "50" || $_REQUEST["refresh"] != "") {
if ($_REQUEST["step"] != "80" || $_REQUEST["refresh"] != "") {
include_once "includes/page_head.php";
}
// allow the upgrade script to run for as long as it needs to
// Allow the upgrade script to run for as long as it needs to
ini_set("max_execution_time", "0");
// check if the necessary PHP extensions are loaded
// Some variables and HTML snippets
$input_err = "";
$page_foot = "
</table>
</div>
</body>
</html>";
$error_head = "<p style='font-size: 16px; font-weight: bold; color: red;'>Error</p>";
// Check if the necessary PHP functions are enabled
$funcs = array("popen");
$func_ena = true;
foreach ($funcs as $func) {
if (!function_exists($func)){
$func_ena = false;
$func_miss .= " <li style='font-size: 12px;'>$func</li>\n";
}
}
if (!$func_ena) {
echo $error_head;
echo "
<p style='font-size: 12px;'>The following PHP functions are missing:</p>
<ul>
$func_miss
</ul>
<p style='font-family: Verdana, Arial; font-size: 12px;'>Please enable those PHP functions in your php.ini and retry the installation process.</p>";
echo $page_foot;
exit;
}
// Check if the necessary PHP extensions are loaded
$exts = array("session", "sockets");
$ext_load = true;
foreach ($exts as $ext) {
@ -46,156 +76,255 @@ foreach ($exts as $ext) {
}
}
if (!$ext_load) {
echo $error_head;
echo "
<p style='font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p style='font-size: 12px;'>The following PHP extensions are missing:</p>
<ul>
$ext_miss
</ul>
<p style='font-family: Verdana, Arial; font-size: 12px;'>Please install those PHP extensions and retry the installation process.</p>
</table>
</div>
</body>
</html>";
<p style='font-family: Verdana, Arial; font-size: 12px;'>Please install those PHP extensions and retry the installation process.</p>";
echo $page_foot;
exit;
}
// Try to find current (old) version in the array
$tsm_monitor_versions = array("0.1.0", "0.1.1");
$old_tsm_monitor_version = $adodb->fetchCellDB("select confval from cfg_config where confkey='version'", '');
// try to find current (old) version in the array
$old_tsm_monitor_version = $adodb->fetchCellDB("SELECT confval FROM cfg_config WHERE confkey='version'", '');
$old_version_index = array_search($old_tsm_monitor_version, $tsm_monitor_versions);
// do a version check
// Do a version check
if ($old_tsm_monitor_version == $config["tsm_monitor_version"]) {
echo $error_head;
echo "
<p style='font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p>This installation is already up-to-date. Click <a href='index.php'>here</a> to use TSM Monitor.</p>
</table>
</div>
</body>
</html>";
<p>This installation is already up-to-date. Click <a href='index.php'>here</a> to use TSM Monitor.</p>";
echo $page_foot;
exit;
} elseif (empty($old_tsm_monitor_version)) {
} else if (empty($old_tsm_monitor_version)) {
echo $error_head;
echo "
<p style='font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p>You have created a new database, but have not yet imported the 'tsmmonitor.sql' file. At the command line, execute the following to continue:</p>
<p><pre>mysql -u $db_user -p $db_password < tsmmonitor.sql</pre></p>
<p>This error may also be generated if the TSM Monitor database user does not have correct permissions on the TSM Monitor database.<br>
Please ensure that the TSM Monitor database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the TSM Monitor database.</p>
</table>
</div>
</body>
</html>";
Please ensure that the TSM Monitor database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the TSM Monitor database.</p>";
echo $page_foot;
exit;
}
// dsmadmc binary path
$input["path_dsmadmc"]["name"] = "dsmadmc Binary Path";
$input["path_dsmadmc"]["desc"] = "The path to the TSM admin client binary.";
$which_dsmadmc = $tsmmonitor->findPath("dsmadmc", $config["search_path"]);
if (isset($tsmmonitor->configarray["settings"]["path_dsmadmc"])) {
$input["path_dsmadmc"]["default"] = $tsmmonitor->configarray["settings"]["path_dsmadmc"];
} else if (!empty($which_dsmadmc)) {
$input["path_dsmadmc"]["default"] = $which_dsmadmc;
} else {
$input["path_dsmadmc"]["default"] = "dsmadmc";
}
// php/php5 binary path
$input["path_php"]["name"] = "PHP Binary Path";
$input["path_php"]["desc"] = "The path to the PHP binary.";
$which_php = $tsmmonitor->findPath("php", $config["search_path"]);
if(!isset($which_php)) {
$which_php = $tsmmonitor->findPath("php5", $config["search_path"]);
}
if (isset($tsmmonitor->configarray["settings"]["path_php"])) {
$input["path_php"]["default"] = $tsmmonitor->configarray["settings"]["path_php"];
} else if (!empty($which_php)) {
$input["path_php"]["default"] = $which_php;
} else {
$input["path_php"]["default"] = "php";
}
// logfile path
$input["path_tmlog"]["name"] = "TSM Monitor Logfile Path";
$input["path_tmlog"]["desc"] = "The path to the TSM Monitor log file.";
if (isset($tsmmonitor->configarray["settings"]["path_tmlog"])) {
$input["path_tmlog"]["default"] = $tsmmonitor->configarray["settings"]["path_tmlog"];
} else {
$input["path_tmlog"]["default"] = $config["base_path"] . "tsmmonitor.log";
}
// default for the install type
// Default for the install type
if (!isset($_REQUEST["install_type"])) {
$_REQUEST["install_type"] = 0;
}
// defaults for the install type dropdown
// Defaults for the install type dropdown
if ($old_tsm_monitor_version == "new_install") {
$default_install_type = "10";
} else {
$default_install_type = "20";
}
// pre-processing that needs to be done for each step
// Pre-processing that needs to be done for each step
// Intro and license page
if (empty($_REQUEST["step"])) {
// Unset config data remaining from potential previous calls
unset($_SESSION["install"]);
$_REQUEST["step"] = 10;
} else {
// Install or update chooser
// Install or update chooser page
if ($_REQUEST["step"] == "10") {
$_REQUEST["step"] = "20";
} elseif (($_REQUEST["step"] == "20") && ($_REQUEST["install_type"] == "10")) {
$_REQUEST["step"] = "30";
} elseif (($_REQUEST["step"] == "20") && ($_REQUEST["install_type"] == "20")) {
$_REQUEST["step"] = "40";
// Install
} elseif ($_REQUEST["step"] == "30") {
$_REQUEST["step"] = "50";
// Update
} elseif ($_REQUEST["step"] == "40") {
$_REQUEST["step"] = "50";
} elseif (($_REQUEST["step"] == "50") && ($_POST["refresh"] == "Refresh")) {
$_REQUEST["step"] = "50";
// get (possibly) updated values from the forms
foreach ($input as $name => $array) {
if (isset($_POST[$name])) {
$input[$name]["default"] = $_POST[$name];
}
// Initial admin user password page
elseif ($_REQUEST["step"] == "20") {
if ($_REQUEST["install_type"] == "10") {
$_REQUEST["step"] = "30";
} elseif ($_REQUEST["install_type"] == "20") {
$_REQUEST["step"] = "60";
}
}
// Binary and logfile path page
elseif ($_REQUEST["step"] == "30") {
// Check if passwords are not empty and match
if ($_POST["adminpw"] == "" || $_POST["adminpwr"] == "") {
$input_err = "Empty passwords are not allowed.";
$_REQUEST["step"] = "30";
} else if ($_POST["adminpw"] != $_POST["adminpwr"]) {
$input_err = "Passwords do not match.";
$_REQUEST["step"] = "30";
} else {
$_REQUEST["step"] = "40";
$_SESSION["install"]["adminpw"] = md5($_POST["adminpw"]);
// dsmadmc binary path
$_SESSION["install"]["paths"]["path_dsmadmc"]["name"] = "dsmadmc Binary Path";
$_SESSION["install"]["paths"]["path_dsmadmc"]["desc"] = "The path to the TSM admin client binary.";
$which_dsmadmc = $tsmmonitor->findPath("dsmadmc", $config["search_path"]);
if (isset($tsmmonitor->configarray["settings"]["paths"]["path_dsmadmc"])) {
$_SESSION["install"]["paths"]["path_dsmadmc"]["default"] = $tsmmonitor->configarray["settings"]["path_dsmadmc"];
} else if (!empty($which_dsmadmc)) {
$_SESSION["install"]["paths"]["path_dsmadmc"]["default"] = $which_dsmadmc;
} else {
$_SESSION["install"]["paths"]["path_dsmadmc"]["default"] = "dsmadmc";
}
// php/php5 binary path
$_SESSION["install"]["paths"]["path_php"]["name"] = "PHP Binary Path";
$_SESSION["install"]["paths"]["path_php"]["desc"] = "The path to the PHP binary.";
$which_php = $tsmmonitor->findPath("php", $config["search_path"]);
if(!isset($which_php)) {
$which_php = $tsmmonitor->findPath("php5", $config["search_path"]);
}
if (isset($tsmmonitor->configarray["settings"]["paths"]["path_php"])) {
$_SESSION["install"]["paths"]["path_php"]["default"] = $tsmmonitor->configarray["settings"]["path_php"];
} else if (!empty($which_php)) {
$_SESSION["install"]["paths"]["path_php"]["default"] = $which_php;
} else {
$_SESSION["install"]["paths"]["path_php"]["default"] = "php";
}
// Logfile path
$_SESSION["install"]["paths"]["path_tmlog"]["name"] = "TSM Monitor Logfile Path";
$_SESSION["install"]["paths"]["path_tmlog"]["desc"] = "The path to the TSM Monitor log file.";
if (isset($tsmmonitor->configarray["settings"]["paths"]["path_tmlog"])) {
$_SESSION["install"]["paths"]["path_tmlog"]["default"] = $tsmmonitor->configarray["settings"]["path_tmlog"];
} else {
$_SESSION["install"]["paths"]["path_tmlog"]["default"] = $config["base_path"] . "tsmmonitor.log";
}
}
} elseif ($_REQUEST["step"] == "50") {
$_REQUEST["step"] = "90";
}
// Refresh of binary and logfile path page or server definition page
elseif ($_REQUEST["step"] == "40") {
if ($_POST["refresh"] == "Refresh") {
$_REQUEST["step"] = "40";
} else {
// Get server entries already in db
$sql = "SELECT * FROM cfg_servers";
$srvres = $adodb->fetchArrayDB($sql);
$_REQUEST["step"] = "50";
}
foreach ($_SESSION["install"]["paths"] as $name => $array) {
if (isset($_POST[$name])) {
$_SESSION["install"]["paths"][$name]["default"] = $_POST[$name];
}
}
}
// Refresh/add on server definition page or finish page
elseif ($_REQUEST["step"] == "50") {
// Get server entries already in db
$sql = "SELECT * FROM cfg_servers";
$srvres = $adodb->fetchArrayDB($sql);
if ($_POST["addsrv"] == "Add") {
$_REQUEST["step"] = "50";
// Get (possibly) updated values from the forms
if (isset($_POST)) {
$tmp_err = "";
foreach ($_POST as $key => $val) {
if (ereg("^srv_.*", $key)) {
if (($key == "srv_description") || ($val != "")) {
if ($key == "srv_servername") {
$server[$key] = strtoupper($val);
} else {
$server[$key] = $val;
}
} else {
$tmp_key = ereg_replace("^srv_(.*)", "\\1", $key);
$tmp_err .= " ".(($tmp_key == "ip" ) ? strtoupper($tmp_key) : ucfirst($tmp_key));
}
}
}
if ($tmp_err != "") {
$input_err = "Missing parameter: ".$tmp_err;
}
}
$sql = "SELECT * FROM cfg_servers WHERE servername='".$server['srv_servername']."'";
$srvadd = $adodb->fetchArrayDB($sql);
if (isset($srvadd[0])) {
$input_err = "Server already configured in database.";
}
if ($input_err == "") {
$dsmadmc = $_SESSION["install"]["paths"]["path_dsmadmc"]["default"];
if (file_exists($dsmadmc) && is_executable($dsmadmc)) {
$oh = popen($dsmadmc." -se=".$server['srv_servername']." -id=".$server['srv_username']." -password=".$server['srv_password']." -TCPServeraddress=".$server['srv_ip']." -COMMMethod=TCPIP -TCPPort=".$server['srv_port']." -dataonly=yes -TAB \"SELECT SERVER_HLA,SERVER_LLA FROM status\" ", 'r');
if ($oh != 0) {
while (!feof($oh)) {
$read = fgets($oh, 4096);
if (ereg("^ANS.*", $read)) {
$input_err .= "$read ";
}
}
} else {
$input_err = "Cannot open connection to the TSM server. Check the servername,<br>username, password and the server entries in dsm.sys or dsm.opt.";
}
pclose($oh);
} else {
$input_err = "$dsmadmc not found or not executeable.";
}
if ($input_err == "") {
$_SESSION["install"]["servers"][$server['srv_servername']] = $server;
}
}
} elseif (!isset($_SESSION['install']['servers']) && !isset($srvres[0])) {
$_REQUEST["step"] = "50";
} else {
$_REQUEST["step"] = "80";
}
}
// Update page
elseif ($_REQUEST["step"] == "60") {
$_REQUEST["step"] = "80";
}
// Refresh on php limits page or finish and flush data to db
elseif ($_REQUEST["step"] == "80") {
if ($_POST["refresh"] == "Refresh") {
$_REQUEST["step"] = "80";
} else {
$_REQUEST["step"] = "90";
}
}
}
if ($_REQUEST["step"] == "90") {
// Flush updated data to DB
foreach ($input as $name => $array) {
if (isset($_POST[$name])) {
$adodb->updateDB('cfg_config', array(confkey => "$name", confval => $_POST[$name], description => $array['name']), 'confkey');
foreach ($_SESSION["install"]["paths"] as $name => $array) {
$adodb->updateDB('cfg_config', array(confkey => "$name", confval => $array["default"], description => $array["name"]), 'confkey');
}
if (isset($_SESSION["install"]["servers"])) {
foreach ($_SESSION["install"]["servers"] as $name => $array) {
$sqlcols = array();
$sqlvals = array();
foreach ($array as $col => $val) {
$tmp_col = ereg_replace("^srv_(.*)", "\\1", $col);
$tmp_col = "`".$tmp_col."`";
$tmp_val = "'".$val."'";
array_push($sqlcols, $tmp_col);
array_push($sqlvals, $tmp_val);
}
$sql = "INSERT INTO cfg_servers (".(implode(",", $sqlcols)).") VALUES (".(implode(",", $sqlvals)).")";
$adodb->execDB($sql);
}
}
$adodb->updateDB('cfg_users', array(username => 'admin', password => $_SESSION["install"]["adminpw"]), 'username');
// set new version, disable installer and redirect to login page
$adodb->updateDB('cfg_config', array(confkey => 'version', confval => $config['tsm_monitor_version']), 'confkey');
$adodb->closeDB();
header("Location: index.php");
exit;
} elseif (($_REQUEST["step"] == "40") && ($_REQUEST["install_type"] == "20")) {
// if the version is not found, die
} elseif (($_REQUEST["step"] == "60") && ($_REQUEST["install_type"] == "20")) {
// If the version is not found, die
if (!is_int($old_version_index)) {
echo $error_head;
echo "
<p style='font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p style='font-size: 12px;'>Invalid TSM Monitor version
<strong>$old_tsm_monitor_version</strong>, cannot upgrade to <strong>".$config["tsm_monitor_version"]."</strong>
</p>
</table>
</div>
</body>
</html>";
</p>";
echo $page_foot;
exit;
}
// loop over all versions up to the current and perform incremental updates
// Loop over all versions up to the current and perform incremental updates
for ($i = ($old_version_index+1); $i < count($tsm_monitor_versions); $i++) {
if ($tsm_monitor_versions[$i] == "0.1.0") {
include "install/0_1_0_to_0_1_1.php";
@ -230,7 +359,7 @@ if ($_REQUEST["step"] == "90") {
<table width="100%" border="0">
<tr>
<td colspan="2">
<?php // Installation Step 10
<?php // Installation Step 10 (Greeting)
if ($_REQUEST["step"] == "10") {
?>
@ -270,7 +399,7 @@ if ($_REQUEST["step"] == "90") {
along with TSM Monitor. If not, see
<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.
</p>
<?php // Installation Step 20
<?php // Installation Step 20 (Install/Update select)
} elseif ($_REQUEST["step"] == "20") {
?>
@ -283,24 +412,37 @@ if ($_REQUEST["step"] == "90") {
<option value="20"<?php print ($default_install_type == "20") ? " selected" : "";?>>Upgrade previous version</option>
</select>
</p>
<?php // Installation Step 30
<?php // Installation Step 30 (Admin password)
} elseif ($_REQUEST["step"] == "30") {
?>
<p>
Installation stuff could be done here ...
</p>
<?php // Installation Step 40
} elseif ($_REQUEST["step"] == "40") {
The default administrative TSM Monitor user '<b>admin</b>' needs a initial password.
Please choose a password according to your password policies and enter it below.
The default '<b>admin</b>' user has full rights to the TSM Monitor application, which
is why we recommend using a non-trivial and secure password. Additional users
with less privileges can be created from within TSM Monitor after this install
process is finished.
</p>
<p align="center">
<?php
if ($input_err != "") {
echo "<span style='color:red'><b>ERROR: </b>$input_err</span>";
}
?>
<p>
Upgrade stuff could be done here ...
</p>
<?php // Installation Step 50
} elseif ($_REQUEST["step"] == "50") {
</p>
<table width="90%" align="center" border=0>
<tr class='d0'>
<td>Password</td>
<td><input type='password' name='adminpw'/></td>
</tr>
<tr class='d0'>
<td>Password (repeat)</td>
<td><input type='password' name='adminpwr'/></td>
</tr>
</table>
<?php // Installation Step 40 (Paths)
} elseif ($_REQUEST["step"] == "40") {
?>
<p>
@ -308,8 +450,8 @@ if ($_REQUEST["step"] == "90") {
system and correct if necessary.
</p>
<?php
foreach ($input as $name => $array) {
if (isset($input[$name])) {
foreach ($_SESSION["install"]["paths"] as $name => $array) {
if (isset($_SESSION["install"]["paths"][$name])) {
$file = $array["default"];
$resStr = "";
$capStr = "";
@ -338,19 +480,153 @@ if ($_REQUEST["step"] == "90") {
}
?>
<p>
<strong>NOTE:</strong> Once you click "Finish", the above settings will be
saved "as-is" to the TSM Monitor database. No further validation will be
performed, so please make sure the above settings are correct! Any of the
above settings can later on be changed with the TSM Monitor admin web
interface.
<br>
If you did choose to upgrade from a previous version of TSM Monitor, the
database will also be upgraded by clicking "Finish".
</p>
<?php // Installation Step 50 (Servers)
} elseif ($_REQUEST["step"] == "50") {
?>
<p>
<strong>PHP memory_limit settings</strong>: Default or configured PHP limits
Defined TSM servers in database:
</p>
<table width="90%" align="center" border=0>
<?php
$fields = array();
// Get server entries already in db
$sql = "SHOW COLUMNS FROM cfg_servers";
$srvresth = $adodb->fetchArrayDB($sql);
$th = "<tr>";
foreach ($srvresth as $col) {
if ($col['Field'] != "id") {
if ($col['Field'] == "ip") {
if ((isset($srvres)) && (count($srvres) != 0))
$th .= "<th><b>".strtoupper($col['Field'])."</b></th>";
} else {
if ((isset($srvres)) && (count($srvres) != 0))
$th .= "<th><b>".ucfirst($col['Field'])."</b></th>";
}
$fields[$col['Field']]['type'] = ereg_replace("([a-z]+)\(.*", "\\1", $col['Type']);
$fields[$col['Field']]['len'] = ereg_replace("[a-z]+\(([0-9]+)\)", "\\1", $col['Type']);
}
}
$th .= "</tr>";
echo "$th";
if ((isset($srvres)) && (count($srvres) != 0)) {
foreach ($srvres as $row) {
echo "<tr>";
foreach ($row as $key => $val) {
if ($key != "id") {
if (($key == "libraryclient") || ($key == "default")) {
if ($val == 0 ) {
echo "<td>No</td>";
} else {
echo "<td>Yes</td>";
}
} else {
echo "<td>".$val."</td>";
}
}
}
echo "</tr>";
}
} else {
echo "<td align='center'><span style='color:red'>No TSM server configured in database.</span></td>";
}
?>
</table>
<p>
Defined TSM servers in the installer session cache:
</p>
<table width="90%" align="center" border=0>
<?php
if (is_array($_SESSION["install"]["servers"])) {
echo "$th";
foreach ($_SESSION["install"]["servers"] as $row) {
echo "<tr>";
foreach ($row as $key => $val) {
if ($key != "id") {
if (($key == "srv_libraryclient") || ($key == "srv_default")) {
if ($val == 0 ) {
echo "<td>No</td>";
} else {
echo "<td>Yes</td>";
}
} else {
echo "<td>".$val."</td>";
}
}
}
echo "</tr>";
}
} else {
echo "<td align='center'><span style='color:red'>No TSM server configured in session cache.</span></td>";
}
?>
</table>
<p>
<br>Please define at least one TSM server to be monitored:
</p>
<p align="center">
<?php
if ($input_err != "") {
echo "<span style='color:red'><b>ERROR: </b>$input_err</span>";
}
?>
</p>
<table width="90%" align="center" border=0>
<?php
foreach ($srvresth as $col) {
if ($col['Field'] != "id") {
echo "<tr class='d0'>";
if ($col['Field'] == "ip") {
echo "<td><b>".strtoupper($col['Field'])."</b></td>";
} else {
echo "<td><b>".ucfirst($col['Field'])."</b></td>";
}
if ($input_err != "") {
$value = $_POST["srv_".$col['Field']];
}
if ($col['Field'] == "password") {
echo "<td><input type='password' name='srv_".$col['Field']."' value='".$value."' /></td></tr>";
} elseif (($col['Field'] == "libraryclient") || ($col['Field'] == "default")) {
echo "<td><select name='srv_".$col['Field']."'><option value='0'";
if ($value == 0) {
echo " selected>No</option><option value='1'";
} else {
echo ">No</option><option value='1' selected";
}
echo ">Yes</option></select></td>";
} else {
echo "<td><input type='text' size='".($fields[$col['Field']]['len']+2)."' maxlength='".$fields[$col['Field']]['len']."' name='srv_".$col['Field']."' value='".$value."' /></td></tr>";
}
echo "</tr>";
}
}
?>
</table>
<?php // Installation Step 60 (Updates)
} elseif ($_REQUEST["step"] == "60") {
?>
<p>
Sorry, this is the initial TSM Monitor version, there are currently no
updates from previous versions available. Please choose "New install"
on the previous page.
</p>
<?php // Installation Step 80 (PHP Limits)
} elseif ($_REQUEST["step"] == "80") {
?>
<p>
Default or configured PHP limits
</p>
<p>
<strong>PHP memory_limit settings</strong>:
<table width="90%" align="center" border="0">
<?php
@ -359,20 +635,18 @@ if ($_REQUEST["step"] == "90") {
if ($mem_limit != "") {
$mem_val = ereg_replace("([0-9]*).*", "\\1", $mem_limit);
$mem_unit = ereg_replace("([0-9]*)(.*)", "\\2", $mem_limit);
}
else {
} else {
$mem_val = "unknown";
$mem_unit = "";
}
$php_cli = $input["path_php"]["default"]." -r 'echo ini_get(memory_limit);'";
$php_cli = $_SESSION["install"]["paths"]["path_php"]["default"]." -r 'echo ini_get(memory_limit);'";
$mem_cli_recommend = 64;
$mem_cli_limit = exec("$php_cli");
if ($mem_cli_limit != "") {
$mem_cli_val = ereg_replace("([0-9]*).*", "\\1", $mem_cli_limit);
$mem_cli_unit = ereg_replace("([0-9]*)(.*)", "\\2", $mem_cli_limit);
}
else {
} else {
$mem_cli_val = "unknown";
$mem_cli_unit = "";
}
@ -427,9 +701,18 @@ if ($_REQUEST["step"] == "90") {
match the recommended values shown above and restart your webserver. This
has to be done manually and is not part of the TSM Monitor configuration!
</p>
<?php
}
?>
<p>
<strong>NOTE:</strong> Once you click "Finish", the previous settings will
be saved "as-is" to the TSM Monitor database. No further validation will
be performed, so please make sure the above settings are correct! Any of
the above settings can later on be changed with the TSM Monitor admin web
interface.
<br>
If you did choose to upgrade from a previous version of TSM Monitor, the
database will also be upgraded by clicking "Finish".
</p>
<?php } ?>
</td>
</tr>
@ -437,16 +720,23 @@ if ($_REQUEST["step"] == "90") {
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width=75% align="right">
<td width="95%" align="right">
<p>
<?php if ($_REQUEST["step"] == "50") { ?>
<?php if (($_REQUEST["step"] == "80") || ($_REQUEST["step"] == "40")) { ?>
<input style='display: block; width: auto; background: #eaeaea; margin-bottom: 2px; padding: 3px 30px 3px 30px; color: #000000; font-size: 11px; font-weight: bold; text-decoration: none; border: 1px solid #ffffff;' type="submit" name="refresh" value="Refresh">
<?php } elseif ($_REQUEST["step"] == "50") { ?>
<input style='display: block; width: auto; background: #eaeaea; margin-bottom: 2px; padding: 3px 30px 3px 30px; color: #000000; font-size: 11px; font-weight: bold; text-decoration: none; border: 1px solid #ffffff;' type="submit" name="addsrv" value="Add">
<?php } ?>
</p>
</td>
<td align="right">
<p>
<?php if ($_REQUEST["step"] == "80") { ?>
<input style='display: block; width: auto; background: #eaeaea; margin-bottom: 2px; padding: 3px 30px 3px 30px; color: #000000; font-size: 11px; font-weight: bold; text-decoration: none; border: 1px solid #ffffff;' type="submit" name="finish" value="Finish">
<?php } else { ?>
@ -468,8 +758,4 @@ if ($_REQUEST["step"] == "90") {
</td>
</tr>
<?php include_once "includes/footer.php"; ?>
</table>
</div>
</body>
</html>
<?php echo $page_foot; ?>