mirror of
https://github.com/holo-gfx/mangadex.git
synced 2024-11-28 21:38:22 -05:00
21 lines
484 B
PHP
21 lines
484 B
PHP
<?php
|
|
$x = [];
|
|
$y = [];
|
|
foreach ($templateVar['stats'] as $value) {
|
|
$x[] = $value['date'];
|
|
$y[] = $value['users'];
|
|
}
|
|
?>
|
|
|
|
<canvas id="registrations_graph" data-x='<?= json_encode($x) ?>' data-y="<?= json_encode($y) ?>"></canvas>
|
|
|
|
<?php
|
|
[$total_hits, $tachi_hits] = $templateVar['memcached']->get("chapter_hits") ?: [0, 0];
|
|
?>
|
|
<div>
|
|
Total chapter API hits: <?= $total_hits ?>
|
|
</div>
|
|
<div>
|
|
Tachiyomi hits: <?= $tachi_hits ?> (<?= round($tachi_hits / $total_hits * 100) ?>%)
|
|
</div>
|