Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.22.42.25
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tickets/Seating/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tickets/Seating/QR.php
<?php
/**
 * Handles the integration of the Seating feature with the QR code functionality.
 *
 * @since   5.16.0
 *
 * @package TEC\Tickets\Seating;
 */

namespace TEC\Tickets\Seating;

use TEC\Common\Contracts\Provider\Controller as Controller_Contract;

/**
 * Class QR.
 *
 * @since   5.16.0
 *
 * @package TEC\Tickets\Seating;
 */
class QR extends Controller_Contract {
	/**
	 * Binds and sets up implementations, subscribes to WordPress hooks and binds implementations.
	 *
	 * @since 5.16.0
	 */
	protected function do_register(): void {
		add_filter( 'tec_tickets_qr_checkin_attendee_data', [ $this, 'inject_qr_data' ], 10, 2 );
	}

	/**
	 * Unregisters the controller by unsubscribing from WordPress hooks.
	 *
	 * @since 5.16.0
	 *
	 * @return void
	 */
	public function unregister(): void {
		remove_filter( 'tec_tickets_qr_checkin_attendee_data', [ $this, 'inject_qr_data' ], 10, 2 );
	}

	/**
	 * Injects ASC data into the data returned when a QR code is scanned.
	 *
	 * @since 5.16.0
	 *
	 * @param array<string,mixed> $attendee_data The data returned when a QR code is scanned.
	 * @param int                 $attendee_id   The ID of the attendee.
	 *
	 * @return array<string,mixed> The data returned when a QR code is scanned, filtered to include ASC data if applicable.
	 */
	public function inject_qr_data( $attendee_data, $attendee_id ) {
		if ( ! (
			is_array( $attendee_data )
			&& is_numeric( $attendee_id )
			&& (int) $attendee_id == $attendee_id
			&& isset( $attendee_data['ticket_id'] )
		) ) {
			return $attendee_data;
		}

		// Let's check the ticket of this Attendee is an ASC one.
		$ticket_id             = $attendee_data['ticket_id'];
		$uses_assigned_seating = get_post_meta( $ticket_id, Meta::META_KEY_ENABLED, true );

		if ( ! $uses_assigned_seating ) {
			return $attendee_data;
		}

		$attendee_data['asc_ticket'] = true;
		$attendee_data['seat_label'] = ( (string) get_post_meta(
			$attendee_id,
			Meta::META_KEY_ATTENDEE_SEAT_LABEL,
			true
		)
		);

		return $attendee_data;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit