From 898b52edcb47bcb3e9d6106e74ca73e74ea01e70 Mon Sep 17 00:00:00 2001 From: sillylaird Date: Thu, 3 Sep 2026 00:33:59 +0000 Subject: import live www.sillylaird.ca webroot --- vibe/index.php | 295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 vibe/index.php (limited to 'vibe/index.php') diff --git a/vibe/index.php b/vibe/index.php new file mode 100644 index 0000000..7128a7a --- /dev/null +++ b/vibe/index.php @@ -0,0 +1,295 @@ + '', 'url' => '', 'updated' => '']; + +$desc = htmlspecialchars($vibe['description'] ?? '', ENT_QUOTES, 'UTF-8'); +$url = $vibe['url'] ?? ''; +$updated = htmlspecialchars($vibe['updated'] ?? '', ENT_QUOTES, 'UTF-8'); +$safe = htmlspecialchars($url, ENT_QUOTES, 'UTF-8'); + +function vibe_page_type(string $u): string { + if (empty($u)) return 'none'; + $p = strtolower(parse_url($u, PHP_URL_PATH) ?? ''); + $ext = pathinfo($p, PATHINFO_EXTENSION); + if (in_array($ext, ['jpg','jpeg','png','gif','webp','bmp','svg','avif'])) return 'image'; + if (in_array($ext, ['mp4','webm','ogv','mov'])) return 'video'; + if (in_array($ext, ['mp3','flac','wav','ogg','aac','opus','m4a'])) return 'audio'; + if (preg_match('/(?:youtube\.com\/watch\?.*v=|youtu\.be\/)([A-Za-z0-9_-]{11})/', $u, $m)) return 'youtube:' . $m[1]; + if (preg_match('/vimeo\.com\/(\d+)/', $u, $m)) return 'vimeo:' . $m[1]; + return 'link'; +} + +$type = vibe_page_type($url); +?> + + + + + + Current Vibe — SillyLaird + 'en', + 'title' => 'Current Vibe — SillyLaird', + 'desc' => ($vibe['description'] ?? '') !== '' ? $vibe['description'] : "What I'm vibing with right now.", + 'base' => 'vibe/index', + 'self_url' => 'https://www.sillylaird.ca/vibe/', + 'en_url' => 'https://www.sillylaird.ca/vibe/', + 'ja_url' => 'https://www.sillylaird.ca/vibe/', + 'zh_url' => 'https://www.sillylaird.ca/vibe/', + 'x_default' => 'https://www.sillylaird.ca/vibe/', + ]; + include __DIR__ . '/../partials/head_meta.php'; +?> + + + + + + +
+
+ current vibe + + + +
+ + +
// nothing set
+ + +
+ + + <?= $desc ?: 'Current vibe' ?> + + + + + + + + + +
+ +
+ + +
+ +
+ + + + +
+ + +
+ +

+ + +

+ +
+ + + +
+ +

← sillylaird.ca

+ + + -- cgit v1.2.3