Initial commit: Atomaste website

This commit is contained in:
2025-12-10 12:17:30 -05:00
commit 0b9e5d1605
19260 changed files with 5206382 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="expertmode">
<p>
<em><?php esc_html_e('Unless you have a problem, you can completely ignore everything here.', 'updraftplus');?></em>
</p>
<div class="advanced_settings_container">
<div class="advanced_settings_menu">
<?php
$updraftplus_admin->include_template('/wp-admin/advanced/tools-menu.php');
?>
</div>
<div class="advanced_settings_content">
<?php
if (empty($options)) $options = array();
$updraftplus_admin->include_template('/wp-admin/advanced/site-info.php', false, array('options' => $options));
$updraftplus_admin->include_template('/wp-admin/advanced/lock-admin.php');
$updraftplus_admin->include_template('/wp-admin/advanced/updraftcentral.php');
$updraftplus_admin->include_template('/wp-admin/advanced/search-replace.php');
$updraftplus_admin->include_template('/wp-admin/advanced/total-size.php');
$updraftplus_admin->include_template('/wp-admin/advanced/db-size.php');
$updraftplus_admin->include_template('/wp-admin/advanced/cron-events.php');
$updraftplus_admin->include_template('/wp-admin/advanced/export-settings.php');
$updraftplus_admin->include_template('/wp-admin/advanced/wipe-settings.php');
?>
</div>
</div>
</div>

View File

@@ -0,0 +1,24 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) {
die('No direct access allowed');
}
?>
<div class="advanced_tools cron_events">
<?php
echo '<h3>'.esc_html__('Cron events', 'updraftplus').'</h3>';
echo '<p>'.esc_html(__('Here, you can view the scheduled tasks set up by the UpdraftPlus plugin.', 'updraftplus').' '.__('These cron jobs are responsible for automating various backup processes at specified intervals.', 'updraftplus').' '.__('Each schedule includes details like the hook name, the interval, and the next scheduled run time.', 'updraftplus')).'</p>';
?>
<table class="wp-list-table widefat striped">
<thead>
<tr>
<th><strong><?php esc_html_e('Hook name', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Interval', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Next run', 'updraftplus'); ?></strong></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>

View File

