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:
16
inc/captcha.php
Normal file
16
inc/captcha.php
Normal 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user