๐Ÿงช MOLAK v2.0 - Includes Test

1๏ธโƒฃ Database Connection Test

โŒ Database connection failed!

2๏ธโƒฃ Session Management Test

โœ… Session working correctly!

โœ… Flash messages working!

Array
(
    [0] => Array
        (
            [type] => success
            [message] => This is a success message
        )

    [1] => Array
        (
            [type] => error
            [message] => This is an error message
        )

)

3๏ธโƒฃ Helper Functions Test

Sanitization

Input: <script>alert("xss")</script>Hello

Output: alert("xss")Hello

โœ… Sanitization working!

Date Formatting

Original: 2024-01-15 14:30:00

Arabic: 15/01/2024

English: Jan 15, 2024

Time ago: 15/01/2024

โœ… Date formatting working!

Currency Formatting

Amount: 1,234.56 AED

โœ… Currency formatting working!

Fee Calculations

Type Amount Fee Rate Fee Amount Net Amount
Maintenance (30%)1,000.00 AED30%300.00 AED700.00 AED
Online Payment - Enabled (3.1%)5,000.00 AED3.1%155.00 AED4,845.00 AED
Online Payment - Disabled (0%)5,000.00 AED0%0.00 AED5,000.00 AED

โœ… Fee calculations working correctly!

4๏ธโƒฃ CSRF Protection Test

Generated Token: 7f44c02c8607ab5b31653ee9171c931bae13c208abc25f03529ffb42e68576f3

โœ… CSRF token valid!

CSRF Form Field:

<input type="hidden" name="csrf_token" value="a555258cbafaa84f981b9cd6322589527547e44bfeda73b722b1cfbd95647b03">

CSRF Meta Tag:

<meta name="csrf-token" content="5c04e7d75c192fea2dc2bb611f7e86736868306ae8431bb97812a14ed98ca44e">

5๏ธโƒฃ Security Functions Test

Password: Test@123456

Hash: $2y$12$jsqTgM4AN1wEpEGKR6J84.TVdDPq7Q6eS4Orr5uytU2...

โœ… Password hashing/verification working!

Random Token: ca399a4b0821347b59f327bb0f3c7957

Token Length: 32 characters

โœ… Token generation working!

6๏ธโƒฃ System Information

Setting Value
APP_NAME MOLAK
APP_VERSION 2.0.0
APP_DEBUG Enabled
DEFAULT_LANGUAGE ar
SERVICE_CHARGE_RATE 3.1%
MAINTENANCE_FEE_RATE 30%
PHP Version 8.2.33
Session Status Active
User IP 216.73.216.203
Current URL https://www.molak2.innovistabuild.ae/includes/test_includes.php

โœ… Test Summary

All Tests Passed! ๐ŸŽ‰

The following components are working correctly:

โœ… Section 1.5 Complete!

You can now proceed to Section 1.6: ุงู„ูƒู„ุงุณุงุช ุงู„ุฃุณุงุณูŠุฉ (Core Classes)