1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- ?>
- <?php
- 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(); ?>
|