Create status.php
authorPatrick McGuire <insidenothing@gmail.com>
Wed, 6 May 2020 05:12:41 +0000 (01:12 -0400)
committerGitHub <noreply@github.com>
Wed, 6 May 2020 05:12:41 +0000 (01:12 -0400)
admin/status.php [new file with mode: 0644]

diff --git a/admin/status.php b/admin/status.php
new file mode 100644 (file)
index 0000000..a0d021b
--- /dev/null
@@ -0,0 +1,13 @@
+<?PHP include_once('../header.php');  ?>
+<meta http-equiv="refresh" content="1">
+  <h1>
+  <?PHP
+  $expected = 4194252;
+  if ($result = $petition->query("SELECT VTRID FROM VoterList")) {
+    $row_cnt = $result->num_rows;
+    $c = $row_cnt / $expected;
+    $p = number_format($c,2)*100;
+    echo date('r').' '.number_format($row_cnt).' out of '.number_format($expected).' '.$p.'% done.';
+} ?>
+</h1>
+<?PHP include_once('../footer.php');  ?>