<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
.style1 {
color: #666666;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 3; /* Размер шрифта в пунктах */
background: #ffffff; /* Цвет фона */
}
.style2 {
color: #ffffff;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 14pt; /* Размер шрифта в пунктах */
background: #ff6600; /* Цвет фона */
}
.style3 {
color: #ffffff;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 14pt; /* Размер шрифта в пунктах */
background: #009900; /* Цвет фона */
}
.style3 a:hover {
color: #009900; /* Цвет текста активного пункта */
background-color: #ffffff; /* Цвет фона активного пункта */
}
</style>
</head>
<?php
function connect() {
$dbHostName = "localhost";
$dbUserName = "****";
$dbPassword = "***";
$dbName = "***";
$connect = mysql_connect($dbHostName, $dbUserName, $dbPassword);
$result = false;
if ($connect) {
$result = mysql_select_db($dbName);
}
return $result;
}
function disconnect() {
mysql_close();
}
connect();
$query = "SELECT COUNT(*) as domain FROM domains";
$result = mysql_query($query);
$res5 = mysql_fetch_assoc($result);
disconnect();
connect();
$d = date('d');
$ml = date('m')-1;
$mc = date('m');
$y = date('Y');
$query = "SELECT COUNT(*) as month_last FROM domains WHERE created>'$y-$ml-00' AND created<'$y-$mc-00'";
$result = mysql_query($query);
$res3 = mysql_fetch_assoc($result);
disconnect();
connect();
$query = "SELECT COUNT(*) as hosting FROM `hosting_v2`";
$result = mysql_query($query);
$res1 = mysql_fetch_assoc($result);
disconnect();
connect();
$query = "SELECT domain AS domain_last FROM domains ORDER BY created DESC LIMIT 1";
$result = mysql_query($query);
$res6 = mysql_fetch_assoc($result);
disconnect();
connect();
$d = date('d');
$ml = date('m')-1;
$mll = date('m')-2;
$y = date('Y');
$query = "SELECT COUNT(*) as month_last_last FROM domains WHERE created>'$y-$mll-00' AND created<'$y-$ml-00'";
$result = mysql_query($query);
$res4 = mysql_fetch_assoc($result);
disconnect();
connect();
$query = "SELECT COUNT(*) as user FROM `users`";
$result = mysql_query($query);
$res2 = mysql_fetch_assoc($result);
disconnect();
$host = $res1['hosting'];
$users = $res2['user'];
$month1 = $res3['month_last'];
$month2 = $res4['month_last_last'];
$domains = $res5['domain'];
$domain_last = $res6['domain_last'];
$summ = $month1 - $month2
?>
<body>
<table style="width: 480px;" border="0">
<tr>
<td><div class="style1">Зарегистрировано всего доменов:</div></td>
<td><div class="style2" align="center"><?php echo $domains; ?></div></td>
</tr>
<tr>
<td><div class="style1">Зарегистрировано доменов в прошлом месяце:</div></td>
<td><div class="style2" align="center"><?php echo $month1; ?></div></td>
</tr>
<tr>
<td><div class="style1">Размещено сайтов на LeeHost (хостинг):</div></td>
<td><div class="style2" align="center"><?php echo $host; ?></div></td>
</tr>
<tr>
<td><div class="style1">Зарегистрировано пользователей:</div></td>
<td><div class="style2" align="center"><?php echo $users; ?></div></td>
</tr>
<tr>
<td><div class="style1">Бизнес уровень в системе WebMoney:</div></td>
<td bgcolor="#e3e2e2"><div align="center"><img
src="https://stats.wmtransfer.com/Levels/pWMIDLevel.aspx?wmid=428161045605&w=35&h=18&bg=0XDBE2E9"></div>
</td>
</tr>
</table>
<table style="width: 480px;" border="0">
<tr>
<td><div class="style1">Последний зарегистрированный:</div></td>
<td><a href="http://www.<?php echo $domain_last; ?>" target="_blank"><div align="right" class="style3"><?php echo $domain_last; ?> </div></a></td>
</tr>
</table>
</body>
</html>
<?php echo $summ; ?>