mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-10-01 07:06:27 -04:00
minor bugfix
This commit is contained in:
parent
bb969b1e47
commit
109bbac963
@ -73,7 +73,7 @@ if ($_POST["css"] != "") {
|
|||||||
// do nothing
|
// do nothing
|
||||||
// show settings page
|
// show settings page
|
||||||
} else if ($tsmmonitor->GETVars['qq'] == "settings") {
|
} else if ($tsmmonitor->GETVars['qq'] == "settings") {
|
||||||
$tmonpolld = new PollD($adodb);
|
$tmonpolld = new PollD($adodb, $config["server_os"]);
|
||||||
$tmonpolld->adodb->setDebug($_SESSION["debug"]);
|
$tmonpolld->adodb->setDebug($_SESSION["debug"]);
|
||||||
|
|
||||||
// If start/stop button was pressed
|
// If start/stop button was pressed
|
||||||
@ -84,7 +84,6 @@ if ($_POST["css"] != "") {
|
|||||||
$tmonpolld->controlPollD("off");
|
$tmonpolld->controlPollD("off");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tmonpolld->isEnabled()=="1") {
|
if ($tmonpolld->isEnabled()=="1") {
|
||||||
$polldenabled = "enabled and ".$tmonpolld->getStatus();
|
$polldenabled = "enabled and ".$tmonpolld->getStatus();
|
||||||
//$cellcolor = "green";
|
//$cellcolor = "green";
|
||||||
@ -92,7 +91,6 @@ if ($_POST["css"] != "") {
|
|||||||
$polldenabled = "disabled";
|
$polldenabled = "disabled";
|
||||||
//$cellcolor = "red";
|
//$cellcolor = "red";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<form action=".$_SERVER['PHP_SELF']."?q=".$tsmmonitor->GETVars['qq']."&m=".$tsmmonitor->GETVars['menu']." method='post'>";
|
echo "<form action=".$_SERVER['PHP_SELF']."?q=".$tsmmonitor->GETVars['qq']."&m=".$tsmmonitor->GETVars['menu']." method='post'>";
|
||||||
echo "<table class='zebra'>";
|
echo "<table class='zebra'>";
|
||||||
echo "<tr><th>Configuration</th><th>Action</th><th>Status</th></tr>";
|
echo "<tr><th>Configuration</th><th>Action</th><th>Status</th></tr>";
|
||||||
|
Loading…
Reference in New Issue
Block a user