<?php
/**
 * barcode_decode.php — Valu-Basic
 * Barcode-Lookup ist nur in ValuSafe verfügbar.
 */
require_once __DIR__ . '/db.php';
if (!isLoggedIn()) { header('Location: /login.php'); exit; }

header('Content-Type: application/json');
echo json_encode([
    'success' => false,
    'upgrade' => true,
    'message' => 'Barcode-Lookup ist nur in der Vollversion ValuSafe verfügbar.',
    'upgrade_url' => defined('VALUSAFE_UPGRADE_URL') ? VALUSAFE_UPGRADE_URL : 'https://valusafe.palindrom.de',
]);
