-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_auth.php
More file actions
36 lines (31 loc) · 874 Bytes
/
Copy pathdebug_auth.php
File metadata and controls
36 lines (31 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
// debug_auth.php
echo "<h1>Auth Class Debug</h1>";
// Show all loaded files
echo "<h2>Loaded Files:</h2>";
echo "<pre>";
print_r(get_included_files());
echo "</pre>";
// Check if class exists
echo "<h2>Class Check:</h2>";
if (class_exists('Auth')) {
echo "Auth class exists!<br>";
try {
$reflection = new ReflectionClass('Auth');
echo "Declared in: " . $reflection->getFileName() . "<br>";
echo "Started on line: " . $reflection->getStartLine() . "<br>";
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
} else {
echo "Auth class does NOT exist yet.<br>";
}
// Search for auth files
echo "<h2>Search for auth.php files:</h2>";
$files = glob(__DIR__ . '/**/*auth.php', GLOB_BRACE);
echo "<pre>";
print_r($files);
echo "</pre>";
// Show current file
echo "<h2>Current File:</h2>";
echo __FILE__;