File tree 3 files changed +311
-342
lines changed
3 files changed +311
-342
lines changed Original file line number Diff line number Diff line change 31
31
}
32
32
33
33
34
- if (isset_request_var ('intropage_rename ' )) {
34
+ if (isset_request_var ('intropage_settings ' )) {
35
+
36
+ // dashboard names
35
37
$ number_of_dashboards = read_user_setting ('intropage_number_of_dashboards ' ,1 );
36
38
37
39
for ($ f = 1 ; $ f <= $ number_of_dashboards ; $ f ++) {
44
46
VALUES (?, ?, ?) ' ,
45
47
array ($ _SESSION ['sess_user_id ' ], $ f , $ name ));
46
48
}
49
+
50
+ // panel refresh
51
+ $ panels = db_fetch_assoc_prepared ('SELECT t1.panel_id AS panel_name,t1.id AS id FROM plugin_intropage_panel_data AS t1
52
+ JOIN plugin_intropage_panel_dashboard AS t2
53
+ ON t1.id=t2.panel_id WHERE t2.user_id= ? ' ,
54
+ array ($ _SESSION ['sess_user_id ' ]));
55
+
56
+ if (cacti_sizeof ($ panels )) {
57
+
58
+ foreach ($ panels as $ panel ) {
59
+
60
+ $ interval = get_filter_request_var ('crefresh_ ' .$ panel ['id ' ], FILTER_VALIDATE_INT );
61
+ if ($ interval >= 60 && $ interval <= 999999999 ) {
62
+ db_execute_prepared ('UPDATE plugin_intropage_panel_data
63
+ SET refresh_interval= ?
64
+ WHERE id= ? ' ,
65
+ array ($ interval , $ panel ['id ' ]));
66
+ }
67
+
68
+ }
69
+ }
70
+
47
71
unset_request_var ('intropage_configure ' );
48
72
}
49
73
You can’t perform that action at this time.
0 commit comments