<?php
/*
Template Name: Products
*/
?>
<?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">
       <link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_directory' ); ?>/products.css" />
       
      
       
      <?php
				// Start the Loop.
				while ( have_posts() ) : the_post();
					// Include the page content template.
					get_template_part( 'content', 'page' );
				endwhile;
			?>
			<?php
include "servervars.php";

//echo file_get_contents("http://www.".$serverone."/central/getcats.php?guid=$guid&width=$width&s=$serverone"); 
$ch = curl_init();
			$timeout = 5;
			$url="http://www.".$serverone."/central/getcats.php?guid=$guid&width=$width&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); 
			echo $data;
?>

  <div id="clear"></div>
     
      </div>  
      </div>  
      </div>  
<?php get_footer(); ?>