diff --git a/Controller/OperatorStatusController.php b/Controller/OperatorStatusController.php new file mode 100644 index 0000000..de7a4b3 --- /dev/null +++ b/Controller/OperatorStatusController.php @@ -0,0 +1,56 @@ +query->get('code', false); + $online_operators = get_online_operators(); + foreach ($online_operators as $item) { + if ($item['code'] == $opcode) { + $is_online = "true"; + } + } + return new Response($is_online); + } +} diff --git a/Plugin.php b/Plugin.php new file mode 100644 index 0000000..69c2f2d --- /dev/null +++ b/Plugin.php @@ -0,0 +1,51 @@ +