mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-12-22 22:06:29 -05:00
cleanups
deletion of dsmerror.log
This commit is contained in:
parent
28e85af0fd
commit
fa2e7dbf5e
@ -107,11 +107,9 @@ if (isset($_SESSION["logindata"]["user"]) && isset($_SESSION["logindata"]["pass"
|
||||
echo "</td></td><td bgcolor=".$cellcolor.">PollD is ".$polldenabled."</td></tr>";
|
||||
echo "</table>";
|
||||
echo "<br><br>";
|
||||
|
||||
|
||||
echo "</form>";
|
||||
} else {
|
||||
|
||||
} else {
|
||||
if ( ($_GET['action'] != "" && ($_GET['action'] == "edit" && $_GET['id'] != "")) || $_POST['Add'] == "Add") {
|
||||
$i = 0;
|
||||
// show Add New Entry Form
|
||||
@ -134,7 +132,7 @@ echo "TEST: ".$col['Field']." -> $colval<br>\n";
|
||||
if ($col['Field'] == "password") {
|
||||
echo "<td><b>".$col['Field']."</b></td><td><input type='password' name='txt".$col['Field']."' value='' /></td></tr>";
|
||||
} else {
|
||||
echo "<td><b>".$col['Field']."</b></td><td><input type='text' name='txt".$col['Field']."' value='' /></td></tr>";
|
||||
echo "<td><b>".$col['Field']."</b></td><td><input type='text' size='50' name='txt".$col['Field']."' value='' /></td></tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -164,7 +162,7 @@ echo "TEST: ".$col['Field']." -> $colval<br>\n";
|
||||
} else if ($keycell == "id") {
|
||||
$id = $valcell;
|
||||
} else {
|
||||
echo "<td><b>".$keycell."</b></td><td><input type='text' name='txt".$keycell."' value='".$valcell."' /></td></tr>";
|
||||
echo "<td><b>".$keycell."</b></td><td><input type='text' size='50' name='txt".$keycell."' value='".$valcell."' /></td></tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -428,9 +428,7 @@ function cleanupDatabase($servername = "", $queryname = "", $overviewqueryname =
|
||||
$tablename = "res_".$query["name"]."_".$server["servername"];
|
||||
if ($hashonly != "yes") {
|
||||
$dropsql = "drop table ".$tablename;
|
||||
echo $dropsql;
|
||||
$bla = $this->fireMySQLQuery($dropsql, TRUE);
|
||||
var_dump($bla);
|
||||
$this->fireMySQLQuery($dropsql, FALSE);
|
||||
}
|
||||
$delsql = "DELETE FROM log_hashes where `tablename` = '".$tablename."'";
|
||||
$this->fireMySQLQuery($delsql, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user