pages/cameras.php
Snapshot 2026.09.17-a2894de (current) · 20 lines · 1,732 bytes · tree · plain text
SHA-256
4281fc8bfd7d7b7a81d580d7d911b514348a0646c9728681e0ba0ec7934920ca| 1 | <?php |
| 2 | require_once __DIR__.'/../inc/layout.php'; |
| 3 | page_header('Cameras','cameras'); |
| 4 | echo '<h1>Cameras</h1><p class="lede">Thermal wildlife detection, monthly fixed-point landscape frames from permanently marked stations, construction time-lapse, and live views. Public framings exclude nest zones and guest areas by design.</p>'; |
| 5 | echo '<p class="note">Cameras on this site are thermal wildlife cameras and, if fitted, an entrance camera. No camera is placed inside any cabin that guests use.</p>'; |
| 6 | $cams=[['th_cluster','Thermal · cabin cluster approach','live'],['th_shore','Thermal · shore meadow','live'], |
| 7 | ['fp_north','Fixed point · north bank (erosion watch)','still'],['fp_mound','Fixed point · bæjarhóll sightline','still'], |
| 8 | ['fp_lagoon','Fixed point · Lárvaðall edge','still'],['tl_construction','Construction time-lapse','timelapse']]; |
| 9 | echo '<div class="grid cols3">'; |
| 10 | foreach($cams as [$code,$label,$kind]){ |
| 11 | $m=db()->prepare("SELECT * FROM media WHERE camera_code=? AND is_public=1 ORDER BY ts DESC LIMIT 1"); $m->execute([$code]); $r=$m->fetch(); |
| 12 | echo '<div class="camtile">'; |
| 13 | echo $r&&is_file(__DIR__.'/../'.$r['path'])?'<img src="'.h($r['path']).'" alt="'.h($label).'" style="width:100%;height:100%;object-fit:cover;border-radius:6px">':'AWAITING FEED'; |
| 14 | echo '<span class="camlabel">'.h($label).'</span>'; |
| 15 | echo '<span class="camlive">'.($r&&!$r['is_placeholder']?'<span class="badge badge-live">LIVE DATA</span>':'<span class="badge badge-ph">PLACEHOLDER DATA</span>').'</span>'; |
| 16 | echo '</div>'; |
| 17 | } |
| 18 | echo '</div><p class="note">Thermal detection event counts feed the wildlife stream; frames land from the on-site relay into the media store with checksums like every other raw file.</p>'; |
| 19 | page_footer(); |
| 20 | |
Lines can be cited as pages/cameras.php L120-L140, platform code 2026.09.17-a2894de; add #L120-L140 to this page's address to highlight them. Source shown for scrutiny of the research platform. All rights reserved. Not offered as installable software.