<?
@include ('class.setistats.php');
$seti = New SetiStats();
$seti->setEmail('foo@bar.com');
$seti->Init();
?>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>SetiStats Example Page</title>
</head>
<body>
UserEmail: <? print($seti->email); ?><br>
ServerUrl1: <? print($seti->server1); ?><br>
ServerUrl2: <? print($seti->server2); ?><br>
Username: <? print($seti->viewStats('UserName')); ?><br>
Wokunits: <? print($seti->viewStats('Workunits')); ?><br>
TotalCPUTime: <? print($seti->viewStats('TotalCPUTime')); ?><br>
AverageCPUTime: <? print($seti->viewStats('AverageCPUTime')); ?><br>
LastResult: <? print($seti->viewStats('LastResult')); ?><br>
RegisteredOn: <? print($seti->viewStats('RegisteredOn')); ?><br>
SetiUserFor: <? print($seti->viewStats('SetiUserFor')); ?><br>
GroupName: <? print($seti->viewStats('GroupName')); ?><br>
GroupURL: <? print($seti->viewStats('GroupURL')); ?><br>
Rank: <? print($seti->viewStats('Rank')); ?><br>
TotalUsers: <? print($seti->viewStats('TotalUsers')); ?><br>
TotalUsersWithThisRank: <? print($seti->viewStats('TotalUsersWithThisRank')); ?><br>
MoreWorkUnitsThan: <? print($seti->viewStats('MoreWorkUnitsThan')); ?><br>
AverageResultsPerDay: <? print($seti->viewStats('AverageResultsPerDay')); ?><br>
ResultsPerWeek: <? print($seti->AverageResultsPerWeek()); ?><br>
ResultsPerMonth: <? print($seti->AverageResultsPerMonth()); ?><br>
RegistrationClass: <? print($seti->viewStats('RegistrationClass')); ?><br>
CertUrl: <? print($seti->checkCert('1', 1)); ?><br>
valid cert: <?
if ($seti->checkCert('1', 0) == true)
{
echo "true";
}else{
echo "false";
} ?><br>
invalid cert: <?
if ($seti->checkCert('10', 0) == true)
{
echo "true";
}else{
echo "false";
} ?>
<br>ResultInterval: <?
$seti->ResultInt();
print $seti->ResultInterval["days"]." Days ".$seti->ResultInterval["hours"]." Hours ".$seti->ResultInterval["minutes"]." Minutes ".$seti->ResultInterval["seconds"]." Seconds"; ?>
</body>
</html> |