| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/laragon4/www/bpkd_/admin/ |
Upload File : |
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo "<h2>Debug: Mencari Fungsi sanitize()</h2>";
// Cek file includes/init.php
$init_file = __DIR__ . '/includes/init.php';
echo "<p><strong>Mencari file: $init_file</strong></p>";
if (file_exists($init_file)) {
echo "<p style='color:green'>✓ File exists</p>";
require_once $init_file;
} else {
echo "<p style='color:red'>✗ File not found!</p>";
}
// Cek apakah fungsi ada
if (function_exists('sanitize')) {
echo "<p style='color:green'>✓ Fungsi sanitize() ditemukan!</p>";
$test = sanitize("Test <script>alert('xss')</script>");
echo "<p>Test sanitize: " . htmlspecialchars($test) . "</p>";
} else {
echo "<p style='color:red'>✗ Fungsi sanitize() TIDAK ditemukan!</p>";
// Tampilkan semua fungsi yang terdefinisi
$functions = get_defined_functions();
echo "<p>Fungsi-fungsi yang tersedia:</p>";
echo "<pre>";
print_r(array_slice($functions['user'], -10));
echo "</pre>";
}
// Cek file frontend init
$frontend_init = dirname(__DIR__) . '/includes/init.php';
echo "<p><strong>Mencari frontend init: $frontend_init</strong></p>";
if (file_exists($frontend_init)) {
echo "<p style='color:green'>✓ Frontend init exists</p>";
require_once $frontend_init;
if (function_exists('sanitize')) {
echo "<p style='color:green'>✓ Fungsi sanitize() ditemukan di frontend init!</p>";
} else {
echo "<p style='color:red'>✗ Fungsi sanitize() TIDAK ditemukan di frontend init!</p>";
}
} else {
echo "<p style='color:red'>✗ Frontend init not found!</p>";
}
?>