Release Lista staff v3

Serio LOL

Utente bannato
Autore del topic
28 Novembre 2012
6
0
Miglior risposta
0
<?php

/*=====================================================================+
|| # *****CMS based HaBBoCMS - Website and Content Management System
|+=====================================================================+
|| # Copyright © 2013 xXMikiOwnaXx. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=====================================================================+
|| # *****CMS v4.1 by TheNort
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+=====================================================================*/

$allow_guests = true;

include('core.php');
include('includes/session.php');


$tmp = getContent('mod_staff-enabled');
if($tmp !== "1"){
header("Location: index"); exit;
}

$pagename = "Staff";
$pageid = "staff";

include('templates/community/subheader.php');
include('templates/community/header.php');

?>

<div id="container">
<div id="content">


<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">




<h2 class="title">Fondatori
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 10 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 6 || $row[2] > 10){ // = 10 - Amministratori
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];

?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>


<div id="container">
<div id="content">


<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">




<h2 class="title">Co-Fondatori
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 9 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 6 || $row[2] > 9){ // = 9 - Amministratori
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];

?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>

<h2 class="title">Amministratori
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 8 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 5 || $row[2] > 8){ // = 8 - MOD SENIOR
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];
?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>


<h2 class="title">Super Moderatori
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 7 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 5 || $row[2] > 7){ // = 7 - MOD SENIOR
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];
?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>




<h2 class="title">Moderatori
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 6 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 5 || $row[2] > 6){ // = 6 - MOD SENIOR
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];
?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>



<div id="container">
<div id="content">


<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">

<h2 class="title">Arbitri
</h2>

<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id,ruolo,scadenza FROM users WHERE rank = 5 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);


if($staff_members == 10){
echo "Nessuno staffer in questa categoria.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 6 || $row[2] > 5){ // = 5 - Amministratori
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "Nessuna Missione";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$lastvisit = $row[3];

?>
<div style="width: 64px; height: 81px; margin-bottom:-8px; margin-top:-12px; margin-left:-10px; float: left; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $row[4]; ?>&action=wav&direction=2&head_direction=3&gesture=sml&size=big&img_format=gif);"></div>
<br><img src='./web-gallery/v2/images/habbo_<?php echo $online_img; ?>.gif' title='<?php echo $online_caption; ?>' alt='<?php echo $online_caption; ?>' border='0'>&nbsp;&nbsp;<b><a href='user_profile.php?name=<?php echo $row[0]; ?>'><?php echo $row[0]; ?></a></b> ~ <i><font color="grey"><?php echo $row[7]; ?></font></i><br><br>
Missione: <font color='#3e3e3e'><?php echo stripslashes($row[1]); ?></font><br>
Ultima visita: <font color='#3e3e3e'><?php echo date('d-m-Y ', $user['last_online']); echo""; ?></font>
&nbsp;<hr></p>
<?php

}
}
?></p>

</div>
</div></div>

<div id="column2" class="column">