<?php
$siteRoot = __DIR__ . '/..';
$settings = ugfx_read_json($siteRoot . '/data/settings.json', []);
$ugfx = [
    'site_name' => $settings['site_name'] ?? 'Underground FX Radio',
    'tagline' => $settings['tagline'] ?? 'Underground FX Radio live across the network.',
    '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',
        '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',
        'users' => $siteRoot . '/data/users.json',
        'banned_words' => $siteRoot . '/data/banned_words.json'
    ]
];
date_default_timezone_set($ugfx['timezone']);
?>
