PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
parts
/
sidebar
<?php use BackWPup\Utils\BackWPupHelpers; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @var int $job_id The job ID. * @var array $excludedTables Optional. The excluded tables. * @var int $second_job_id ID of the second job we are retrieving the frequency settings for. Only avaialble during onboarding. */ if ( ! isset( $job_id ) && get_site_option( 'backwpup_onboarding', false ) ) { $job_id = $second_job_id; } if ( ! isset( $job_id ) ) { return; } BackWPupHelpers::component( 'navigation-header', [ 'title' => __( 'Select Tables', 'backwpup' ), 'type' => 'sidebar', 'navigation' => 'database', ] ); /** @var wpdb $wpdb */ global $wpdb; $dbtables = $wpdb->get_results('SHOW TABLES', ARRAY_N); $tables = []; $defaultexcludedtables = []; foreach ( $dbtables as $dbtable ) { $tables[] = $dbtable[0]; if ( ! strstr( (string) $dbtable[0], $wpdb->prefix ) ) { $defaultexcludedtables[] = $dbtable[0]; } } $excludedTables = BackWPup_Option::get( $job_id, 'dbdumpexclude', $defaultexcludedtables ); $allTablesSelected = ! empty( $tables ) && count( array_diff( $tables, $excludedTables ) ) === count( $tables ); ?> <?php BackWPupHelpers::component( 'containers/scrollable-start', [ 'gap_size' => 'small' ] ); ?> <p class="text-base"><?php esc_html_e( 'Select tables you want to backup', 'backwpup' ); ?></p> <div class="flex flex-col gap-4 rounded-lg p-6 bg-grey-100"> <?php BackWPupHelpers::component( 'form/search', [ 'name' => 'filter_tables', 'placeholder' => __( 'Search…', 'backwpup' ), 'trigger' => 'filter-tables', ] ); ?> <div class="flex justify-start"> <?php BackWPupHelpers::component( 'form/checkbox', [ 'name' => 'select_all_tables', 'value' => '1', 'label' => __( 'Select All', 'backwpup' ), 'checked' => $allTablesSelected, 'trigger' => 'select-all-tables', 'style' => 'default', ] ); ?> </div> <hr class="my-1 text-grey-300"> <div class="js-backwpup-tables-list flex flex-col gap-4"> <?php foreach ( $tables as $table ) { $checked = ! in_array( $table, $excludedTables ); BackWPupHelpers::component( 'form/checkbox', [ 'name' => 'tabledb[]', 'value' => $table, 'checked' => $checked, 'label' => $table, ] ); } ?> </div> </div> <?php BackWPupHelpers::component( 'form/hidden', [ 'name' => 'dbdumpfile', 'value' => 'local', ] ); BackWPupHelpers::component( 'form/hidden', [ 'name' => 'dbdumpwpdbsettings', 'value' => true, ] ); BackWPupHelpers::component( 'form/hidden', [ 'name' => 'dbdumpfilecompression', 'value' => '', ] ); BackWPupHelpers::component( 'form/hidden', [ 'name' => 'job_id', 'value' => $job_id, ] ); ?> <?php BackWPupHelpers::component( 'containers/scrollable-end' ); ?> <?php BackWPupHelpers::component( 'form/button', [ 'type' => 'primary', 'label' => __( 'Save settings', 'backwpup' ), 'full_width' => true, 'trigger' => 'close-sidebar', 'identifier' => 'save-excluded-tables', ] ); ?>
[-] storages.php
[edit]
[-] storage-DROPBOX.php
[edit]
[-] settings-data-type.php
[edit]
[-] frequency.php
[edit]
[-] storage-S3.php
[edit]
[-] storage-SUGARSYNC.php
[edit]
[+]
parts
[-] settings-network.php
[edit]
[+]
dropbox-parts
[-] select-tables.php
[edit]
[+]
sugar-sync-parts
[-] storage-RSC.php
[edit]
[-] edit-title.php
[edit]
[-] storage-FTP.php
[edit]
[+]
..
[-] storage-FOLDER.php
[edit]
[-] storage-MSAZURE.php
[edit]
[-] select-files.php
[edit]
[-] settings-jobs.php
[edit]
[-] advanced-settings.php
[edit]
[-] format.php
[edit]
[-] settings-logs.php
[edit]