Participants of MT Marathon 2013
error_reporting(E_ALL ^ E_NOTICE);
$fn = "registration.log";
$contents = file_get_contents($fn);
$lines = explode("\n", $contents);
$nr = 0;
$np = 0;
$nonblr = 0;
$nonblp = 0;
foreach ($lines as $line) {
$cols = explode("\t", $line);
if ($cols[5] == "confirmed-paying") {
$color="yellow";
$np++;
if ($cols[27] != "") { $nonblp++; }
} else if ($cols[5] == "confirmed-nonpaying") {
$color="white";
} else {
$color = "none";
}
if ($color != "none") {
$nr++;
if ($cols[27] != "") { $nonblr++; }
$inst = str_replace('<', ' ', $cols[7]);
$inst = str_replace('>', ' ', $inst);
if ($inst != "") {
$insts[$inst] ++;
}
}
}
?>
There are currently about print 10*sprintf("%.0f", $nonblr/10) ?> registered participants from the following institutions:
-
ksort($insts);
foreach ($insts as $institute => $count) {
if ($institute != "") {
print "
- $institute \n"; } } ?>