<?php
$url=$_SERVER['SERVER_NAME'];
$dns = explode('.',$url);
$ddns = $dns[0];
if ($ddns != "www" && $ddns != "")
{
//echo $ddns;
//exit;
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META CONTENT="text/html; CHARSET=UTF-8" HTTP-EQUIV="Content-Type">
<TITLE></TITLE>
</HEAD>
<frameset frameborder="0" framespacing="0" scrolling="no" border="0" marginheight="0" marginwidth="0" rows="0,*">
<frame scrolling="NO" noresize="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" target="main" name="main" SRC="about:blank">
<frame scrolling="yes" noresize="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" target="main" name="main" src="http://www.XX.com/<?php echo $ddns ?>/1.html">
<noframes>
<body>
<p>This page uses frames, but your browser doesn''t support them.</p></body>
</noframes>
</frameset>
</HTML>
<?php } ?>