8 lines
269 B
PHP
8 lines
269 B
PHP
<?php
|
|
header("Content-Type: text/plain");
|
|
$d = @json_decode(@file_get_contents("/var/www/html/api/nonreg-latest.json"), true);
|
|
$pass = $d["pass"] ?? 0;
|
|
$total = $d["total"] ?? 0;
|
|
$pct = $total > 0 ? round(100 * $pass / $total) : 0;
|
|
echo "NONREG: $pass/$total ($pct%)";
|