How gojosaturo00425-sudo/denrcertificateportal works
The DENR XII Employee Certification Portal supports account access, employee training registration and completion, certificate requests and administrative approval, delivery, and public QR verification. Its main path runs from training setup and employee participation through certificate issuance and verification; self-service requests for general certificates follow a parallel route. The tree and excerpts show key entry points and rendering/authentication calls, while database state is handled directly by PHP pages. Several README capabilities are represented at their documented entry points; unsampled internal links are omitted where source evidence is unavailable.
Main entry points: certificate_approve.php Certificate approval · auth.php Session and role access · dashboard.php Employee dashboard and requests · mailer.php Certificate email
Components 31
Accounts and access
- Sign in and registration
auth/login.php - Employee registration
auth/register.php - Account settings
account/settings.php - Portal dashboard
index.php
Training operations
- Training administration
admin/trainings.php - Training setup
admin/training_form.php - Training registration
employee/my_training.php - Attendance recording
admin/attendance.php - Training cancellations
admin/training_cancellations.php
Certificate lifecycle
- Employee dashboard and requests
employee/dashboard.php - Certificate request review
admin/certificates.php - Certificate approval
admin/certificate_approve.php - Certificate generation
includes/certificate_generator.php - Certificate image conversion
includes/certificate_image.php - Remote render endpoint
api/render-certificate.mjs - JPEG renderer
lib/certificate-renderer.mjs - Certificate email
includes/mailer.php - My certificates and downloads
employee/my_certificates.php - Owned certificate file access
employee/certificate_file.php - Public QR verification
public/verify.php - Expiration monitoring
cron/expire_certificates.php - Request reminders
cron/certificate_request_reminders.php
Shared services
- Session and role access
includes/auth.php - Certificate SLA reminders
includes/certificate_sla.php - Notification display and read
includes/header.php - Mark notifications read
notifications/read.php - MySQL database
- SMTP configuration
includes/mailer_config.php
Other components
- Employee
- Administrator
- SMTP service
Connections 38
- Employee → Sign in and registration: signs in
- Employee → Employee registration: creates account
- Sign in and registration → Session and role access: uses sessions
auth/login.php - Employee registration → Session and role access: uses sessions
auth/register.php - Employee → Account settings: updates credentials
- Account settings → Session and role access: checks access
account/settings.php - Administrator → Training setup: creates training
- Training administration → Training setup: manages training
- Employee → Training registration: registers
- Training registration → MySQL database: records registration
- Administrator → Attendance recording: records attendance
- Attendance recording → MySQL database: updates completion
- Administrator → Training cancellations: manages cancellations
- Employee → Employee dashboard and requests: requests certificate
- Employee dashboard and requests → MySQL database: saves pending request
employee/dashboard.php - Administrator → Certificate request review: reviews requests
- Certificate request review → Certificate approval: opens approval
- Certificate approval → Certificate generation: generates certificate
admin/certificate_approve.php - Certificate approval → MySQL database: activates certificate
admin/certificate_approve.php - Certificate approval → Certificate image conversion: converts image
admin/certificate_approve.php - Certificate image conversion → Remote render endpoint: posts SVG
includes/certificate_image.php - Remote render endpoint → JPEG renderer: renders JPEG
api/render-certificate.mjs - Certificate approval → Certificate email: emails certificate
admin/certificate_approve.php - Certificate email → SMTP configuration: loads SMTP settings
includes/mailer.php - Certificate email → SMTP service: sends email
- Employee → My certificates and downloads: views certificates
- My certificates and downloads → Owned certificate file access: downloads owned file
- Employee → Public QR verification: scans QR
- Public QR verification → MySQL database: checks certificate
- Expiration monitoring → MySQL database: updates expiry status
- Request reminders → Certificate SLA reminders: creates reminders
cron/certificate_request_reminders.php - Certificate SLA reminders → MySQL database: reads requests
- Notification display and read → Certificate SLA reminders: loads SLA logic
includes/header.php - Employee dashboard and requests → MySQL database: creates notices
employee/dashboard.php - Notification display and read → Mark notifications read: posts read action
includes/header.php - Mark notifications read → MySQL database: marks read
- Session and role access → MySQL database: opens connection
- Portal dashboard → MySQL database: queries portal metrics
index.php