ajout des commmandes enable/disable hooks

This commit is contained in:
DTux committed 2022-06-13 19:23:22 +02:00
1 parent 413c25c0b7
commit 2b18830b83
2 files changed
+26 -2

No files matched your search

+6 -2
View File
@@ -119,9 +119,13 @@ function apiServer($read)
case "type":
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
//htmlSend($spawn, apiDisplayByType($argList));
/*case "stats":
case "enable":
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
displayStats($spawn, $argList);*/
htmlSend($spawn, apiHookActive($argList, true));
break;
case "disable":
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);
htmlSend($spawn, apiHookActive($argList, false));
break;
case "verbose":
logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__);