<?php
// currency.php
// NOTE: db.php must already be included before this file.

if (!isset($currency)) {
    $__cur = $conn->query("SELECT key_value FROM settings WHERE key_name='currency_symbol' LIMIT 1");
    $__row = $__cur ? $__cur->fetch_assoc() : null;
    $currency = $__row['key_value'] ?? '$';
}