๐Ÿงช 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: 34287130c04cd20dd0410ed69f7799620b12fb7cdb4c96dced3ed5e031ed873a

โœ… CSRF token valid!

CSRF Form Field:

<input type="hidden" name="csrf_token" value="07b57bd8a636558cefac196b12f92a69502d776b1817ea412e0ab68a0624a591">

CSRF Meta Tag:

<meta name="csrf-token" content="aede90de2fe536e21e33dad11cdf93a6bc8f6968abe28d08fb08a8201eaf09db">

5๏ธโƒฃ Security Functions Test

Password: Test@123456

Hash: $2y$12$ovIUYWPuD9JN8RyXBO6xpuunj5I.GQIYjLHUlztEKQz...

โœ… Password hashing/verification working!

Random Token: 8d193bc8e3748dd45fcf556ddb8c15cc

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.30
Session Status Active
User IP 216.73.217.54
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)