File size: 11.92Kb
<?php
###################################################################
## ##
## Модуль "VD counter" является многофункциональным счетчиком ##
## посетителей сайта. ##
## Автор: Администратор www.wmzshop.ru ##
## Страница автора: http://www.wmzshop.ru ##
## В случае проблем с установкой (или другие вопросы), можете ##
## обратиться по E-mail: [email protected] или ICQ: 221484848 ##
## ##
## ##
## ##
## ##
###################################################################
###################################################################
## ##
## ВНИМАНИЕ Любая модернизация файлов приведет к ##
## неработоспособности скрипта. Изменения в файлах ##
## возможны лишь с согласия автора. ##
## ##
###################################################################
?>
<html>
<head>
<title>Статистика визитов роботов поисковых машин </title>
<META HTTP-EQUIV="content-type" CONTENT="TEXT/HTML; CHARSET=windows-1251">
</head>
<body>
<img src=http://<?php echo"$HTTP_HOST" ?>/wmzcounter/countimg/logo.gif width=760 height=150 border=0><hr>
<?php
$tm=6000;
if (!empty($supermes) && !empty($yearpost))
{
$year=$yearpost;
$mes=$mespost;
$day="";
include"inc/calendar.inc";
$macho.="$year/$mes/";
chdir($macho);
for ($days=1; $days<32; $days++)
{
if ($days<=9)
{
$zero=0;
$days=$zero.$days;
}
@$Rambler=file($days.".Rambler");
@$Ramblersum=$Ramblersum+$Rambler[0];
@$Yandex=file($days.".Yandex");
@$Yandexsum=$Yandexsum+$Yandex[0];
@$AltaVista=file($days.".AltaVista");
@$AltaVistasum=$AltaVistasum+$AltaVista[0];
@$Fast=file($days.".Fast");
@$Fastsum=$Fastsum+$Fast[0];
@$Google=file($days.".Google");
@$Googlesum=$Googlesum+$Google[0];
@$Infoseek=file($days.".Infoseek");
@$Infoseeksum=$Infoseeksum+$Infoseek[0];
@$Yahoo=file($days.".Yahoo");
@$Yahoosum=$Yahoosum+$Yahoo[0];
@$Aport=file($days.".Aport");
@$Aportsum=$Aportsum+$Aport[0];
@$AOL=file($days.".AOL");
@$AOLsum=$AOLsum+$AOL[0];
@$Excite=file($days.".Excite");
@$Excitesum=$Excitesum+$Excite[0];
@$Lycos=file($days.".Lycos");
@$Lycossum=$Lycossum+$Lycos[0];
@$DirectHit=file($days.".DirectHit");
@$DirectHitsum=$DirectHitsum+$DirectHit[0];
}
@$Rambler[0]=$Ramblersum;
@$Yandex[0]=$Yandexsum;
@$AltaVista[0]=$AltaVistasum;
@$Fast[0]=$Fastsum;
@$Google[0]=$Googlesum;
@$Infoseek[0]=$Infoseeksum;
@$Yahoo[0]=$Yahoosum;
@$Aport[0]=$Aportsum;
@$AOL[0]=$AOLsum;
@$Excite[0]=$Excitesum;
@$Lycos[0]=$Lycossum;
@$DirectHit[0]=$DirectHitsum;
}
else
{
if (!empty($yearpost) && !empty($mespost) && !empty($daypost))
{
$year=$yearpost;
$mes=$mespost;
$day=$daypost;
$nissan=getcwd();
$macho.="$year/$mes/";
chdir($macho);
//Поисковики
@$Rambler=file($day.".Rambler");
@$Yandex=file($day.".Yandex");
@$AltaVista=file($day.".AltaVista");
@$Fast=file($day.".Fast");
@$Google=file($day.".Google");
@$Infoseek=file($day.".Infoseek");
@$Yahoo=file($day.".Yahoo");
@$Aport=file($day.".Aport");
@$AOL=file($day.".AOL");
@$Excite=file($day.".Excite");
@$Lycos=file($day.".Lycos");
@$DirectHit=file($day.".DirectHit");
@$dataRambler=file($day.".dataRambler");
@$dataYandex=file($day.".dataYandex");
@$dataAltaVista=file($day.".dataAltaVista");
@$dataFast=file($day.".dataFast");
@$dataGoogle=file($day.".dataGoogle");
@$dataInfoseek=file($day.".dataInfoseek");
@$dataYahoo=file($day.".dataYahoo");
@$dataAport=file($day.".dataAport");
@$dataAOL=file($day.".dataAOL");
@$dataExcite=file($day.".dataExcite");
@$dataLycos=file($day.".dataLycos");
@$dataDirectHit=file($day.".dataDirectHit");
}
}
if (empty($Rambler[0]))
{
$Rambler[0]="0";
}
if (empty($Yandex[0]))
{
$Yandex[0]="0";
}
if (empty($AltaVista[0]))
{
$AltaVista[0]="0";
}
if (empty($Fast[0]))
{
$Fast[0]="0";
}
if (empty($Google[0]))
{
$Google[0]="0";
}
if (empty($Infoseek[0]))
{
$Infoseek[0]="0";
}
if (empty($Yahoo[0]))
{
$Yahoo[0]="0";
}
if (empty($Aport[0]))
{
$Aport[0]="0";
}
if (empty($AOL[0]))
{
$AOL[0]="0";
}
if (empty($Excite[0]))
{
$Excite[0]="0";
}
if (empty($Lycos[0]))
{
$Lycos[0]="0";
}
if (empty($DirectHit[0]))
{
$DirectHit[0]="0";
}
if (empty($dataRambler[0]))
{
$dataRambler[0]="- нет данных";
}
if (empty($dataYandex[0]))
{
$dataYandex[0]="- нет данных";
}
if (empty($dataAltaVista[0]))
{
$dataAltaVista[0]="- нет данных";
}
if (empty($dataFast[0]))
{
$dataFast[0]="- нет данных";
}
if (empty($dataGoogle[0]))
{
$dataGoogle[0]="- нет данных";
}
if (empty($dataInfoseek[0]))
{
$dataInfoseek[0]="- нет данных";
}
if (empty($dataYahoo[0]))
{
$dataYahoo[0]="- нет данных";
}
if (empty($dataAport[0]))
{
$dataAport[0]="- нет данных";
}
if (empty($dataAOL[0]))
{
$dataAOL[0]="- нет данных";
}
if (empty($dataExcite[0]))
{
$dataExcite[0]="- нет данных";
}
if (empty($dataLycos[0]))
{
$dataLycos[0]="- нет данных";
}
if (empty($dataDirectHit[0]))
{
$dataDirectHit[0]="- нет данных";
}
if (!empty($supermes))
{
$day="";
$mes="";
}
@$fp = fsockopen ("$HTTP_HOST", 80, $errno, $errstr, 1);
if (!$fp) {
echo "<br>Технические проблемы.<br>
Попробуйте запустить скрипт ещё раз через некоторое время.
<br><hr>
Дизайн и программирование<br>© <a href=www.wmzshop.ru>www.wmzshop.ru </a>";
exit;
}
else
{
fputs ($fp, "GET / HTTP/1.0\r\nHost: $HTTP_HOST\r\n\r\n");
while (!feof($fp)) {
@$data.= fgets ($fp,128);
}
fclose ($fp);
if(eregi("www.wmzshop.ru",$data))
{
echo "Статистика визитов роботов поисковых машин отображается в хостах за $day.$mest$mes.$year<br><br>";
//Rambler
if (!empty($Rambler[0]))
{
$Ramblerimg="<img src=countimg/host.gif width=$Rambler[0] height=5 alt='Хосты' border=1>";
}
else
{
$Ramblerimg="";
}
echo "<table width=$tm border=0
<tr>
<td width=120>
Rambler
</td>
<td width=30>
$Rambler[0]
</td>
<td width=240>
последний визит в $dataRambler[0]
</td>
<td width=%100>
$Ramblerimg
</td>
</tr>
</table>";
//Yandex
if (!empty($Yandex[0]))
{
$Yandeximg="<img src=countimg/host.gif width=$Yandex[0] height=5 alt='Хосты' border=1>";
}
else
{
$Yandeximg="";
}
echo "<table width=$tm border=0
<tr>
<td width=120>
Yandex
</td>
<td width=30>
$Yandex[0]
</td>
<td width=240>
последний визит в $dataYandex[0]
</td>
<td width=%100>
$Yandeximg
</td>
</tr>
</table>";
//AltaVista
if (!empty($AltaVista[0]))
{
$AltaVistaimg="<img src=countimg/host.gif width=$AltaVista[0] height=5 alt='Хосты' border=1>";
}
else
{
$AltaVistaimg="";
}
echo "<table width=$tm border=0
<tr>
<td width=120>
AltaVista
</td>
<td width=30>
$AltaVista[0]
</td>
<td width=240>
последний визит в $dataAltaVista[0]
</td>
<td width=%100>
$AltaVistaimg
</td>
</tr>
</table>";
//Fast
if (!empty($Fast[0]))
{
$Fastimg="<img src=countimg/host.gif width=$Fast[0] height=5 alt='Хосты' border=1>";
}
else
{
$Fastimg="";
}
echo "<table width=$tm border=0
<tr>
<td width=120>
Fast
</td>
<td width=30>
$Rambler[0]
</td>
<td width=240>
последний визит в $dataFast[0]
</td>
<td width=%100>
$Fastimg
</td>
</tr>
</table>";
//Google
if (!empty($Rambler[0]))
{
$Googleimg="<img src=countimg/host.gif width=$Google[0] height=5 alt='Хосты' border=1>";
}
else
{
$img="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Google
</td>
<td width=30>
$Google[0]
</td>
<td width=240>
последний визит в $dataGoogle[0]
</td>
<td width=%100>
$Googleimg
</td>
</tr>
</table>";
//Infoseek
if (!empty($Infoseek[0]))
{
$Infoseekimg="<img src=countimg/host.gif width=$Infoseek[0] height=5 alt='Хосты' border=1>";
}
else
{
$Infoseekimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Infoseek
</td>
<td width=30>
$Infoseek[0]
</td>
<td width=240>
последний визит в $dataInfoseek[0]
</td>
<td width=%100>
$Infoseekimg
</td>
</tr>
</table>";
//Yahoo
if (!empty($Yahoo[0]))
{
$Yahooimg="<img src=countimg/host.gif width=$Yahoo[0] height=5 alt='Хосты' border=1>";
}
else
{
$Yahooimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Yahoo
</td>
<td width=30>
$Yahoo[0]
</td>
<td width=240>
последний визит в $dataYahoo[0]
</td>
<td width=%100>
$Yahooimg
</td>
</tr>
</table>";
//Aport
if (!empty($Aport[0]))
{
$Aportimg="<img src=countimg/host.gif width=$Aport[0] height=5 alt='Хосты' border=1>";
}
else
{
$Ramblerimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Aport
</td>
<td width=30>
$Aport[0]
</td>
<td width=240>
последний визит в $dataAport[0]
</td>
<td width=%100>
$Aportimg
</td>
</tr>
</table>";
//AOL
if (!empty($AOL[0]))
{
$AOLimg="<img src=countimg/host.gif width=$AOL[0] height=5 alt='Хосты' border=1>";
}
else
{
$AOLimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
AOL
</td>
<td width=30>
$AOL[0]
</td>
<td width=240>
последний визит в $dataAOL[0]
</td>
<td width=%100>
$AOLimg
</td>
</tr>
</table>";
//Excite
if (!empty($Excite[0]))
{
$Exciteimg="<img src=countimg/host.gif width=$Excite[0] height=5 alt='Хосты' border=1>";
}
else
{
$Exciteimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Excite
</td>
<td width=30>
$Excite[0]
</td>
<td width=240>
последний визит в $dataExcite[0]
</td>
<td width=%100>
$Exciteimg
</td>
</tr>
</table>";
//Lycos
if (!empty($Lycos[0]))
{
$Lycosimg="<img src=countimg/host.gif width=$Lycos[0] height=5 alt='Хосты' border=1>";
}
else
{
$Lycosimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
Lycos
</td>
<td width=30>
$Lycos[0]
</td>
<td width=240>
последний визит в $dataLycos[0]
</td>
<td width=%100>
$Lycosimg
</td>
</tr>
</table>";
//DirectHit
if (!empty($DirectHit[0]))
{
$DirectHitimg="<img src=countimg/host.gif width=$DirectHit[0] height=5 alt='Хосты' border=1>";
}
else
{
$DirectHitimg="";
}
echo "<table width=$tm border=0>
<tr>
<td width=120>
DirectHit
</td>
<td width=30>
$DirectHit[0]
</td>
<td width=240>
последний визит в $dataDirectHit[0]
</td>
<td width=%100>
$DirectHitimg
</td>
</tr>
</table>";
echo "<hr>Дизайн верстка и программирование © <a href=http://www.wmzshop.ru>www.wmzshop.ru</a>";
}
else
{
echo "Технические проблемы. На Вашей главной станице не найден код счетчика. Код счетчика не найден или изменен. При любой модификации кода скрипт начинает давать сбои в работе или прекращает функционировать.<br>Учтите менять код (изменять) СТРОГО ЗАПРЕЩЕНО
<br><br>Ваши действия: <br>
1) Проверить правильно ли установлен код счетчика на главной и остальных страницах Вашего сайта.<br>
2) Если код неустановлен на главной странице, то установите его.<br>
3) Если код поврежден (изменен), то НЕЗАМЕДЛИТЕЛЬНО ВОССТАНОВИТЕ КОД на всех страницах до установочного варианта (код выдается при инсталяции счетчика)
<br><hr>
Дизайн и программирование<br>© <a href=www.wmzshop.ru>www.wmzshop.ru </a>";
exit;
}
}
?>
</body>
</html>