# 📤 DAFTAR FILE PHP UNTUK UPLOAD KE WEBHOST

**Created:** March 28, 2026  
**Purpose:** Checklist lengkap file PHP yang harus di-upload

---

## 🎯 RINGKASAN UPLOAD

```
Total Files:         25+ PHP files
Total Size:          ~500-800 KB
Upload Method:       FTP / SFTP / cPanel File Manager
Destination:         /home/lppmunu1/public_html/tracker.lppmunud.id/
Time Estimate:       15-30 minutes
```

---

## 📋 KATEGORI 1: API CONTROLLERS (WAJIB UPLOAD) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\api\controllers\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/api/controllers/`

| No | Nama File | Status | Ukuran | Tujuan |
|----|-----------|--------|--------|--------|
| 1 | `ScreenshotController.php` | ✅ NEW | ~10 KB | Screenshot handling |
| 2 | `ApplicationsController.php` | ✅ NEW | ~12 KB | App monitoring |
| 3 | `MediaSocialController.php` | ✅ EXISTING | ~15 KB | Platform detection |
| 4 | `CommandController.php` | ✅ EXISTING | ~14 KB | Command execution |
| 5 | `ActivityController.php` | ✅ EXISTING | ~10 KB | Activity logging |
| 6 | `AgentController.php` | ✅ EXISTING | ~12 KB | Agent management |
| 7 | `ApplicationMonitorController.php` | ✅ EXISTING | ~8 KB | Legacy monitor |

**Total Controllers:** 7 files (~80 KB)

---

## 📋 KATEGORI 2: DASHBOARD VIEWS (WAJIB UPLOAD) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\dashboard\views\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/dashboard/views/`

| No | Nama File | Status | Ukuran | Tujuan |
|----|-----------|--------|--------|--------|
| 1 | `screenshot.php` | ✅ NEW | ~15 KB | Live screenshot |
| 2 | `media-social.php` | ✅ NEW | ~18 KB | Media platform |
| 3 | `applications.php` | ✅ EXISTING | ~12 KB | App monitor UI |
| 4 | `bandwidth.php` | ✅ EXISTING | ~10 KB | Bandwidth control |
| 5 | `dashboard.php` | ✅ EXISTING | ~20 KB | Main dashboard |
| 6 | `agents.php` | ✅ EXISTING | ~14 KB | Agent management |
| 7 | `activities.php` | ✅ EXISTING | ~12 KB | Activity log UI |

**Total Views:** 7 files (~100 KB)

---

## 📋 KATEGORI 3: API ROUTER (WAJIB UPLOAD) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\api\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/api/`

| No | Nama File | Status | Ukuran | Tujuan | Penting |
|----|-----------|--------|--------|--------|---------|
| 1 | `index.php` | ✅ UPDATED | ~25 KB | Main API router | 🔴 CRITICAL |

**Note:** File ini sudah di-update dengan route untuk semua 5 fitur

---

## 📋 KATEGORI 4: CONFIGURATION (WAJIB UPLOAD) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\config\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/config/`

| No | Nama File | Status | Ukuran | Tujuan | Note |
|----|-----------|--------|--------|--------|------|
| 1 | `EnvironmentHelper.php` | ✅ EXISTING | ~5 KB | Env detection | Sudah ada |
| 2 | `Config.php` | ✅ EXISTING | ~3 KB | DB Config | Sudah ada |
| 3 | `Database.php` | ✅ EXISTING | ~5 KB | DB Connection | Sudah ada |
| 4 | `.env.webhost` | ✅ EXISTING | ~1 KB | Webhost config | 🔴 CRITICAL |

**Note:** .env.webhost HARUS ada dengan kredensial webhost yang benar!

---

## 📋 KATEGORI 5: DASHBOARD UTAMA (WAJIB UPLOAD) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\dashboard\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/dashboard/`

| No | Nama File | Lokasi | Ukuran | Tujuan |
|----|-----------|--------|--------|--------|
| 1 | `index.php` | dashboard/ | ~8 KB | Dashboard entry |
| 2 | `login.php` | dashboard/ | ~5 KB | Login page |
| 3 | `logout.php` | dashboard/ | ~2 KB | Logout handler |

**Subdirectories to upload:**
- `dashboard/assets/` (CSS, JS, images)
- `dashboard/config/`
- `dashboard/controllers/`

---

## 📋 KATEGORI 6: ROOT FILES (OPTIONAL UPLOAD) 🟡

