Initial commit with security patches
This commit is contained in:
166
config.php
Normal file
166
config.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
/**
|
||||
* XC IPTV API - Yapılandırma Dosyası
|
||||
*
|
||||
* Sadece bu dosyayı düzenleyerek tüm ayarları değiştirebilirsin
|
||||
*/
|
||||
|
||||
return [
|
||||
// ==========================================
|
||||
// PANEL AYARLARI
|
||||
// ==========================================
|
||||
'panel' => [
|
||||
'url' => 'http://panel.example.com', // Panel URL
|
||||
'port' => '8080', // Panel Port
|
||||
'api_path' => '/player_api.php', // API endpoint
|
||||
'timeout' => 30, // Connection timeout (saniye)
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// UYGULAMA AYARLARI
|
||||
// ==========================================
|
||||
'app' => [
|
||||
'name' => 'My IPTV',
|
||||
'package' => 'com.myiptv.app',
|
||||
'version' => '7.0',
|
||||
'version_code' => 70,
|
||||
|
||||
// Güncelleme
|
||||
'force_update' => false,
|
||||
'latest_version' => '7.0',
|
||||
'update_url' => 'https://yourdomain.com/downloads/myiptv.apk',
|
||||
'update_message' => 'Yeni versiyon mevcut! Lütfen güncelleyin.',
|
||||
|
||||
// Splash Screen
|
||||
'splash_duration' => 3, // saniye
|
||||
'splash_logo' => 'https://yourdomain.com/assets/logo.png',
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// ÖZELLİKLER
|
||||
// ==========================================
|
||||
'features' => [
|
||||
'live_tv' => true,
|
||||
'vod' => true,
|
||||
'series' => true,
|
||||
'catchup' => true,
|
||||
'epg' => true,
|
||||
'recording' => false,
|
||||
'parental_control' => true,
|
||||
'multi_profile' => false,
|
||||
'chromecast' => true,
|
||||
'download' => false,
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// PLAYER AYARLARI
|
||||
// ==========================================
|
||||
'player' => [
|
||||
'default_quality' => 'auto',
|
||||
'buffer_size' => 'medium', // small, medium, large
|
||||
'hardware_acceleration' => true,
|
||||
'subtitle_enabled' => true,
|
||||
'audio_passthrough' => false,
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// REKLAM AYARLARI (AdMob)
|
||||
// ==========================================
|
||||
'ads' => [
|
||||
'enabled' => false,
|
||||
'provider' => 'admob', // admob, facebook, unity
|
||||
|
||||
// AdMob IDs
|
||||
'banner_id' => 'ca-app-pub-xxxxx',
|
||||
'interstitial_id' => 'ca-app-pub-xxxxx',
|
||||
'rewarded_id' => 'ca-app-pub-xxxxx',
|
||||
'native_id' => 'ca-app-pub-xxxxx',
|
||||
|
||||
// Görüntüleme Sıklığı
|
||||
'show_on_startup' => false,
|
||||
'show_between_videos' => true,
|
||||
'videos_between_ads' => 3, // Her 3 videoda bir
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// BAKIM MODU
|
||||
// ==========================================
|
||||
'maintenance' => [
|
||||
'enabled' => false,
|
||||
'title' => 'Bakımda',
|
||||
'message' => 'Sistem şu an bakımda. Lütfen daha sonra tekrar deneyin.',
|
||||
'estimated_time' => '2 saat',
|
||||
'support_url' => 'https://yourdomain.com/support',
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// DUYURULAR
|
||||
// ==========================================
|
||||
'announcement' => [
|
||||
'enabled' => false,
|
||||
'type' => 'info', // info, warning, error, success
|
||||
'title' => 'Önemli Duyuru',
|
||||
'message' => 'Sistemde güncellemeler yapılmaktadır.',
|
||||
'show_once' => true, // Kullanıcıya bir kere göster
|
||||
'button_text' => 'Anladım',
|
||||
'link' => '', // Opsiyonel: Daha fazla bilgi linki
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// GÜVENLİK
|
||||
// ==========================================
|
||||
'security' => [
|
||||
'require_ssl' => false, // HTTPS zorunlu
|
||||
'api_key_required' => false,
|
||||
'api_key' => 'your-secret-api-key-here',
|
||||
'rate_limit' => 100, // İstek limiti (dakika başına)
|
||||
'allowed_ips' => [], // Boşsa tüm IP'ler izinli
|
||||
'blocked_ips' => [],
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// SOSYAL MEDYA & DESTEK
|
||||
// ==========================================
|
||||
'social' => [
|
||||
'facebook' => '',
|
||||
'twitter' => '',
|
||||
'instagram' => '',
|
||||
'telegram' => '',
|
||||
'website' => 'https://yourdomain.com',
|
||||
'support_email' => 'support@yourdomain.com',
|
||||
'support_phone' => '+90 XXX XXX XX XX',
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// GELİŞMİŞ AYARLAR
|
||||
// ==========================================
|
||||
'advanced' => [
|
||||
'cache_enabled' => true,
|
||||
'cache_duration' => 3600, // 1 saat
|
||||
'debug_mode' => false,
|
||||
'log_enabled' => true,
|
||||
'log_file' => 'api.log',
|
||||
'compression' => true, // GZIP sıkıştırma
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// VERSİYON GEÇMİŞİ
|
||||
// ==========================================
|
||||
'changelog' => [
|
||||
'7.0' => [
|
||||
'date' => '2024-02-21',
|
||||
'changes' => [
|
||||
'Yeni arayüz tasarımı',
|
||||
'Performans iyileştirmeleri',
|
||||
'Bug düzeltmeleri'
|
||||
]
|
||||
],
|
||||
'6.5' => [
|
||||
'date' => '2024-01-15',
|
||||
'changes' => [
|
||||
'EPG desteği eklendi',
|
||||
'Chromecast entegrasyonu'
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user