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

โœ… CSRF token valid!

CSRF Form Field:

<input type="hidden" name="csrf_token" value="9009fc3c8a4406f259cd42f39ce95420535ff2fc9021ab2c57cfce7a43650d23">

CSRF Meta Tag:

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

5๏ธโƒฃ Security Functions Test

Password: Test@123456

Hash: $2y$12$0.6VRyHLnvyA70Gj7/xKveB/EO/QhdLQsIgyidqB83M...

โœ… Password hashing/verification working!

Random Token: 1ee4797bf870eefd7ced060a2a3523df

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.31
Session Status Active
User IP 216.73.217.17
Current URL https://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)