52 lines
2.2 KiB
PHP
52 lines
2.2 KiB
PHP
|
<?
|
||
|
loadem("index");
|
||
|
showheader(_("Welcome to CAcert.org"));
|
||
|
?>
|
||
|
<h1>CAcert.org <?=_("Statistics")?></h1>
|
||
|
|
||
|
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
|
||
|
<tr>
|
||
|
<td colspan="2" class="title">CAcert.org <?=_("Statistics")?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Users")?>:</td>
|
||
|
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from `users` where `verified`=1")))?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Verified Emails")?>:</td>
|
||
|
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from `email` where `hash`='' and `deleted`=0")))?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Verified Domains")?>:</td>
|
||
|
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from `domains` where `hash`='' and `deleted`=0")))?></td>
|
||
|
</tr>
|
||
|
<?
|
||
|
$certs = mysql_num_rows(mysql_query("select * from `domaincerts`"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `emailcerts`"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `gpg`"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `orgdomaincerts`"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `orgemailcerts`"));
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Certificates Issued")?>:</td>
|
||
|
<td class="DataTD"><?=number_format($certs)?></td>
|
||
|
</tr>
|
||
|
<?
|
||
|
$certs = mysql_num_rows(mysql_query("select * from `domaincerts` where `revoked`=0 and `expire`>NOW()"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `emailcerts` where `revoked`=0 and `expire`>NOW()"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `gpg` where `expire`<=NOW()"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `orgdomaincerts` where `revoked`=0 and `expire`>NOW()"));
|
||
|
$certs += mysql_num_rows(mysql_query("select * from `orgemailcerts` where `revoked`=0 and `expire`>NOW()"));
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Valid Certificates")?>:</td>
|
||
|
<td class="DataTD"><?=number_format($certs)?></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Assurers")?>:</td>
|
||
|
<td class="DataTD"><?=number_format(mysql_num_rows(mysql_query("select * from notary group by `to` having sum(`points`) >= 100")))?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<? showfooter(); ?>
|
||
|
|