**Lokasi Source:** `e:\xampp\htdocs\tracker\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/`

| No | Nama File | Status | Penting | Tujuan |
|----|-----------|--------|---------|--------|
| 1 | `.htaccess` | ✅ EXISTING | 🟡 Important | URL rewriting |
| 2 | `index.php` | ✅ EXISTING | 🟡 Important | Root entry point |

---

## 📋 KATEGORI 7: CONFIGURATION FILES (.env) 🔴

**Lokasi Source:** `e:\xampp\htdocs\tracker\`  
**Lokasi Tujuan:** `/home/lppmunu1/public_html/tracker.lppmunud.id/`

| Nama File | Status | Penting | Action |
|-----------|--------|---------|--------|
| `.env.webhost` | ✅ EXISTING | 🔴 CRITICAL | Upload / Verify credentials |
| `.env.local` | ✅ EXISTING | ❌ NOT for webhost | DON'T upload |

---

## 🚀 CHECKLIST UPLOAD LENGKAP

### **HARUS UPLOAD (Critical Priority)**

```
☐ API CONTROLLERS (7 files)
  ☐ api/controllers/ScreenshotController.php         ←NEW
  ☐ api/controllers/ApplicationsController.php       ←NEW
  ☐ api/controllers/MediaSocialController.php
  ☐ api/controllers/CommandController.php
  ☐ api/controllers/ActivityController.php
  ☐ api/controllers/AgentController.php
  ☐ api/controllers/ApplicationMonitorController.php

☐ DASHBOARD VIEWS (7 files)
  ☐ dashboard/views/screenshot.php                  ←NEW
  ☐ dashboard/views/media-social.php                ←NEW
  ☐ dashboard/views/applications.php
  ☐ dashboard/views/bandwidth.php
  ☐ dashboard/views/dashboard.php
  ☐ dashboard/views/agents.php
  ☐ dashboard/views/activities.php

☐ MAIN API ROUTER
  ☐ api/index.php                                   ←UPDATED

☐ CONFIGURATION
  ☐ config/EnvironmentHelper.php
  ☐ config/Config.php
  ☐ config/Database.php
  ☐ .env.webhost                                    ←CRITICAL!

☐ DASHBOARD
  ☐ dashboard/index.php
  ☐ dashboard/login.php
  ☐ dashboard/logout.php
  ☐ dashboard/assets/                               ←Folder
  ☐ dashboard/config/                               ←Folder
  ☐ dashboard/controllers/                          ←Folder

☐ ROOT
  ☐ .htaccess
  ☐ index.php
