File size: 2.3Kb
<?php
require('maincode.php');
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>~PROtS-Ufa~ Счетчик Посещений</title>
<style>
<!--
body {background-color:#CCCCCC}
.main { border:1px dotted #333333; font-size: 13px; color: #000099; font-family: Lucida Grande, Verdana, Arial, Helvetica, sans-serif; background-color: #66FFFF }
.stat { border:1px dotted #333333; font-size: 9px; color: #000099; font-family: Lucida Grande, Verdana, Arial, Helvetica, sans-serif; background-color: #66FFFF }
p,pre {font-family: Lucida Grande, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;color: #333333 }
div {font-size: 11px; color: #333333; font-family: Lucida Grande, Verdana, Arial, Helvetica, sans-serif; background-color: #FF9933 }
-->
</style>
<body>
<?php
//////////////////Вывод Результатов////////////////////////////
$fp=fopen($fcont,"r");
$count=fread($fp,filesize($fcont));
fclose($fp);
$fp=fopen($ftoday,"r");
$today=fread($fp,filesize($ftoday));
fclose($fp);
if(isset($_COOKIE['PROtS_Count'])) $cookie_count = explode("::", $_COOKIE['PROtS_Count']);
else $cookie_count[2]=1;
$Online=count(file($fonline));
$host_num=count(file($fhost));
//////////////////////////////Текстовый Счетчик///////////////////////////
echo "<div><b>Текстовый Счетчик:</b></div>";
echo "<div class=\"stat\">"."\r\n";
echo "Просмотренно Страниц: ".$cookie_count[2]."<br />"."\r\n";
echo "Всего Поситителей: ".$count."<br />"."\r\n";
echo "Сегодня: ".$today."<br />"."\r\n";
echo "Онлайн: ".$Online."<br />"."\r\n";
echo "Хостов: ".$host_num."\r\n";
echo "</div>"."\r\n";
echo "<br />";
//////////////////////////////Графический Счетчик/////////////////////////
echo "<div><b>Графический Счетчик:</b></div>";
echo "<div class=\"stat\">"."\r\n";
echo "<img src=\"image.php\" width=\"120\" height=\"40\" />";
echo "</div>"."\r\n";
?>
<div align="center">Has Made by <b>~PROtS-Ufa~</b></div>
</body>
</html>