<?php
/*
=====================================================
 Copyright (c) Ben Croker
 http://www.putyourlightson.net
=====================================================
Change the template below to your sitemap template
Put this file in the root directory of your site
Example: http://www.mydomain.com/sitemap.php
=====================================================
*/

// Change this to your sitemap template
#$template = "site/sitemap/";
#$sitemap_url = "http://" . $_SERVER["HTTP_HOST"] . "/" . $template;
$sitemap_url = "http://64.13.231.119/index.php/site/sitemap/";

// Set content to XML and UTF-8 encoded
header("Content-type: text/xml; charset=UTF-8");

// Choose a method and read template file
// cURL method (

if(function_exists("curl_init")){
	$curl_handle = curl_init($sitemap_url);
	curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1); 
	curl_exec($curl_handle);
	curl_close($curl_handle);
}
// readfile method
else{
	readfile($sitemap_url);
}

#$foo = system('wget http://paramoreredd.com/ ~', $output);
#echo $output;
?> 