From d684aa99743c9a4c4479de8e83055e3869ebdf4c Mon Sep 17 00:00:00 2001 From: ayrisdev Date: Sun, 22 Feb 2026 13:56:07 +0000 Subject: [PATCH] Upload files to "/" --- DEPLOYMENT.md | 205 +++++++++++++++++++++++ README.md | 17 ++ index.php | 5 + login.html | 310 ++++++++++++++++++++++++++++++++++ panel.html | 448 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 985 insertions(+) create mode 100644 DEPLOYMENT.md create mode 100644 README.md create mode 100644 index.php create mode 100644 login.html create mode 100644 panel.html diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md new file mode 100644 index 0000000..18dab6b --- /dev/null +++ b/DEPLOYMENT.md @@ -0,0 +1,205 @@ +# 🚀 DEPLOYMENT GUIDE - Adım Adım + +## 📦 DOSYALARI GITHUB'A YÜKLE + +### 1️⃣ GitHub'da Yeni Repo Oluştur + +1. https://github.com/new adresine git +2. Repository name: **xciptv-api** (ya da istediğin isim) +3. ✅ **Public** seç (ücretsiz için) +4. ❌ README ekleme (bizde zaten var) +5. **Create repository** tıkla + +### 2️⃣ Dosyaları Yükle + +İki yöntem var: + +#### Yöntem A: GitHub Web'den (KOLAY ✅) + +1. Yeni oluşturduğun repo sayfasında: +2. **"uploading an existing file"** linkine tıkla +3. Tüm dosyaları sürükle-bırak: + - api_secured.php + - login.html + - panel.html + - config.php + - index.php + - vercel.json + - composer.json + - .gitignore + - README.md + +4. Commit message: "Initial commit" +5. **Commit changes** tıkla + +#### Yöntem B: Git ile (Terminal) + +```bash +# Dosyaların olduğu klasöre git +cd /path/to/xciptv-deploy + +# Git başlat +git init + +# Dosyaları ekle +git add . + +# Commit +git commit -m "Initial commit" + +# GitHub'a bağla (değiştir: USERNAME ve REPO_NAME) +git remote add origin https://github.com/USERNAME/REPO_NAME.git + +# Push et +git branch -M main +git push -u origin main +``` + +--- + +## 🚀 VERCEL'E DEPLOY ET + +### 1️⃣ Vercel'e Git + +1. https://vercel.com/new adresine git +2. **"Import Git Repository"** tıkla + +### 2️⃣ GitHub Repo'nu Seç + +1. GitHub hesabını bağla (ilk seferse) +2. Listeden **xciptv-api** repo'sunu seç +3. **Import** tıkla + +### 3️⃣ Deploy Ayarları + +``` +Framework Preset: Other +Root Directory: ./ +Build Command: (boş bırak) +Output Directory: (boş bırak) +Install Command: (boş bırak) +``` + +### 4️⃣ Deploy! + +**Deploy** butonuna tıkla ve bekle (30-60 saniye). + +### 5️⃣ URL'ini Al + +Deploy bitince sana URL verecek: + +``` +https://xciptv-api-xxxxx.vercel.app +``` + +Bu URL'i kopyala! ✅ + +--- + +## 🧪 TEST ET + +### 1️⃣ Admin Panel + +Tarayıcıda aç: +``` +https://xciptv-api-xxxxx.vercel.app/login.html +``` + +Giriş yap: +- Username: **admin** +- Password: **admin123** + +### 2️⃣ API Test + +Terminal'de test et: + +```bash +# Token al +curl "https://xciptv-api-xxxxx.vercel.app/api_secured.php?action=get_token&api_key=myapp_v1_secret_key_2024" +``` + +Response gelirse **BAŞARILI!** 🎉 + +--- + +## ⚙️ ŞİFRE DEĞİŞTİR (ÖNEMLİ!) + +### 1️⃣ Yeni Şifre Oluştur + +Bu PHP kodunu çalıştır: + +```php + +``` + +Çıktı: +``` +$2y$10$abcdefghijklmnopqrstuvwxyz... +``` + +### 2️⃣ api_secured.php'yi Düzenle + +GitHub'daki `api_secured.php` dosyasını aç → Edit: + +```php +$SECURITY_CONFIG = [ + 'admin_username' => 'admin', // 👈 İstersen değiştir + 'admin_password' => '$2y$10$abc...', // 👈 Yeni hash'i yapıştır +]; +``` + +**Commit changes** → Vercel otomatik yeniden deploy eder (1 dk) + +--- + +## 🎯 APK'YA BAĞLA + +APK'da kullanacağın URL: + +``` +https://xciptv-api-xxxxx.vercel.app/api_secured.php +``` + +### Token Al: +``` +?action=get_token&api_key=myapp_v1_secret_key_2024 +``` + +### Config Çek: +``` +?action=get_config&token=ALDGIN_TOKEN +``` + +--- + +## 🆘 SORUN ÇÖZME + +### "500 Internal Server Error" + +Vercel'de PHP çalışmıyorsa: + +1. `vercel.json` dosyası var mı kontrol et +2. Repo'nun root'unda olmalı + +### "404 Not Found" + +URL'i doğru yazdığından emin ol: +``` +✅ https://xxx.vercel.app/login.html +❌ https://xxx.vercel.app/login +``` + +### Şifre Çalışmıyor + +Yeni hash oluştur ve güncelle: +```bash +php -r "echo password_hash('admin123', PASSWORD_BCRYPT);" +``` + +--- + +## 📞 Takıldın mı? + +Geri gel, birlikte hallederiz! 💪 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e3f9fae --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# XC IPTV API - Secured Panel + +## 🚀 Quick Start + +1. Admin Panel: `login.html` +2. Default Login: admin / admin123 +3. API Endpoint: `api_secured.php` + +## 🔐 Security + +- Change password in `api_secured.php` +- Update API keys +- Configure in `config.php` + +## 📖 Documentation + +See full docs in repository. diff --git a/index.php b/index.php new file mode 100644 index 0000000..9fa5bc4 --- /dev/null +++ b/index.php @@ -0,0 +1,5 @@ + diff --git a/login.html b/login.html new file mode 100644 index 0000000..74d9d57 --- /dev/null +++ b/login.html @@ -0,0 +1,310 @@ + + + + + + Admin Login - XC IPTV Panel + + + +
+ + +
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ + + + diff --git a/panel.html b/panel.html new file mode 100644 index 0000000..828e60d --- /dev/null +++ b/panel.html @@ -0,0 +1,448 @@ + + + + + + XC IPTV Panel - Portal Yönetimi + + + +
+
+

