Enhancement: Complete overhaul of SIDAK application

- Report: Added printable reports for all categories.
- Dashboard: Fixed broken links and implemented gender balance filtering.
- Logic: Auto-integration of Arrivals and Births into Resident/KK data.
- Fix: Solved deletion popup bug in Birth Data.
- Feature: Added Full KK History view.
- Feature: Implemented Dynamic Village Profile for letter templates.
This commit is contained in:
2026-01-18 16:25:38 +08:00
parent a10d6f70fb
commit 74b8f572a2
25 changed files with 841 additions and 102 deletions

16
inc/captcha.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
session_start();
// Generate Code
$random_alpha = md5(rand());
$captcha_code = substr($random_alpha, 0, 6);
$_SESSION["captcha_code"] = $captcha_code;
// Create Image
$target_layer = imagecreatetruecolor(70, 30);
$captcha_background = imagecolorallocate($target_layer, 255, 160, 119);
imagefill($target_layer,0,0,$captcha_background);
$captcha_text_color = imagecolorallocate($target_layer, 0, 0, 0);
imagestring($target_layer, 5, 5, 5, $captcha_code, $captcha_text_color);
header("Content-type: image/jpeg");
imagejpeg($target_layer);
?>