mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
removing DB opens/closes
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user