You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/web/monitor/show_log.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@
101
101
102
102
103
103
/* fetch the Data from the DB */
104
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = '" . $app->db->quote($logId) . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
104
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = '" . $app->dbmaster->quote($logId) . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
@@ -210,7 +210,7 @@ function _processDbState($type, $serverId, &$serverState, &$messages)
210
210
* state
211
211
*/
212
212
// get the State from the DB
213
-
$record = $app->db->queryOneRecord("SELECT state FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $serverId . " order by created desc");
213
+
$record = $app->dbmaster->queryOneRecord("SELECT state FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $serverId . " order by created desc");
Copy file name to clipboardExpand all lines: interface/web/monitor/tools.inc.php
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ function showServerLoad(){
30
30
global$app;
31
31
32
32
/* fetch the Data from the DB */
33
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'server_load' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
33
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'server_load' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
34
34
35
35
if(isset($record['data'])) {
36
36
$data = unserialize($record['data']);
@@ -76,7 +76,7 @@ function showDiskUsage () {
76
76
global$app;
77
77
78
78
/* fetch the Data from the DB */
79
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'disk_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
79
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'disk_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
80
80
81
81
if(isset($record['data'])) {
82
82
$data = unserialize($record['data']);
@@ -119,7 +119,7 @@ function showMemUsage ()
119
119
global$app;
120
120
121
121
/* fetch the Data from the DB */
122
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mem_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
122
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mem_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
123
123
124
124
if(isset($record['data'])) {
125
125
$data = unserialize($record['data']);
@@ -155,7 +155,7 @@ function showCpuInfo ()
155
155
global$app;
156
156
157
157
/* fetch the Data from the DB */
158
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'cpu_info' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
158
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'cpu_info' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
159
159
160
160
if(isset($record['data'])) {
161
161
$data = unserialize($record['data']);
@@ -189,7 +189,7 @@ function showServices ()
189
189
global$app;
190
190
191
191
/* fetch the Data from the DB */
192
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'services' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
192
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'services' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
193
193
194
194
if(isset($record['data'])) {
195
195
$data = unserialize($record['data']);
@@ -302,7 +302,7 @@ function showSystemUpdate()
302
302
global$app;
303
303
304
304
/* fetch the Data from the DB */
305
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'system_update' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
305
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'system_update' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
306
306
307
307
if(isset($record['data'])) {
308
308
$html =
@@ -332,7 +332,7 @@ function showRaidState()
332
332
global$app;
333
333
334
334
/* fetch the Data from the DB */
335
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'raid_state' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
335
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'raid_state' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
336
336
337
337
if(isset($record['data'])) {
338
338
$html =
@@ -364,7 +364,7 @@ function showRKHunter()
364
364
global$app;
365
365
366
366
/* fetch the Data from the DB */
367
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'rkhunter' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
367
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'rkhunter' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
368
368
369
369
if(isset($record['data'])) {
370
370
$html =
@@ -396,7 +396,7 @@ function showMailq()
396
396
global$app;
397
397
398
398
/* fetch the Data from the DB */
399
-
$record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mailq' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
399
+
$record = $app->dbmaster->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mailq' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
400
400
401
401
if(isset($record['data'])) {
402
402
$data = unserialize($record['data']);
@@ -412,7 +412,7 @@ function getDataTime($type) {
412
412
global$app;
413
413
414
414
/* fetch the Data from the DB */
415
-
$record = $app->db->queryOneRecord("SELECT created FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
415
+
$record = $app->dbmaster->queryOneRecord("SELECT created FROM monitor_data WHERE type = '" . $type . "' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc");
0 commit comments