blob: b97d13bda3901b333e7dc321256b4d969ebf9e54 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<?php
2require_once(__DIR__."/../core.php");
3
4if (php_sapi_name() != "cli") {
5 security::notFound();
6 exit();
7}
8
9echo "====================\n";
10echo "generateregistry.php\n";
11echo "====================\n\n";
12
13if (!isset($argc)) {
14 echo "[error] An unexpected error occurred (\$argc is not set).\n";
15 exit();
16}
17
18$time = ($argc > 1 ? (int)$argv[1] : time());
19
20$logId = -1;
21registry::generateNow($time, $logId, false);
22
23echo "[info] Log ID: ".$logId."\n";