Просмотр файла forum/levels.php

Размер файла: 1.01Kb
<?
//You can change these
  if ($posts[0]>0)     $ustat="Nobody";
  if ($posts[0]>10)    $ustat="Beginner";
  if ($posts[0]>50)    $ustat="Member";
  if ($posts[0]>150)   $ustat="Advanced Member";
  if ($posts[0]>300)   $ustat="Real Poster!";
  if ($posts[0]>500)   $ustat="Forum GURU";
  if ($posts[0]>700)   $ustat="unreal!";
  if ($posts[0]>1000)  $ustat="l33t";
  if ($posts[0]>2000)  $ustat="Sick of posting!";
  if ($posts[0]>3000)  $ustat="Forum overload...";
  if ($posts[0]>5000)  $ustat="Time to STOP!";
  if ($posts[0]>10000) $ustat="w0ahaah0oa";
/////////////////////
  ismod3($who);         //if user is a moderator
  global $moderator;
  isadmin2($who);        //and maybe user is even administrator
  global $administrator;
  if ($moderator) $ustat="Moderator!";           //change their status!
  if ($administrator) $ustat="Administrator!";
  $aruzhbannintas=mysql_fetch_array(mysql_query("SELECT banned FROM users WHERE name='".$who."'"));
  if ($aruzhbannintas[0]=="1") $ustat="Banned";
?>