<?php
$siteRoot = __DIR__ . '/..';
$settings = ugfx_read_json($siteRoot . '/data/settings.json', []);
$ugfx = [
    'site_name' => $settings['site_name'] ?? 'Underground FX Radio',
    'tagline' => $settings['tagline'] ?? 'Premium underground sound with high-voltage energy.',
    'site_url' => $settings['site_url'] ?? '',
    'twitter_handle' => $settings['twitter_handle'] ?? '',
    'stream_url' => $settings['stream_url'] ?? 'http://example.com/stream',
    'timezone' => $settings['timezone'] ?? 'Australia/Sydney',
    'popup_title' => $settings['popup_title'] ?? 'Underground FX Radio',
    'chat_enabled' => $settings['chat_enabled'] ?? true,
    'request_email' => $settings['request_email'] ?? 'requests@example.com',
    'socials' => $settings['socials'] ?? [],
    'storage' => [
        'chat' => $siteRoot . '/data/chat.json',
        'chat_schedule' => $siteRoot . '/data/chat_schedule.json',
        'chat_uploads' => $siteRoot . '/storage/chat',
        'requests' => $siteRoot . '/data/request_submissions.json',
        'contact' => $siteRoot . '/data/contact_submissions.json',
        'applications' => $siteRoot . '/data/applications.json',
        'news' => $siteRoot . '/data/news.json',
        'events' => $siteRoot . '/data/events.json',
        'djs' => $siteRoot . '/data/djs.json',
        'friends' => $siteRoot . '/data/friends.json',
        'pages' => $siteRoot . '/data/pages.json',
        'schedule' => $siteRoot . '/data/schedule.json',
        'top50' => $siteRoot . '/data/top50.json',
        'chart_history' => $siteRoot . '/data/chart_history.json',
        'chart_meta' => $siteRoot . '/data/chart_meta.json',
        'users' => $siteRoot . '/data/users.json',
        'banned_words' => $siteRoot . '/data/banned_words.json',
        'chat_bans' => $siteRoot . '/data/chat_bans.json'
    ]
];
date_default_timezone_set($ugfx['timezone']);
?>