📺 XC IPTV Panel Yönetimi

+

appsnscripts Style - Multi Portal Manager

+
+ +
+ +
+

📱 App Settings

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+

🌐 Portal Settings

+ +
+ +
+ ACTIVE +

Portal 1

+
+ + +
+
+ + +
+
+ + +
+ ACTIVE +

Portal 2

+
+ + +
+
+ + +
+
+ + +
+ ACTIVE +

Portal 3

+
+ + +
+
+ + +
+
+ + +
+ INACTIVE +

Portal 4

+
+ + +
+
+ + +
+
+ + +
+ INACTIVE +

Portal 5

+
+ + +
+
+ + +
+
+
+ + +
+ + +
+

🎨 UI Control

+ +
+ +
+
Portal 1
+
Portal 2
+
Portal 3
+
Portal 4
+
Portal 5
+
+
+ +
+ +
+
Portal 1
+
Portal 2
+
Portal 3
+
Portal 4
+
Portal 5
+
+
+ +
+ +
+
Portal 1
+
Portal 2
+
Portal 3
+
Portal 4
+
Portal 5
+
+
+
+ + +
+

🔗 API Information

+ +
+
+
3
+
Active Portals
+
+
+
+
License Status
+
+
+ +
+ https://yourdomain.com/api/app.php +
+ + + +
+
+
+ + + +