Artifact 42754fd13a7e8eadc2b6771480cb927d288ecdd7ba184724ba3722f2abe71d0c:
- File src/www/admin/acc/reports/graph_plot_all.php — part of check-in [887aedcd78] at 2023-05-30 13:53:25 on branch trunk — Fix query validation (user: bohwaz, size: 358) [annotate] [blame] [check-ins using] [more...]
<?php namespace Garradin; use Garradin\Accounting\Graph; require_once __DIR__ . '/../_inc.php'; $type = $_GET['type'] ?? null; if (!$type) { throw new UserException('Missing type'); } header('Content-Type: image/svg+xml'); $expiry = time() - 30; $hash = sha1('graph_plot_all'); if (!Utils::HTTPCache($hash, $expiry)) { echo Graph::bar($type, []); }