mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-21 12:13:37 +09:00
Minor format changes for readability
This commit is contained in:
1 parent
30d6a180ca
commit
928a449fa4
1 file changed
+21
-5
+21
-5
@@ -74,21 +74,37 @@ function form_save() {
|
||||
}
|
||||
|
||||
function api_networks_remove($network_id){
|
||||
db_execute_prepared('DELETE FROM automation_networks WHERE id = ?', array($network_id));
|
||||
db_execute_prepared('DELETE FROM automation_devices WHERE network_id = ?', array($network_id));
|
||||
db_execute_prepared('DELETE FROM automation_networks
|
||||
WHERE id = ?',
|
||||
array($network_id));
|
||||
|
||||
db_execute_prepared('DELETE FROM automation_devices
|
||||
WHERE network_id = ?',
|
||||
array($network_id));
|
||||
}
|
||||
|
||||
function api_networks_enable($network_id){
|
||||
db_execute_prepared('UPDATE automation_networks SET enabled="on" WHERE id = ?', array($network_id));
|
||||
db_execute_prepared('UPDATE automation_networks
|
||||
SET enabled="on"
|
||||
WHERE id = ?',
|
||||
array($network_id));
|
||||
}
|
||||
|
||||
function api_networks_disable($network_id){
|
||||
db_execute_prepared('UPDATE automation_networks SET enabled="" WHERE id = ?', array($network_id));
|
||||
db_execute_prepared('UPDATE automation_networks
|
||||
SET enabled=""
|
||||
WHERE id = ?',
|
||||
array($network_id));
|
||||
}
|
||||
|
||||
function api_networks_cancel($network_id){
|
||||
db_execute_prepared('UPDATE IGNORE automation_processes SET command="cancel" WHERE task="tmaster" AND network_id = ?', array($network_id));
|
||||
db_execute_prepared('UPDATE IGNORE automation_processes
|
||||
SET command="cancel"
|
||||
WHERE task="tmaster"
|
||||
AND network_id = ?',
|
||||
array($network_id));
|
||||
}
|
||||
|
||||
function api_networks_discover($network_id) {
|
||||
global $config;
|
||||
|
||||
|
||||
Reference in new issue
Block a user