@@ -0,0 +1,41 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) {
die('No direct access allowed');
}
$search_placeholder = __('Search for table', 'updraftplus');
?>
<div class="advanced_tools db_size">
<p>
<strong><?php esc_html_e('Total Size', 'updraftplus'); ?>: <span class="total-size"></span></strong>
</p>
<?php
if (!class_exists('UpdraftPlus_Database_Utility')) updraft_try_include_file('includes/class-database-utility.php', 'include_once');
$install_activate_link_of_wp_optimize_plugin = UpdraftPlus_Database_Utility::get_install_activate_link_of_wp_optimize_plugin();
if (!empty($install_activate_link_of_wp_optimize_plugin)) {
echo '<p>'.esc_html__('Reducing your database size with WP-Optimize helps to maintain a fast, efficient, and user-friendly website.', 'updraftplus').' '.wp_kses_post($install_activate_link_of_wp_optimize_plugin).' <a href="https://wordpress.org/plugins/wp-optimize/" target="_blank">'.esc_html__('Go here for more information.', 'updraftplus').'</a></p>';
}
?>
<p>
<input type="text" class="db-search" placeholder="<?php echo esc_attr($search_placeholder); ?>" title="<?php echo esc_attr($search_placeholder); ?>" aria-label="<?php echo esc_attr($search_placeholder); ?>"/>
<a href="#" class="button db-search-clear"><?php esc_html_e('Clear', 'updraftplus'); ?></a>
<a href="#" class="button-primary db-size-refresh"><?php esc_html_e('Refresh', 'updraftplus'); ?></a>
</p>
<table class="wp-list-table widefat striped">
<thead>
<tr>
<th><strong><?php esc_html_e('Table name', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Records', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Data size', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Index size', 'updraftplus'); ?></strong></th>
<th><strong><?php esc_html_e('Type', 'updraftplus'); ?></strong></th>
</tr>
</thead>
<tbody class="db-size-content"></tbody>
</table>
</div>

View File

@@ -0,0 +1,17 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools export_settings">
<h3><?php esc_html_e('Export / import settings', 'updraftplus');?></h3>
<p>
<?php echo wp_kses(sprintf(__('Here, you can export your UpdraftPlus settings (%s), either for using on another site, or to keep as a backup.', 'updraftplus'), '<strong>'.__('including any passwords', 'updraftplus').'</strong>'), array('strong' => array())).' '.esc_html__('This tool will export what is currently in the settings tab.', 'updraftplus');?>
</p>
<button type="button" style="clear:left;" class="button-primary" id="updraftplus-settings-export"><?php esc_html_e('Export settings', 'updraftplus');?></button>
<p>
<?php echo esc_html(__('You can also import previously-exported settings.', 'updraftplus').' '.__('This tool will replace all your saved settings.', 'updraftplus')); ?>
</p>
<button type="button" style="clear:left;" class="button-primary" id="updraftplus-settings-import"><?php esc_html_e('Import settings', 'updraftplus');?></button>
<input type="file" name="settings_file" id="import_settings">
</div>

View File

@@ -0,0 +1,30 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
if (!class_exists('UpdraftPlus_Addon_LockAdmin') || (defined('UPDRAFTPLUS_NOADMINLOCK') && UPDRAFTPLUS_NOADMINLOCK)) { ?>
<div class="advanced_tools lock_admin">
<p class="updraftplus-lock-advert">
<h3><?php esc_html_e('Lock access to the UpdraftPlus settings page', 'updraftplus'); ?></h3>
<?php
if (defined('UPDRAFTPLUS_NOADMINLOCK') && UPDRAFTPLUS_NOADMINLOCK) {
esc_html_e('This functionality has been disabled by the site administrator.', 'updraftplus');
} else {
?>
<em>
<?php
/* translators: %1$s is opening <a> tag, %2$s is closing </a> tag, %3$s is the link text 'Updraftplus Premium' */
echo wp_kses_post(sprintf(__('To %1$slock access to UpdraftPlus settings%2$s with a password, upgrade to %3$s.', 'updraftplus'), '<a href="https://teamupdraft.com/updraftplus/features/lock-updraftplus-settings/?utm_source=udp-plugin&utm_medium=referral&utm_campaign=paac&utm_content=lock-settings&utm_creative_format=text" target="_blank">', '</a>', '<a href="'.esc_url($updraftplus->get_url('premium')).'" target="_blank">UpdraftPlus Premium</a>').'.');
?>
</em>
<?php
}
?>
</p>
</div>
<?php }

View File

@@ -0,0 +1,11 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<?php if (!class_exists('UpdraftPlus_Addons_Migrator')) : ?>
<div class="advanced_tools search_replace">
<p class="updraftplus-search-replace-advert">
<h3><?php esc_html_e('Search / replace database', 'updraftplus'); ?></h3>
<em><?php echo wp_kses_post(sprintf(__('For direct site-to-site migration, get %s.', 'updraftplus'), '<a href="'.esc_url($updraftplus->get_url('premium')).'" target="_blank">UpdraftPlus Premium</a>')); ?></em>
</p>
</div>
<?php endif;

View File

@@ -0,0 +1,126 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools site_info">
<h3><?php esc_html_e('Site information', 'updraftplus');?></h3>
<table>
<?php
if (function_exists('php_uname')) {
// It appears (Mar 2015) that some mod_security distributions block the output of the string el6.x86_64 in PHP output, on the silly assumption that only hackers are interested in knowing what environment PHP is running on.
$uname_info = @php_uname('s').' '.@php_uname('n').' ';// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the function.
$release_name = @php_uname('r');// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the function.
if (preg_match('/^(.*)\.(x86_64|[3456]86)$/', $release_name, $matches)) {
$release_name = $matches[1].' ';
} else {
$release_name = '';
}
// In case someone does something similar with just the processor type string
$mtype = @php_uname('m');// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the function.
if ('x86_64' == $mtype) {
$mtype = '64-bit';
} elseif (preg_match('/^i([3456]86)$/', $mtype, $matches)) {
$mtype = $matches[1];
}
$uname_info .= $release_name.$mtype.' '.@php_uname('v');// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the function.
} else {
$uname_info = PHP_OS;
}
$web_server = $_SERVER["SERVER_SOFTWARE"];
$updraftplus_admin->settings_debugrow(__('Web server:', 'updraftplus'), htmlspecialchars($web_server).' ('.htmlspecialchars($uname_info).')');
if (defined('UPDRAFTPLUS_THIS_IS_CLONE')) {
$response = wp_remote_get('http://169.254.169.254/metadata/v1/user-data', array('timeout' => 2));
if (!is_wp_error($response) && 200 === wp_remote_retrieve_response_code($response)) {
$json_body = wp_remote_retrieve_body($response);
$metadata = json_decode($json_body, true);
if (isset($metadata['image_id'])) $updraftplus_admin->settings_debugrow(__('UpdraftClone image:', 'updraftplus'), htmlspecialchars($metadata['image_id']));
}
}
$updraftplus_admin->settings_debugrow('ABSPATH:', htmlspecialchars(ABSPATH));
$updraftplus_admin->settings_debugrow('WP_CONTENT_DIR:', htmlspecialchars(WP_CONTENT_DIR));
$updraftplus_admin->settings_debugrow('WP_PLUGIN_DIR:', htmlspecialchars(WP_PLUGIN_DIR));
$updraftplus_admin->settings_debugrow('Table prefix:', htmlspecialchars($updraftplus->get_table_prefix()));
$updraftplus_admin->settings_debugrow(__('Web-server disk space in use by UpdraftPlus', 'updraftplus').':', '<span class="updraft_diskspaceused">'.UpdraftPlus_Filesystem_Functions::get_disk_space_used('updraft').'</span> <a class="updraft_diskspaceused_update" href="'.esc_url(UpdraftPlus::get_current_clean_url()).'">'.__('refresh', 'updraftplus').'</a>');
$peak_memory_usage = memory_get_peak_usage(true)/1048576;
$memory_usage = memory_get_usage(true)/1048576;
$updraftplus_admin->settings_debugrow(__('Peak memory usage', 'updraftplus').':', $peak_memory_usage.' MB');
$updraftplus_admin->settings_debugrow(__('Current memory usage', 'updraftplus').':', $memory_usage.' MB');
$updraftplus_admin->settings_debugrow(__('Memory limit', 'updraftplus').':', htmlspecialchars(ini_get('memory_limit')));
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'PHP'), htmlspecialchars(phpversion()).' - <a href="admin-ajax.php?page=updraftplus&amp;action=updraft_ajax&amp;subaction=phpinfo&amp;nonce='.wp_create_nonce('updraftplus-credentialtest-nonce').'" id="updraftplus-phpinfo">'.__('show PHP information (phpinfo)', 'updraftplus').'</a>');
$db_version = $wpdb->get_var('SELECT VERSION()');
// WPDB::db_version() uses mysqli_get_server_info() ; see: https://github.com/joomla/joomla-cms/issues/9062
if ('' == $db_version) $db_version = $wpdb->db_version();
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'MySQL'), htmlspecialchars($db_version));
$mysql_max_packet_size = round($updraftplus->max_packet_size(false, false)/1048576, 1);
$updraftplus_admin->settings_debugrow(__('Database maximum packet size:', 'updraftplus'), $mysql_max_packet_size.' MB');
$sql_mode = $wpdb->get_var('SELECT @@GLOBAL.sql_mode');
$sql_mode = !empty($sql_mode) ? htmlspecialchars($sql_mode) : '-';
$updraftplus_admin->settings_debugrow(__('Current SQL mode:', 'updraftplus'), $sql_mode);
if (function_exists('curl_version') && function_exists('curl_exec')) {
$cv = curl_version();
$cvs = $cv['version'].' / SSL: '.$cv['ssl_version'].' / libz: '.$cv['libz_version'];
} else {
$cvs = __('Not installed', 'updraftplus').' ('.__('required for some remote storage providers', 'updraftplus').')';
}
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'Curl'), htmlspecialchars($cvs));
$updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'OpenSSL'), defined('OPENSSL_VERSION_TEXT') ? OPENSSL_VERSION_TEXT : '-');
$updraftplus_admin->settings_debugrow('MCrypt:', function_exists('mcrypt_encrypt') ? __('Yes') : __('No'));
if (version_compare(PHP_VERSION, '5.2.0', '>=') && extension_loaded('zip')) {
$ziparchive_exists = __('Yes', 'updraftplus');
} else {
// First do class_exists, because method_exists still sometimes segfaults due to a rare PHP bug
$ziparchive_exists = (class_exists('ZipArchive') && method_exists('ZipArchive', 'addFile')) ? __('Yes', 'updraftplus') : __('No', 'updraftplus');
}
$updraftplus_admin->settings_debugrow('ZipArchive::addFile:', $ziparchive_exists);
$binzip = $updraftplus->find_working_bin_zip(false, false);
$updraftplus_admin->settings_debugrow(__('zip executable found:', 'updraftplus'), ((is_string($binzip)) ? __('Yes').': '.$binzip : __('No')));
$hosting_bytes_free = $updraftplus->get_hosting_disk_quota_free();
if (is_array($hosting_bytes_free)) {
$perc = round(100*$hosting_bytes_free[1]/(max($hosting_bytes_free[2], 1)), 1);
$updraftplus_admin->settings_debugrow(__('Free disk space in account:', 'updraftplus'), sprintf(__('%s (%s used)', 'updraftplus'), round($hosting_bytes_free[3]/1048576, 1)." MB", "$perc %"));
}
if (function_exists('apache_get_modules')) {
$apache_info = '';
$apache_modules = apache_get_modules();
if (is_array($apache_modules)) {
sort($apache_modules, SORT_STRING);
foreach ($apache_modules as $mod) {
if (0 === strpos($mod, 'mod_')) {
$apache_info .= ', '.substr($mod, 4);
} else {
$apache_info .= ', '.$mod;
}
}
}
$apache_info = substr($apache_info, 2);
$updraftplus_admin->settings_debugrow(__('Apache modules', 'updraftplus').':', $apache_info);
}
if (empty($options['suppress_plugins_for_debugging'])) {
$updraftplus_admin->settings_debugrow(__('Install debugging plugins:', 'updraftplus'), '<a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=wp-crontrol'), 'install-plugin_wp-crontrol').'">WP Crontrol</a> | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=query-monitor'), 'install-plugin_query-monitor').'">Query Monitor</a> | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=sql-executioner'), 'install-plugin_sql-executioner').'">SQL Executioner</a> | <a href="'.wp_nonce_url(self_admin_url('update.php?action=install-plugin&amp;updraftplus_noautobackup=1&amp;plugin=wp-file-manager'), 'install-plugin_wp-file-manager').'">WP Filemanager</a>');
}
$updraftplus_admin->settings_debugrow("HTTP Get: ", '<input id="updraftplus_httpget_uri" type="text" class="call-action"> <a href="'.esc_url(UpdraftPlus::get_current_clean_url()).'" id="updraftplus_httpget_go">'.__('Fetch', 'updraftplus').'</a> <a href="'.esc_url(UpdraftPlus::get_current_clean_url()).'" id="updraftplus_httpget_gocurl">'.__('Fetch', 'updraftplus').' (Curl)</a><p id="updraftplus_httpget_results"></p>');
$updraftplus_admin->settings_debugrow(__("Call WordPress action:", 'updraftplus'), '<input id="updraftplus_callwpaction" type="text" class="call-action"> <a href="'.esc_url(UpdraftPlus::get_current_clean_url()).'" id="updraftplus_callwpaction_go">'.__('Call', 'updraftplus').'</a><div id="updraftplus_callwpaction_results"></div>');
$updraftplus_admin->settings_debugrow('Site ID:', '(used to identify any Vault connections) <span id="updraft_show_sid">'.htmlspecialchars($updraftplus->siteid()).'</span> - <a href="'.esc_url(UpdraftPlus::get_current_clean_url()).'" id="updraft_reset_sid">'.__('reset', 'updraftplus')."</a>");
$updraftplus_admin->settings_debugrow('', '<a href="admin-ajax.php?page=updraftplus&amp;action=updraft_ajax&amp;subaction=backuphistoryraw&amp;nonce='.wp_create_nonce('updraftplus-credentialtest-nonce').'" id="updraftplus-rawbackuphistory">'.__('Show raw backup and file list', 'updraftplus').'</a><br><span class="hidden-in-updraftcentral"><a id="updraftplus-remote-rescan-debug" href="#">'.__('Rescan remote storage', 'updraftplus').' - '.__('log results to console', 'updraftplus').'</a></span>');
?>
</table>
</div>

