落ち確認
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
|
<title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<input type="hidden" id="available" value="<?= $available ? '1' : '0' ?>" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ const LOG_PATH = './log.txt';
|
|||||||
|
|
||||||
$log_data = [];
|
$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);
|
$page = (int) ($_GET['p'] ?? 1);
|
||||||
$length = (int) ($_GET['max'] ?? 20);
|
$length = (int) ($_GET['max'] ?? 20);
|
||||||
$asc = ($_GET['asc'] ?? 0) != 0;
|
$asc = ($_GET['asc'] ?? 0) != 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user