removing DB opens/closes

This commit is contained in:
Jokob-sk
2023-01-01 12:49:11 +11:00
parent ec32fca3f9
commit b86cbb3a39
11 changed files with 114 additions and 187 deletions

View File

@@ -19,9 +19,6 @@
//------------------------------------------------------------------------------
// Set maximum execution time to 15 seconds
ini_set ('max_execution_time','30');
// Open DB
OpenDB();
// Action functions
if (isset ($_REQUEST['action']) && !empty ($_REQUEST['action'])) {
@@ -64,6 +61,7 @@
}
}
CommitDB();
//------------------------------------------------------------------------------
// Query Device Data
@@ -538,7 +536,7 @@ function ImportCSV() {
}
$db->close();
CommitDB();
}
@@ -939,8 +937,6 @@ function getPholus() {
'Extra' => $row['Extra']);
}
$db->close();
if(count($tableData) == 0)
{
echo "false";