<?php
include("mafia.php");
$username = $_SESSION['username'];
$sql = mysql_query("SELECT * FROM users WHERE username = '$username'");
$money = $user['money'];
$location = $user['country'];
$rankp = $user['ervaring'];
$rank = $user['rank'];
$crewuser = $user['crew'];
$crewlvl = $user['crewlvl'];
}
$dbres2 = mysql_query("SELECT * FROM crews WHERE crewname = '$crewuser'"); if(isset($_POST['invite_submit'])){ $sel = mysql_query("SELECT * FROM users WHERE username = '$to_user'"); if($to_user == ""){
echo ("You need to fill in an username"); }
elseif(!$userexcists){
echo ("This user doesn't excist"); }
elseif($to_user == $username){
echo ("You cannot invite yourself"); }
else{
$sqldb = mysql_query("SELECT * FROM messages ORDER BY id DESC LIMIT 1"); $pm = $mes['id']+1;
$message = "<form action=\"inbox.php\"><input type=hidden name=id value=$pm> $crew[crewname] has invited you to join there crew.<br><br><input type=\"hidden\" name=\"crew\" value=\"$crew[crewname]\"> You can <input type=\"radio\" name=\"accept\" value=\"yes\">Accept or <input type=\"radio\" name=\"accept\" value=\"no\">Decline the offer.<br><input type=\"submit\" value=\"Submit\" name=\"submit\"></form>";
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("H:i:s d-m-Y"); mysql_query("INSERT INTO messages (van,naar,datum,bericht,gelezen) VALUES ('Notification','$invite_user','$date','$message','0')") or
die(mysql_error()); echo "Invite is sent to <b>$to_user</b>."; }
}
elseif(isset($_POST['perform'])){ if($action == 'donate'){
if($value < 1){
echo ("You need to donate at least $1."); }
elseif($value > $money){
echo ("You don't have enough money to donate"); }
else{
$nmoney = $money - $value;
$cmoney = $crew['crewbank'] + $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username ='$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser"); }
}
elseif($action == 'withdraw'){
if($value < 1){
echo ("You need to withdraw at least $1"); }
elseif($value > $crew['crewbank']){
echo ("You cannot withdraw more than there is on the crewbank"); }
else{
$nmoney = $money + $value;
$cmoney = $crew['crewbank'] - $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username = '$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser'"); }
}
}
elseif(isset($_POST['change_quote'])){ mysql_query("UPDATE crews SET quote = '$quote' WHERE crewname = '$crewuser'"); echo ("Crews quote has been changed"); }
elseif(isset($_GET['kick'])){ mysql_query("UPDATE users SET crew = 'none' WHERE id = '{$_GET['kick']}'"); echo ("That member has been kicked"); }
elseif(isset($_POST['change_underboss'])){ $select = mysql_query("SELECT * FROM users WHERE username = '$new_underboss'"); if(!$underboss_excists){
echo ("This user doesn't excist"); }
elseif($new_underboss == ""){
echo ("You need to fill in an username"); }
else{
mysql_query("UPDATE users SET crewlvl = '3' WHERE username = '$new_underboss'"); mysql_query("UPDATE crews SET underboss = '$new_underboss' WHERE crename = '$crewuser'"); echo ("The underboss has been changed"); }
}
if($crewuser == "" OR $crewuser == "none"){
if(isset($_POST['submit'])){ if(($crewname == "") || (strlen($crewname) > 100)){ echo "You need to fill in a crewname"; }
elseif($crewuser != "none"){
echo ("You are already in a crew. Please contact an admin if you see this page"); }
elseif($resultcrew >= 20){
echo ("There can only be 20 crews. You need to kill an other crew if you want to create one."); }
elseif($money < 10000000){
echo ("You don't have enough money. You need $10,000,000 to create a crew"); }
else{
$nmoney = $money - 10000000;
mysql_query("UPDATE users SET crew = '$crewname' WHERE username = '$username'"); mysql_query("UPDATE users SET money = '$nmoney' WHERE username = '$username'"); mysql_query("INSERT INTO `crews` (`crewname`,`leader`,`underboss`,`crewbank`) VALUES ('$crewname','$username','None','1000')") or
die(mysql_error()); mysql_query("UPDATE users SET crewlvl = '3' WHERE username = '$username'"); echo ("Congratulations. Your crew <b>".$crewname."</b> has been created."); }
}
else{
?>
<center>
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class=header colspan=2>Create a crew</th>
<tr>
<td>Crewname:</td>
<td><input type="text" name="crewname"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Create" name="create"></td>
</tr>
</table>
</form>
<?
}
}
elseif($username != $crew['leader'] AND $username != $crew['underboss']){
if(isseT($_POST['leave'])){ $nmoney = $money - 500000;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username = '$username'"); mysql_query("UPDATE users SET crew = 'none' WHERE username = '$username'"); echo ("You left your crew!"); }
else{
if(isset($_POST['donate_submit'])){ if($donate < 1){
echo ("You need to donate at least $1"); }
elseif($donate > $money){
echo ("You don't have that much money"); }
else{
$nmoney = $money - $donate;
$cmoney = $crew['crewbank'] + $donate;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username ='$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser'"); }
}
?>
<table border=0 width="100%" class="page">
<tr><td width="50%" align="center" rowspan="2">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header">Welcome to the crew section</th>
<tr><td>
Welcome to the crew's hq <?=$username; ?>.
In here you can find everything about your crew and more.<br>
You are currently in <a href="viewcrew.php?crew=<?=$crewuser; ?>"><?=$crewuser; ?></a>.<br>
Your leader is <a href="view.php?user=<?=$crew['leader']; ?>"><?=$crew['leader']; ?></a>.<br>
And the underboss is <a href="view.php?user=<?=$crew['underboss']; ?>"><?=$crew['underboss']; ?></a>.<br>
<br>
If you don't want to be in this crew anymore you could also choose to leave.<br>
This will cost you $500,000 and you might loose some of your health.<br>
If you want to leave click the button below:<br>
<center><input type="submit" value="Leave" name="leave">
</td></tr>
</table>
</td><td width="50%" align="center" valign="top">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class=header colspan="2">Crewbank</th>
<tr>
<td>Money on crewbank:</td>
</tr>
<tr>
<td>Donate:</td>
<td><input type="text" name="donate"></td>
</tr>
<tr>
<Td> </td>
<td><input type="submit" value="Donate!" name="donate_submit"></td>
</tr>
</table>
</form>
</td></tr>
<tr><td align="center" valign="top">
<?
$m = mysql_query("SELECT * FROM users WHERE crew = '$crewuser'"); $mm = mysql_query("SELECT SUM(`money`) FROM users WHERE crew = '$crewuser'"); $lr = mysql_query("SELECT * FROM users WHERE crew = '$crewuser' ORDER BY rank ASC"); ?>
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Crew stats</th>
<tr>
<td>Total members:</td>
</tr>
<tr>
<td>Total member money:</td>
</tr>
<tr>
<td>Lowest rank in the crew:</td>
<td><?=$lowestrank['rank']; ?></td>
</tr>
</table>
</td></tr>
<tr><td colspan="2" align="center" valign="top">
<?
if($crewlvl == 1){
if(isset($_POST['invite_submit'])){ $sel = mysql_query("SELECT * FROM users WHERE username = '$to_user'"); if($to_user == ""){
echo ("You need to fill in an username"); }
elseif(!$userexcists){
echo ("This user doesn't excist"); }
elseif($to_user == $username){
echo ("You cannot invite yourself"); }
else{
$sqldb = mysql_query("SELECT * FROM messages ORDER BY id DESC LIMIT 1"); $pm = $mes['id']+1;
$message = "<form action=\"inbox.php\"><input type=hidden name=id value=$pm> $crew[crewname] has invited you to join there crew.<br><br><input type=\"hidden\" name=\"crew\" value=\"$crew[crewname]\"> You can <input type=\"radio\" name=\"accept\" value=\"yes\">Accept or <input type=\"radio\" name=\"accept\" value=\"no\">Decline the offer.<br><input type=\"submit\" value=\"Submit\" name=\"submit\"></form>";
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("H:i:s d-m-Y"); mysql_query("INSERT INTO messages (van,naar,datum,bericht,gelezen) VALUES ('Notification','$invite_user','$date','$message','0')") or
die(mysql_error()); echo "Invite is sent to <b>$to_user</b>."; }
}
?>
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Invite user</th>
<tr>
<td>Username:</td>
<td><input type="text" name="to_user"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Send invite" name="invite_submit"></td>
</tr>
</table>
</form>
<?
}
}
?>
</td></tr>
</table>
<?
}
elseif($username == $crew['underboss']){
if(isset($_POST['invite_submit'])){ $sel = mysql_query("SELECT * FROM users WHERE username = '$to_user'"); if($to_user == ""){
echo ("You need to fill in an username"); }
elseif(!$userexcists){
echo ("This user doesn't excist"); }
elseif($to_user == $username){
echo ("You cannot invite yourself"); }
else{
$sqldb = mysql_query("SELECT * FROM messages ORDER BY id DESC LIMIT 1"); $pm = $mes['id']+1;
$message = "<form action=\"inbox.php\"><input type=hidden name=id value=$pm> $crew[crewname] has invited you to join there crew.<br><br><input type=\"hidden\" name=\"crew\" value=\"$crew[crewname]\"> You can <input type=\"radio\" name=\"accept\" value=\"yes\">Accept or <input type=\"radio\" name=\"accept\" value=\"no\">Decline the offer.<br><input type=\"submit\" value=\"Submit\" name=\"submit\"></form>";
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("H:i:s d-m-Y"); mysql_query("INSERT INTO messages (van,naar,datum,bericht,gelezen) VALUES ('Notification','$invite_user','$date','$message','0')") or
die(mysql_error()); echo "Invite is sent to <b>$to_user</b>."; }
}
elseif(isset($_POST['perform'])){ if($action == 'donate'){
if($value < 1){
echo ("You need to donate at least $1."); }
elseif($value > $money){
echo ("You don't have enough money to donate"); }
else{
$nmoney = $money - $value;
$cmoney = $crew['crewbank'] + $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username ='$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser"); }
}
elseif($action == 'withdraw'){
if($value < 1){
echo ("You need to withdraw at least $1"); }
elseif($value > $crew['crewbank']){
echo ("You cannot withdraw more than there is on the crewbank"); }
else{
$nmoney = $money + $value;
$cmoney = $crew['crewbank'] - $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username = '$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser'"); }
}
}
elseif(isset($_POST['change_quote'])){ mysql_query("UPDATE crews SET quote = '$quote' WHERE crewname = '$crewuser'"); echo ("Crews quote has been changed"); }
elseif(isset($_GET['kick'])){ mysql_query("UPDATE users SET crew = 'none' WHERE id = '{$_GET['kick']}'"); echo ("That member has been kicked"); }
?>
<table border=0 class="page" width="100%">
<tr><td width="50%" align="center" valign="top">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Invite user:</th>
<tr>
<td>Username:</td>
<td><input type='text' name="to_user"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Send invite!" name="invite_submit"></td>
</tr>
</table>
</form>
</td><td align="center" valign="top" width="50%">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Crewbank</th>
<tr>
<td>Money on crewbank:</td>
</tr>
<tr>
<td><input type="radio" name="action" value="donate"> Donate<br />
<input type="radio" name="action" value="withdraw"> Withdraw</td>
<td><input type="text" name="value"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Perform action" name="perform"></td>
</tr>
</table>
</form>
</td></tr>
<tr><td align="center" valign="top" width="50%">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Change Quote:</th>
<tr><td>Quote:</td><td><textarea name="quote" cols="28" rows="8"><?=$crew['quote']; ?></textarea></td></tr>
<tr><td> </td><td><input type="submit" value="Change" name="change_quote"></td></tr>
</table>
</form>
</td><td align="center" valign="top" width="50%">
<form action=<?=$_SERVER['PHP_SELF']; ?>>
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Change Image</th>
<tr>
<td>Image:</td>
<td>
<? if($crew['imgurl'] == ''){ echo "None"; }else{ echo "<img src=".$crew['imgurl'].">"; } ?></td>
</tr>
<tr>
<td>New image:</td>
<td><input type="text" name="new_imgurl"
<? if($crew['imgurl'] == ''){ echo "value=http://"; } ?>></td>
</tr>
</table>
</form>
</td></tr>
<tr><td valign="top" align="center" width="50%">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="6">Members</th>
<tr>
<td>Username</td>
<td>Rank</td>
<td>Status</td>
<td>Kick</td>
</tr>
<?
$allm = mysql_query("SELECT * FROM users WHERE crew = '$crewuser'"); $id = $member['id'];
$membername = $member['username'];
$ervaring = $member['ervaring'];
if($ervaring <= 150){
$rank = "Scum";
}
elseif($ervaring > 150 AND $ervaring <= 350){
$rank = "Thief";
}
elseif($ervaring > 350 AND $ervaring <= 750){
$rank = "Mobster";
}
elseif($ervaring > 750 AND $ervaring <= 1500){
$rank = "Thug";
}
elseif($ervaring > 1500 AND $ervaring <= 3500){
$rank = "Scout";
}
elseif($ervaring > 3500 AND $ervaring <= 7500){
$rank = "Soldier";
}
elseif($ervaring > 7500 AND $ervaring <= 15000){
$rank = "Local Boss";
}
elseif($ervaring > 15000 AND $ervaring <= 50000){
$rank = "Boss";
}
elseif($ervaring > 50000 AND $ervaring <= 150000){
$rank = "Commander";
}
elseif($ervaring > 150000 AND $ervaring <= 200000){
$rank = "Godfather";
}
elseif($ervaring > 200000 AND $ervaring <= 400000){
$rank = "Legendary Godfather";
}
elseif($ervaring > 400000 AND $ervaring <= 600000){
$rank = "General";
}
elseif($ervaring > 600000 AND $ervaring <= 800000){
$rank = "Don";
}
elseif($ervaring > 800000 AND $ervaring <= 1000000){
$rank = "Respectable Don";
}
elseif($ervaring > 1000000 AND $ervaring <= 1000000000){
$rank = "Legendary Don";
}
elseif($ervaring > 1000000000 AND $ervaring <= 5000000000){
$rank = "Moderator";
}
else{
$rank = "Administrator";
}
if($member['life'] > 0){
$status = "Alive";
}
else{
$status = "Dead";
}
}
$i = 0;
while($i <= $totalcrewmembers){
?>
<tr>
<td><a href="view.php?user=<?=$membername; ?>"><?=$membername; ?></a></td>
<Td><?=$rank; ?></td>
<td><?=$status; ?></td>
<td><a href="?kick=<?=$id; ?>">Kick</a></td>
</tr>
<?
$i++;
}
?>
</table>
</td></tr>
</table>
<?
}
elseif($username == $crew['leader']){
if(isset($_POST['invite_submit'])){ $sel = mysql_query("SELECT * FROM users WHERE username = '$to_user'"); if($to_user == ""){
echo ("You need to fill in an username"); }
elseif(!$userexcists){
echo ("This user doesn't excist"); }
elseif($to_user == $username){
echo ("You cannot invite yourself"); }
else{
$sqldb = mysql_query("SELECT * FROM messages ORDER BY id DESC LIMIT 1"); $pm = $mes['id']+1;
$message = "<form action=\"inbox.php\"><input type=hidden name=id value=$pm> $crew[crewname] has invited you to join there crew.<br><br><input type=\"hidden\" name=\"crew\" value=\"$crew[crewname]\"> You can <input type=\"radio\" name=\"accept\" value=\"yes\">Accept or <input type=\"radio\" name=\"accept\" value=\"no\">Decline the offer.<br><input type=\"submit\" value=\"Submit\" name=\"submit\"></form>";
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("H:i:s d-m-Y"); mysql_query("INSERT INTO messages (van,naar,datum,bericht,gelezen) VALUES ('Notification','$invite_user','$date','$message','0')") or
die(mysql_error()); echo "Invite is sent to <b>$to_user</b>."; }
}
elseif(isset($_POST['perform'])){ if($action == 'donate'){
if($value < 1){
echo ("You need to donate at least $1."); }
elseif($value > $money){
echo ("You don't have enough money to donate"); }
else{
$nmoney = $money - $value;
$cmoney = $crew['crewbank'] + $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username ='$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser"); }
}
elseif($action == 'withdraw'){
if($value < 1){
echo ("You need to withdraw at least $1"); }
elseif($value > $crew['crewbank']){
echo ("You cannot withdraw more than there is on the crewbank"); }
else{
$nmoney = $money + $value;
$cmoney = $crew['crewbank'] - $value;
mysql_query("UPDATE users SET money = '$nmoney' WHERE username = '$username'"); mysql_query("UPDATE crews SET crewbank = '$cmoney' WHERE crewname = '$crewuser'"); }
}
}
elseif(isset($_POST['change_quote'])){ mysql_query("UPDATE crews SET quote = '$quote' WHERE crewname = '$crewuser'"); echo ("Crews quote has been changed"); }
elseif(isset($_GET['kick'])){ mysql_query("UPDATE users SET crew = 'none' WHERE id = '{$_GET['kick']}'"); echo ("That member has been kicked"); }
elseif(isset($_POST['change_underboss'])){ $select = mysql_query("SELECT * FROM users WHERE username = '$new_underboss'"); if(!$underboss_excists){
echo ("This user doesn't excist"); }
elseif($new_underboss == ""){
echo ("You need to fill in an username"); }
else{
mysql_query("UPDATE users SET crewlvl = '3' WHERE username = '$new_underboss'"); mysql_query("UPDATE crews SET underboss = '$new_underboss' WHERE crename = '$crewuser'"); echo ("The underboss has been changed"); }
}
?>
<table border=0 class="page" width="100%">
<tr><td width="50%" align="center" valign="top">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Invite user:</th>
<tr>
<td>Username:</td>
<td><input type='text' name="to_user"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Send invite!" name="invite_submit"></td>
</tr>
</table>
</form>
</td><td align="center" valign="top" width="50%">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Crewbank</th>
<tr>
<td>Money on crewbank:</td>
</tr>
<tr>
<td><input type="radio" name="action" value="donate"> Donate<br />
<input type="radio" name="action" value="withdraw"> Withdraw</td>
<td><input type="text" name="value"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Perform action" name="perform"></td>
</tr>
</table>
</form>
</td></tr>
<tr><td align="center" valign="top" width="50%">
<form action="<?=$_SERVER['PHP_SELF']; ?>">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Change Quote:</th>
<tr><td>Quote:</td><td><textarea name="quote" cols="28" rows="8"><?=$crew['quote']; ?></textarea></td></tr>
<tr><td> </td><td><input type="submit" value="Change" name="change_quote"></td></tr>
</table>
</form>
</td><td align="center" valign="top" width="50%">
<form action=<?=$_SERVER['PHP_SELF']; ?>>
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Change Image</th>
<tr>
<td>Image:</td>
<td>
<? if($crew['imgurl'] == ''){ echo "None"; }else{ echo "<img src=".$crew['imgurl'].">"; } ?></td>
</tr>
<tr>
<td>New image:</td>
<td><input type="text" name="new_imgurl"
<? if($crew['imgurl'] == ''){ echo "value=http://"; } ?>></td>
</tr>
</table>
</form>
</td></tr>
<tr><td valign="top" align="center" width="50%">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="6">Members</th>
<tr>
<td>Username</td>
<td>Rank</td>
<td>Status</td>
<td>Kick</td>
</tr>
<?
$allm = mysql_query("SELECT * FROM users WHERE crew = '$crewuser'"); $id = $member['id'];
$membername = $member['username'];
$ervaring = $member['ervaring'];
if($ervaring <= 150){
$rank = "Scum";
}
elseif($ervaring > 150 AND $ervaring <= 350){
$rank = "Thief";
}
elseif($ervaring > 350 AND $ervaring <= 750){
$rank = "Mobster";
}
elseif($ervaring > 750 AND $ervaring <= 1500){
$rank = "Thug";
}
elseif($ervaring > 1500 AND $ervaring <= 3500){
$rank = "Scout";
}
elseif($ervaring > 3500 AND $ervaring <= 7500){
$rank = "Soldier";
}
elseif($ervaring > 7500 AND $ervaring <= 15000){
$rank = "Local Boss";
}
elseif($ervaring > 15000 AND $ervaring <= 50000){
$rank = "Boss";
}
elseif($ervaring > 50000 AND $ervaring <= 150000){
$rank = "Commander";
}
elseif($ervaring > 150000 AND $ervaring <= 200000){
$rank = "Godfather";
}
elseif($ervaring > 200000 AND $ervaring <= 400000){
$rank = "Legendary Godfather";
}
elseif($ervaring > 400000 AND $ervaring <= 600000){
$rank = "General";
}
elseif($ervaring > 600000 AND $ervaring <= 800000){
$rank = "Don";
}
elseif($ervaring > 800000 AND $ervaring <= 1000000){
$rank = "Respectable Don";
}
elseif($ervaring > 1000000 AND $ervaring <= 1000000000){
$rank = "Legendary Don";
}
elseif($ervaring > 1000000000 AND $ervaring <= 5000000000){
$rank = "Moderator";
}
else{
$rank = "Administrator";
}
if($member['life'] > 0){
$status = "Alive";
}
else{
$status = "Dead";
}
?>
<tr>
<td><a href="view.php?user=<?=$membername; ?>"><?=$membername; ?></a></td>
<Td><?=$rank; ?></td>
<td><?=$status; ?></td>
<td><a href="?kick=<?=$id; ?>">Kick</a></td>
</tr>
<?
}
?>
</table>
</td><td width="50%" valign="top" align="center">
<form action="<?=$_SERVER['PHP_SELF']; ?>?p=members">
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0>
<th class="header" colspan="2">Change Underboss</th>
<tr>
<td>Old underboss:</td>
<td><?=$crew['underboss']; ?></td>
</tr>
<tr>
<td>New underboss:</td>
<td><input type="text" name="new_underboss"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Change" name="change_underboss"></td>
</tr>
</table>
</form>
</td></tr>
</table>
<?
}
include("footer.php");
?>