- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
170 lines
7.4 KiB
PHP
Executable File
170 lines
7.4 KiB
PHP
Executable File
<?php if (
|
|
$_GET['page'] != 'wp-database-tools' &&
|
|
$_GET['page'] != 'license' &&
|
|
$_GET['page'] != 'general' &&
|
|
$settings_page['force_execute_scanner'] != 'YES'
|
|
) : ?>
|
|
<div class="bg-white br-10 px-30 py-20 mt-6">
|
|
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo get_admin_page_title(); ?>
|
|
(<span id="load_total_records">0</span>)
|
|
</h4>
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Data loading', $this->plugin_name ); ?>
|
|
<span id="load_indicator_step"><span id="load_current_step">0</span>/<span id="load_total_step">0</span></span>
|
|
</p>
|
|
<div class="m-0" id="progress_data">
|
|
<div id="progress_data_bar"></div>
|
|
</div>
|
|
|
|
<?php if ( get_admin_page_title() == __( 'Options', $this->plugin_name ) || get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
|
|
<div class="m-0 mt-5">
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Information size (estimate)', $this->plugin_name ); ?></p>
|
|
<p class="m-0"><?php echo __( 'Total', $this->plugin_name ); ?>: <span id="info-size-total">-</span></p>
|
|
<p class="m-0"><?php echo __( 'Autoloads', $this->plugin_name ); ?>: <span id="info-size-autoload" class="br-5 px-5 py-2">-</span></p>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
|
|
<?php if ( get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
|
|
<div class="bg-white br-10 px-30 py-20 mt-6">
|
|
<form id="remove_all_transients" class="mt-10">
|
|
<label class="mb-5 d-block">
|
|
<?php echo __( 'Type <strong>"REMOVE"</strong> to <strong>delete all transients</strong>', 'wp-database-tools' ); ?>
|
|
</label>
|
|
<input class="w-100p placeholder-light" type="text" placeholder="REMOVE" name="remove" onkeyup="this.value = this.value.toUpperCase();" required>
|
|
<button onclick="remove_all_transients(this)" type="button" name="" id="btn_remove_all_transients"
|
|
class="d-flex-center button button-secondary b-none btn-dark py-2 px-10 text-uppercase mt-10 w-100p font-md"
|
|
style="max-height: 30px;"
|
|
disabled
|
|
>
|
|
<p class="ml-20"><?php echo esc_html__( 'Execute', 'wp-database-tools' ); ?></p>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
|
|
</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="bg-white br-10 px-30 py-20 mt-6">
|
|
|
|
<div>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-scanner-feedback.php'; ?>
|
|
</div>
|
|
|
|
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo __( 'Last scanner', $this->plugin_name ); ?></h4>
|
|
<div class="d-flex-between">
|
|
<div>
|
|
<div class="">
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
|
|
<?php
|
|
$time_scanner = ( isset( $settings_page['scanner']->time ) ) ? $settings_page['scanner']->time : '-';
|
|
?>
|
|
<p class="m-0"><?php echo $time_scanner; ?></p>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<p class="m-0 font-bold font-sm px-5 text-uppercase"><?php echo __( 'Status', $this->plugin_name ); ?></p>
|
|
<?php
|
|
$status_scanner = ( isset( $settings_page['scanner']->status ) ) ? $settings_page['scanner']->status : '-';
|
|
?>
|
|
<?php if ( $status_scanner == 'success' ) : ?>
|
|
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
|
|
<?php elseif ( $status_scanner == 'error' ) : ?>
|
|
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
|
|
<?php else : ?>
|
|
<span class="">-</span>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="">
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Message', $this->plugin_name ); ?></p>
|
|
<?php
|
|
$time_scanner = ( isset( $settings_page['scanner']->message ) ) ? $settings_page['scanner']->message : 'Sin mensaje';
|
|
?>
|
|
<p class="m-0"><?php echo $time_scanner; ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="bg-white br-10 px-30 py-20 mt-6">
|
|
<h4 class="m-0 text-uppercase dark-blue-color"><?php esc_html_e( 'CRONJOB STATUS', 'wp-database-tools' ); ?></h4>
|
|
|
|
<div class="d-flex-between">
|
|
|
|
<div>
|
|
<div class="">
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
|
|
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_date' ) ?? '-' ); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Status', 'wp-database-tools' ); ?></p>
|
|
<?php if ( 'success' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
|
|
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
|
|
<?php elseif ( 'error' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
|
|
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
|
|
<?php elseif ( 'warning' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
|
|
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Warning', 'wp-database-tools' ); ?></span>
|
|
<?php else : ?>
|
|
<span class="">-</span>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Message', 'wp-database-tools' ); ?></p>
|
|
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_message' ) ?? '-' ); ?></p>
|
|
</div>
|
|
|
|
<div class=" mt-6">
|
|
<div class="m-0" id="">
|
|
<?php if ( $this->license->get_is_active() ) : ?>
|
|
<span class="bg-light-green px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'PRO License', 'wp-database-tools' ); ?></span>
|
|
<?php else : ?>
|
|
<span class="bg-light-red px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'Free License', 'wp-database-tools' ); ?></span>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="sm_col-1-1">
|
|
|
|
<div class="d-flex-center">
|
|
<div class="bg-white br-10 px-10 py-20 mt-6">
|
|
<?php
|
|
$url_support = ( $settings_page['config'] !== false ) ? $settings_page['config']->support->url : '#';
|
|
?>
|
|
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/support.svg'; ?>">
|
|
<a target="_blank" href="<?php echo $url_support; ?>" name="submit" class="d-flex-center button button-secondary b-none btn-orange py-5 px-20 text-uppercase w-100p mt-10">
|
|
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Support', $this->plugin_name ); ?></span>
|
|
</a>
|
|
</div>
|
|
<div class="bg-white br-10 px-10 py-20 mt-6">
|
|
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/buy.svg'; ?>">
|
|
<a target="_blank" href="https://wpdatabasetools.com/plugin/wp-database-tools/" name="submit" class="d-flex-center button button-secondary b-none btn-dark py-5 px-20 text-uppercase w-100p mt-10">
|
|
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Purchase', $this->plugin_name ); ?></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sm_d-flex">
|
|
<?php if ( $settings_page['config'] !== false ) : ?>
|
|
<?php foreach ( $settings_page['config']->banners as $key => $banner ) : ?>
|
|
<div class="mt-10">
|
|
<a target="_blank" href="<?php echo $banner->url; ?>">
|
|
<img class="mw-100p" src="<?php echo $banner->image; ?>">
|
|
</a>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|