<?php /* Template Name: Product Detail */ /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?> <?php /** * @package WordPress * @subpackage Default_Theme */ get_header(); ?> <div id="main-content" class="main-content inner-wrapper"> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php include "servervars.php"; $id=$_GET['id']; //$producttitle= file_get_contents("http://www.".$serverone."/central/gettitle.php?id=$id"); $ch = curl_init(); $timeout = 5; $url="http://www.".$serverone."/central/gettitledetails.php?id=$id"; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); $producttitle= $data; $ch = curl_init(); $timeout = 5; $url="http://www.".$serverone."/central/getdetails.php?id=$id&width=$width&guid=$guid&s=$serverone"; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); $data=str_replace('.php', '/', $data); $productcontent= $data; //$productcontent= file_get_contents("http://www.".$serverone."/central/getlisting.php?id=$id&width=$width&guid=$guid&s=$serverone"); ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" /> <?php echo $productcontent; ?> <div id="clear"></div> </div> </div> </div> <?php get_footer(); ?>