prepare("UPDATE site_settings SET setting_value = ? WHERE setting_key = 'head_ads'"); $stmt->execute([$head_ads]); $stmt = $pdo->prepare("UPDATE site_settings SET setting_value = ? WHERE setting_key = 'body_ads'"); $stmt->execute([$body_ads]); $stmt = $pdo->prepare("UPDATE site_settings SET setting_value = ? WHERE setting_key = 'openai_api_key'"); $stmt->execute([$openai_api_key]); $message = "Settings updated successfully!"; } // Fetch current settings $stmt = $pdo->query("SELECT setting_key, setting_value FROM site_settings"); $settings = $stmt->fetchAll(PDO::FETCH_KEY_PAIR); $head_ads = $settings['head_ads'] ?? ''; $body_ads = $settings['body_ads'] ?? ''; $openai_api_key = $settings['openai_api_key'] ?? ''; ?> Admin Panel - TikTok Live AI

Site Settings

If left empty, the application will use the Flatlogic AI Proxy.

These scripts will be placed inside the <head> tag.
These scripts will be placed at the bottom of the <body> tag.