117 lines
4.2 KiB
PHP
117 lines
4.2 KiB
PHP
<?php
|
|
require("function.php");
|
|
require("layout.php");
|
|
$users=readusers();
|
|
$ranks=readranks();
|
|
print $header;
|
|
$user=$users[$id];
|
|
$posttotal=0;
|
|
$postlist="";
|
|
$tccellha="<td bgcolor=$tableheadbg";
|
|
$tccellhb="><center>$fonthead";
|
|
$ranklist="$tccellh"."Rank</td>
|
|
$tccellha width=100$tccellhb"."Posts needed</td>
|
|
$tccellha colspan=2$tccellhb"."Users on that rank</td><tr>";
|
|
$i=0;
|
|
while ($ranks[$i][0]!="") {
|
|
$rank=$ranks[$i];
|
|
$u=0;
|
|
$usercount=0;
|
|
$userlisting="";
|
|
while ($users[$u][0]!="") {
|
|
if ($users[$u][8]=="" and $users[$u][7]==0 and $users[$u][0]>=$rank[0] and ($users[$u][0]<$ranks[$i+1][0] or $ranks[$i+1][0]=="")) {
|
|
$usercount++;
|
|
if ($usercount>1) {
|
|
$userlisting.=", ";
|
|
}
|
|
$userlisting.="<a href=profile.php?id=$u>".$users[$u][2]."</a>";
|
|
}
|
|
$u++;
|
|
}
|
|
if ($usercount>0 or ($logpassword!="" and $users[$loguserid][7]>0)) {
|
|
$ranklist.="$tccell2$smallfont</center>$rank[1]"."</td>
|
|
$tccell1$rank[0]"."</td>
|
|
$tccell1$usercount</td>
|
|
$tccell2$smallfont$userlisting</td><tr>";
|
|
} else {
|
|
$ranklist.="$tccell2"."? ? ?</td>
|
|
$tccell2"."???</td>
|
|
$tccell2$usercount</td>
|
|
$tccell2$smallfont$userlisting</td><tr>";
|
|
}
|
|
$i++;
|
|
}
|
|
$ranklist.="</table></td></table><br><br>$fonttag"."Users with custom titles<table border=0 bgcolor=$tableborder width=$tablewidth align=center cellpadding=0 cellspacing=0><td><table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor=$tableborder>";
|
|
$ranklist.="$tccellha colspan=2$tccellhb"." </td>
|
|
$tccellh"."User title</td>
|
|
$tccellha width=60$tccellhb"."Posts</td><tr>";
|
|
$u=0;
|
|
$ctcount=0;
|
|
$userlisting="";
|
|
while ($users[$u][0]!="") {
|
|
if ($users[$u][7]==0 and $users[$u][8]!="") {
|
|
$ctcount++;
|
|
$userpicture="<img src=\"".$users[$u][4]."\" width=60 height=60>";
|
|
if ($users[$u][4]=="") {
|
|
$userpicture="";
|
|
}
|
|
$ranklist.="<td bgcolor=$tablebg2 width=60><center>$userpicture</td>
|
|
$tccell1".$users[$u][2]."</td>
|
|
$tccell2".$users[$u][8]."</td>
|
|
$tccell1".$users[$u][0]."</td><tr>";
|
|
}
|
|
$u++;
|
|
}
|
|
$ranklist.="</table></td></table><br><br>$fonttag"."Board staff<table border=0 bgcolor=$tableborder width=$tablewidth align=center cellpadding=0 cellspacing=0><td><table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor=$tableborder>";
|
|
$ranklist.="$tccellha colspan=2$tccellhb"."Moderators</td>
|
|
$tccellh"."User title</td>
|
|
$tccellha width=60$tccellhb"."Posts</td><tr>";
|
|
$u=0;
|
|
$modcount=0;
|
|
$userlisting="";
|
|
while ($users[$u][0]!="") {
|
|
if ($users[$u][7]==1) {
|
|
$modcount++;
|
|
$userpicture="<img src=\"".$users[$u][4]."\" width=60 height=60>";
|
|
if ($users[$u][4]=="") {
|
|
$userpicture="";
|
|
}
|
|
$ranklist.="<td bgcolor=$tablebg2 width=60><center>$userpicture</td>
|
|
$tccell1".$users[$u][2]."</td>
|
|
$tccell2".$users[$u][8]."</td>
|
|
$tccell1".$users[$u][0]."</td><tr>";
|
|
}
|
|
$u++;
|
|
}
|
|
$ranklist.="$tccellha colspan=2$tccellhb"."Administrators</td>
|
|
$tccellh"."User title</td>
|
|
$tccellha width=60$tccellhb"."Posts</td><tr>";
|
|
$u=0;
|
|
$admincount=0;
|
|
$userlisting="";
|
|
while ($users[$u][0]!="") {
|
|
if ($users[$u][7]>1) {
|
|
$admincount++;
|
|
$userpicture="<img src=\"".$users[$u][4]."\" width=60 height=60>";
|
|
if ($users[$u][4]=="") {
|
|
$userpicture="";
|
|
}
|
|
$ranklist.="<td bgcolor=$tablebg2 width=60><center>$userpicture</td>
|
|
$tccell1".$users[$u][2]."</td>
|
|
$tccell2".$users[$u][8]."</td>
|
|
$tccell1".$users[$u][0]."</td><tr>";
|
|
}
|
|
$u++;
|
|
}
|
|
print "$fonttag"."Rank listing
|
|
<table border=0 bgcolor=$tableborder width=$tablewidth align=center cellpadding=0 cellspacing=0>
|
|
<td>
|
|
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor=$tableborder>
|
|
";
|
|
print "$ranklist
|
|
</table>
|
|
</td>
|
|
</table>
|
|
";
|
|
print "$footer";
|
|
?>
|