403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.216.229
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/poseidon-gagra.ru/wp-content/plugins/awebooking/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/poseidon-gagra.ru/wp-content/plugins/awebooking/templates/notices.php
<?php
/**
 * Display the notices template.
 *
 * This template can be overridden by copying it to {yourtheme}/awebooking/notices.php.
 *
 * @see      http://docs.awethemes.com/awebooking/developers/theme-developers/
 * @author   awethemes
 * @package  AweBooking
 * @version  3.1.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Filter the HTML message (not overlay).
$html_messages = $messages->where( 'overlay', false )->all();

foreach ( $html_messages as $message ) {
	// Otherwise, just print the message.
	printf( '<div class="notification notification--%1$s %2$s" role="notice">%3$s</div>',
		esc_attr( $message['level'] ),
		( true === $message['important'] ) ? 'important' : 'dismissible',
		wp_kses_post( wpautop( $message['message'] ) )
	);
}

// With dialog messages, we need some JS to display them.
$dialog_messages = $messages->where( 'overlay', true );
if ( $dialog_messages->isEmpty() ) {
	return;
}

// Transform messages to sweetalert2 data.
$dialog_messages = $dialog_messages->values()
	->transform(function ( $m ) {
		return [
			'type'  => sanitize_key( $m['level'] ),
			'title' => trim( esc_html( $m['title'] ) ),
			'text'  => trim( esc_html( $m['message'] ) ),
			'timer' => $m['important'] ? null : 5000,
		];
	})->all();

// Ensure the sweetalert2 is enqueued.
if ( ! wp_style_is( 'sweetalert2', 'enqueued' ) ) {
	wp_enqueue_style( 'sweetalert2' );
}

if ( ! wp_script_is( 'sweetalert2', 'enqueued' ) ) {
	wp_enqueue_script( 'sweetalert2' );
}

?><script type="text/javascript">
(function() {
	'use strict';

	var _notices = <?php print $dialog_messages ? json_encode( $dialog_messages ) : '[]'; ?>;

	function alertWithSwal(items) {
		var toast = swal.mixin({ toast: true, buttonsStyling: false, showCancelButton: false, showConfirmButton: true, confirmButtonClass: 'button' });
		toast.queue(items);
	}

	document.addEventListener('DOMContentLoaded', function() {
		window.swal ? alertWithSwal(_notices) : _notices.forEach(function(m) { alert(m.text); })
	});
})();
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit