Refactor: Make domain references dynamic across config and API
This commit is contained in:
14
config.php
14
config.php
@@ -5,6 +5,10 @@
|
||||
* Sadece bu dosyayı düzenleyerek tüm ayarları değiştirebilirsin
|
||||
*/
|
||||
|
||||
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
|
||||
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
||||
$baseUrl = $protocol . '://' . $host;
|
||||
|
||||
return [
|
||||
// ==========================================
|
||||
// PANEL AYARLARI
|
||||
@@ -28,12 +32,12 @@ return [
|
||||
// Güncelleme
|
||||
'force_update' => false,
|
||||
'latest_version' => '7.0',
|
||||
'update_url' => 'https://yourdomain.com/downloads/myiptv.apk',
|
||||
'update_url' => $baseUrl . '/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',
|
||||
'splash_logo' => $baseUrl . '/assets/logo.png',
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
@@ -90,7 +94,7 @@ return [
|
||||
'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',
|
||||
'support_url' => $baseUrl . '/support',
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
@@ -126,8 +130,8 @@ return [
|
||||
'twitter' => '',
|
||||
'instagram' => '',
|
||||
'telegram' => '',
|
||||
'website' => 'https://yourdomain.com',
|
||||
'support_email' => 'support@yourdomain.com',
|
||||
'website' => $baseUrl,
|
||||
'support_email' => 'support@' . $host,
|
||||
'support_phone' => '+90 XXX XXX XX XX',
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user