How takaa04/tugas works
ChickGuard is a native PHP/MySQL admin web app for monitoring and managing a chicken coop. An admin enters through the login page; authenticated users reach the dashboard and use separate pages to manage feeding and watering schedules, lighting schedules, and daily logs. Schedule forms submit to dedicated handlers, while log search is represented by its page and filter handler. The dashboard’s temperature and humidity display is documented as simulated, not live sensor data. Several authentication and log-handler internals were not sampled, so their detailed wiring is omitted.
Main entry points: koneksi.php DB connection · login.php Admin login · init_tables.php Table and log helpers · log_harian.php Daily logs
Components 19
Entry and access
- Entry redirect
index.php - Admin login
login.php - Login handler
proses/proses_login.php - Password recovery
proses/proses_lupa_password.php - Password reset
reset_password.php - Reset handler
proses/proses_reset_password.php
Monitoring
- Dashboard
pages/dashboard.php - Daily logs
pages/log_harian.php - Log search
proses/filter_log_harian.php - Log actions
proses/proses_log_harian.php
Coop management
- Feed and water
pages/pakan_minum.php - Schedule actions
proses/proses_pakan_minum.php - Lighting schedule
pages/pencahayaan.php - Lighting actions
proses/proses_pencahayaan.php
Runtime and storage
- DB connection
config/koneksi.php - Table and log helpers
proses/init_tables.php - MySQL database
database/chickguard.sql - Shared layout
components/sidebar.php
Other components
- Admin
Connections 27
- Admin → Entry redirect: opens
- Entry redirect → Admin login: redirects unauthenticated
- Entry redirect → Dashboard: redirects authenticated
- Admin → Admin login: submits credentials
- Admin login → Login handler: submits
- Login handler → DB connection: uses connection
- Login handler → MySQL database: checks account
- Admin login → Password recovery: requests recovery
- Password reset → Reset handler: submits reset
- Reset handler → DB connection: uses connection
- Dashboard → Table and log helpers: initializes tables
- Dashboard → Shared layout: includes navigation
- Daily logs → Shared layout: includes navigation
- Admin → Feed and water: manages schedules
- Feed and water → Schedule actions: submits schedule changes
- Schedule actions → DB connection: uses connection
- Schedule actions → Table and log helpers: initializes tables
- Admin → Lighting schedule: manages lighting
- Lighting schedule → Lighting actions: submits schedule changes
- Lighting actions → DB connection: uses connection
- Lighting actions → Table and log helpers: initializes tables
- Daily logs → Log search: requests filtering
- Daily logs → Log actions: submits log actions
- Log search → DB connection: uses connection
- Log actions → DB connection: uses connection
- DB connection → MySQL database: connects
- Table and log helpers → MySQL database: creates and updates tables