HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/frameMyrskyNew/online_quote_offer.php
<?php
/**
 * @package WordPress
 * @subpackage frameLED_Theme
 */
/*
Template Name: Online Quote offer
*/
?>

<?php get_header() ?>
<div class="about">
<? 
	$the_title = get_the_title();
	if($the_title != "My Cart"){
		echo "<h1>&nbsp;&nbsp;&nbsp;".$the_title."</h1>";
	}
?>
<?php
	$page_url = $_GET[page_url];
	$offer_id = $_GET[mrp_promotion_id];
	$desc = $_GET[desc];
	$arr_1 = array("%","(",")");
	$arr_2 = array("PPP","LL","RR");
	$page_url = $page_url?base64_decode($page_url):"/quote/fab_quote.php";
	$desc = $desc?str_replace($arr_2,$arr_1,$desc):"";
	if (have_posts()) : while (have_posts()) : the_post(); 
		$page_content = get_the_content(); 
		wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
	endwhile; endif;
	$content_array = explode("$$$",$page_content);
	if(count($content_array) > 1){
		$page_explanations = trim($content_array[0]);
		$page_path = trim($content_array[1]);
		echo "<div style='padding:0 20px'>".$page_explanations."<br>".$desc."</div>";
	}else{
		if($desc) {
			echo "<div style='padding:0 20px'>".$desc."</div>";
		}
		$page_path = trim($content_array[0]);	
	}
?>

	<iframe  src="<?php echo get_bloginfo('wpurl').'/'.$page_path.$page_url."?is_wordpress=1&lang=zh&mrp_promotion_id=$offer_id"; ?>" 
		name="mainFrame" width="960" height="400" scrolling="auto" frameborder="0" onload="this.height=mainFrame.document.body.scrollHeight" >
	</iframe>

<?php get_footer() ?>