```

---

## 📁 FOLDER STRUCTURE YANG HARUS ADA

```
/home/lppmunu1/public_html/tracker.lppmunud.id/
│
├── api/
│   ├── index.php                        ✅ UPLOAD (UPDATED)
│   ├── config/
│   │   ├── Config.php                   ✅ UPLOAD
│   │   └── Database.php                 ✅ UPLOAD
│   └── controllers/
│       ├── ScreenshotController.php     ✅ UPLOAD (NEW)
│       ├── ApplicationsController.php   ✅ UPLOAD (NEW)
│       ├── MediaSocialController.php    ✅ UPLOAD
│       ├── CommandController.php        ✅ UPLOAD
│       ├── ActivityController.php       ✅ UPLOAD
│       ├── AgentController.php          ✅ UPLOAD
│       └── ApplicationMonitorController.php ✅ UPLOAD
│
├── dashboard/
│   ├── index.php                        ✅ UPLOAD
│   ├── login.php                        ✅ UPLOAD
│   ├── logout.php                       ✅ UPLOAD
│   ├── assets/                          ✅ UPLOAD (folder)
│   ├── config/                          ✅ UPLOAD (folder)
│   ├── controllers/                     ✅ UPLOAD (folder)
│   └── views/
│       ├── screenshot.php               ✅ UPLOAD (NEW)
│       ├── media-social.php             ✅ UPLOAD (NEW)
│       ├── applications.php             ✅ UPLOAD
│       ├── bandwidth.php                ✅ UPLOAD
│       ├── dashboard.php                ✅ UPLOAD
│       ├── agents.php                   ✅ UPLOAD
│       └── activities.php               ✅ UPLOAD
│
├── config/
│   ├── EnvironmentHelper.php            ✅ UPLOAD
│   ├── Config.php                       ✅ UPLOAD
│   └── Database.php                     ✅ UPLOAD
│
├── .env.webhost                         ✅ UPLOAD (PENTING!)
├── .htaccess                            ✅ UPLOAD
└── index.php                            ✅ UPLOAD
```

---

## 🎯 REKOMENDASI UPLOAD ORDER

### **Step 1: Upload Config Files FIRST**
```
1. config/.env.webhost              ← PALING PENTING
2. config/EnvironmentHelper.php
3. config/Config.php
4. config/Database.php
```
**Alasan:** Environment harus benar dulu

---

### **Step 2: Upload API Layer**
```
5. api/index.php                    ← UPDATED router
6. api/controllers/*.php            ← All 7 controllers
```
**Alasan:** API harus siap menerima request

---

### **Step 3: Upload Dashboard Layer**
```
7. dashboard/index.php
8. dashboard/login.php
9. dashboard/logout.php
10. dashboard/views/*.php           ← All 7 views
11. dashboard/assets/               ← Supporting files
12. dashboard/config/               ← Supporting files
13. dashboard/controllers/          ← Supporting files
```
**Alasan:** UI harus siap display data

---

### **Step 4: Upload Root Files**
```
14. .htaccess
15. index.php
```

---

## ⚠️ FILE YANG JANGAN DIUPLOAD

```
❌ .env.local              (Ini untuk localhost, bukan webhost!)
❌ QUICK_START_GUIDE.md    (Documentation, bukan code)
❌ DEPLOYMENT_CHECKLIST.md (Documentation, bukan code)
❌ agent-csharp/           (C# code, bukan PHP)
❌ database/*.sql          (SQL files - import via phpmyadmin)
❌ docs/                    (Documentation)
❌ test-*.php              (Test files)
```

---

## 📊 TOTAL UPLOAD SUMMARY

| Category | Count | Size | Priority |
|----------|-------|------|----------|
| **Controllers** | 7 | ~80 KB | 🔴 Critical |
| **Views** | 7 | ~100 KB | 🔴 Critical |
| **API Router** | 1 | ~25 KB | 🔴 Critical |
| **Config** | 4 | ~14 KB | 🔴 Critical |
| **Dashboard** | 3 | ~15 KB | 🔴 Critical |
| **Root** | 2 | ~10 KB | 🟡 Important |
| **Assets/Folders** | 3 | ~100 KB | 🟡 Important |
| **TOTAL** | **~27** | **~350-400 KB** | **~30 min** |

---

## 🔄 VERIFICATION AFTER UPLOAD

Setelah upload, test dengan commands berikut:

```bash
# 1. Test API connectivity
curl http://tracker.lppmunud.id/api/agents
# Expected: JSON response dengan agent list

# 2. Test dashboard
http://tracker.lppmunud.id/dashboard
# Expected: Login page loads

# 3. Test screenshot endpoint
curl -X POST http://tracker.lppmunud.id/api/screenshot
# Expected: Error atau success response (bukan 404)

# 4. Test command endpoint
curl http://tracker.lppmunud.id/api/command
# Expected: Response (bukan 404)
```

---

## ✅ FINAL CHECKLIST

Sebelum upload, pastikan:

```
☐ Semua 25+ file PHP sudah dikumpulkan
☐ .env.webhost sudah verify credentials
☐ Folder structure sudah prepare locally
☐ FTP/SFTP credentials sudah ready
☐ Webhost directory sudah accessible
☐ File permissions akan set ke 755 setelah upload
☐ Database sudah prepared (schema_updates_features_2_5.sql sudah di-import)
```

---

## 📱 QUICK REFERENCE - FILE LIST COPY-PASTE

### From Windows:
```
api\controllers\ScreenshotController.php
api\controllers\ApplicationsController.php
api\controllers\MediaSocialController.php
api\controllers\CommandController.php
api\controllers\ActivityController.php
api\controllers\AgentController.php
api\controllers\ApplicationMonitorController.php
api\index.php
config\EnvironmentHelper.php
config\Config.php
config\Database.php
dashboard\index.php
dashboard\login.php
dashboard\logout.php
dashboard\views\screenshot.php
dashboard\views\media-social.php
dashboard\views\applications.php
dashboard\views\bandwidth.php
dashboard\views\dashboard.php
dashboard\views\agents.php
dashboard\views\activities.php
dashboard\assets\
dashboard\config\
dashboard\controllers\
.env.webhost
.htaccess
index.php
```

---

**Last Updated:** March 28, 2026  
**File Count:** 25+ PHP files  
**Total Size:** ~350-400 KB  
**Estimated Time:** 30 minutes to upload + test

