/******************************************************************************************************************
*
* Copyright 2008 AutomaticSiteMap
*
* Place this file in your webroot directory so it's accessible via:
* http://www.yourdomain.com/AutomaticSiteMapClient.php
*
* For more information please visit http://www.AutomaticSiteMap.com or email support@automaticsitemap.com
*
******************************************************************************************************************
*/
$act = strtolower($_GET['do']);
$serverProtocol = 'http';
$serverHost = 'www.automaticsitemap.com';
$serverPath = '/rpc/client';
$clientVersion = 'ASM.PHP.1.3';
$host = $_GET['host'];
$ip = $_SERVER['REMOTE_ADDR'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
if ($host != NULL && strlen(trim($host))>0) {
$url = $serverProtocol . "://" . $serverHost . $serverPath . "?do=sitemap&ip=" . urlencode($ip) . "&v=" . urlencode($clientVersion) . "&ua=" . urlencode($userAgent) . "&host=" . urlencode($host);
$handle = fopen($url, "r");
while ( ($buf=fread( $handle, 8192 )) != '' ) { $contents .= $buf; }
echo $contents;
fclose($handle);
} else {
echo "";
echo "
This file allows AutomaticSiteMap.com to automatically generate your Sitemap.
"; echo "http://www.automaticsitemap.com/
"; echo "$clientVersion
"; echo ""; } ?>