diff --git a/broadcast/index.frm.php b/broadcast/index.frm.php index 1509b10..d69e6d4 100644 --- a/broadcast/index.frm.php +++ b/broadcast/index.frm.php @@ -19,6 +19,7 @@ 伊地知ニジカ放送局 - ニジカ返答ログ + diff --git a/broadcast/index.php b/broadcast/index.php index 67438a0..90544aa 100644 --- a/broadcast/index.php +++ b/broadcast/index.php @@ -7,6 +7,11 @@ const LOG_PATH = './log.txt'; $log_data = []; +exec ("(ps -Af | grep -e '^miteruzo' | grep 'python3 main.py') && (ps -Af | grep -e '^miteruzo' | grep 'obs')", + $output, $exit_code); +$available = $exit_code === 0; +unset ($output, $exit_code); + $page = (int) ($_GET['p'] ?? 1); $length = (int) ($_GET['max'] ?? 20); $asc = ($_GET['asc'] ?? 0) != 0;