<?php
declare(strict_types=1); $_labels_cache = []; try { $rows = DB::all("SELECT label_key, label_value FROM ui_labels"); foreach ($rows as $r) { $_labels_cache[$r['label_key']] = Crypt::d($r['label_value']); } } catch (\Throwable $e) { } $L = function(string $key, string $fallback = '') use (&$_labels_cache): string { return htmlspecialchars($_labels_cache[$key] ?? $fallback, ENT_QUOTES, 'UTF-8'); }; $Lr = function(string $key, string $fallback = '') use (&$_labels_cache): string { return $_labels_cache[$key] ?? $fallback; };
if (!defined('STORE_ROOT')) { http_response_code(403); exit; }
