<?php
include('config.php');
$informations = $db->table('settings')->where('id', '=', 1)->get();
if ($informations['total_count'] == '0') {
m_redirect(ADMIN_URL);
}
$info = $informations['data'][0];
// Döviz kuru bilgilerini JSON formatında döndür
header('Content-Type: application/json');
echo json_encode([
'usd_try' => $info['usd_try'],
'eur_try' => $info['eur_try']
]);
?>