View File

@@ -0,0 +1,41 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) {
die('No direct access allowed');
}
?>
<div tabindex="0" class="advanced_tools_button active" id="site_info">
<span class="advanced_tools_text dashicons dashicons-info"></span>
<?php esc_html_e('Site information', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="lock_admin">
<span class="advanced_tools_text dashicons dashicons-lock"></span>
<?php esc_html_e('Lock settings', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="updraft_central">
<span class="advanced_tools_text dashicons dashicons-networking"></span>
UpdraftCentral
</div>
<div tabindex="0" class="advanced_tools_button" id="search_replace">
<span class="advanced_tools_text dashicons dashicons-search"></span>
<?php esc_html_e('Search / replace database', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="total_size">
<span class="advanced_tools_text dashicons dashicons-performance"></span>
<?php esc_html_e('Site size', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="db_size">
<span class="advanced_tools_text dashicons dashicons-database-view"></span>
<?php esc_html_e('Database size', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="cron_events">
<span class="advanced_tools_text dashicons dashicons-list-view"></span>
<?php esc_html_e('Cron events', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="export_settings">
<span class="advanced_tools_text dashicons dashicons-media-default"></span>
<?php esc_html_e('Export / import settings', 'updraftplus'); ?>
</div>
<div tabindex="0" class="advanced_tools_button" id="wipe_settings">
<span class="advanced_tools_text dashicons dashicons-trash"></span>
<?php esc_html_e('Wipe settings', 'updraftplus'); ?>
</div>

View File

@@ -0,0 +1,23 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
$backupable_entities = $updraftplus->get_backupable_file_entities(true, true);
?>
<div class="advanced_tools total_size">
<h3> <?php esc_html_e('Total (uncompressed) on-disk data:', 'updraftplus');?></h3>
<p class="uncompressed-data">
<em>
<?php esc_html_e('N.B. This count is based upon what was, or was not, excluded the last time you saved the options.', 'updraftplus');?>
</em>
</p>
<table>
<?php
foreach ($backupable_entities as $key => $info) {
$sdescrip = preg_replace('/ \(.*\)$/', '', $info['description']);
if (strlen($sdescrip) > 20 && isset($info['shortdescription'])) $sdescrip = $info['shortdescription'];
$updraftplus_admin->settings_debugrow(ucfirst($sdescrip).':', '<span id="updraft_diskspaceused_'.$key.'"><em></em></span> <a href="'.esc_url(UpdraftPlus::get_current_clean_url()).'" class="count" data-type="' . $key . '" onclick="updraftplus_diskspace_entity(\''.$key.'\'); return false;">'.__('count', 'updraftplus').'</a>');
}
?>
</table>
</div>

View File

@@ -0,0 +1,10 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
global $updraftcentral_host_plugin;
if ($updraftcentral_host_plugin && 'updraftplus' !== $updraftcentral_host_plugin->get_plugin_name()) {
$updraftcentral_host_plugin->debugtools_dashboard();
} else {
do_action('updraftplus_debugtools_dashboard');
}

View File

@@ -0,0 +1,15 @@
<?php
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed');
?>
<div class="advanced_tools wipe_settings">
<h3><?php esc_html_e('Wipe settings', 'updraftplus');?></h3>
<p><?php echo esc_html(__('This button will delete all UpdraftPlus settings and progress information for in-progress backups (but not any of your existing backups from your cloud storage).', 'updraftplus').' '.__('You will then need to enter all your settings again.', 'updraftplus').' '.__('You can also do this before deactivating/deinstalling UpdraftPlus if you wish.', 'updraftplus'));?></p>
<form method="post" action="<?php echo esc_url(add_query_arg(array('error' => false, 'updraft_restore_success' => false, 'action' => false, 'page' => 'updraftplus'))); ?>">
<input type="hidden" name="action" value="updraft_wipesettings" />
<input type="hidden" name="nonce" value="<?php echo esc_attr(wp_create_nonce('updraftplus-wipe-setting-nonce'));?>">
<input type="submit" class="button-primary updraft_wipe_settings" value="<?php esc_attr_e('Wipe settings', 'updraftplus'); ?>" onclick="var updraftplus_wipe_settings = confirm('<?php echo esc_js(__('This will delete all your UpdraftPlus settings - are you sure you want to do this?', 'updraftplus'));?>'); if (updraftplus_wipe_settings) { updraft_settings_form_changed = false; }; return updraftplus_wipe_settings;">
</form>
<h3><?php esc_html_e('UpdraftPlus Tour', 'updraftplus');?></h3>
<p><?php esc_html_e('Press this button to take a tour of the plugin.', 'updraftplus'); ?></p>
<a href="<?php echo esc_url(UpdraftPlus_Options::admin_page_url()); ?>?page=updraftplus&updraftplus_tour=1" class="js-updraftplus-tour button button-primary"><?php esc_html_e("Reset tour", "updraftplus"); ?></a>
</div>