Jump to content
MakeWebGames

way of the mafia


LimitedStreak

Recommended Posts

<?
session_start();
include "includes/functions.php";
include "includes/db_connect.php"; 
logincheck();
$leftrname=$_SESSION['username'];
$friends=mysql_query("SELECT * FROM friends WHERE username='$username'");
$friend=mysql_fetch_object($friends);

$select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER by 'rank' DESC");
$num = mysql_num_rows($select);

$total_regged=mysql_num_rows(mysql_query("SELECT * FROM users"));
$admins=mysql_num_rows(mysql_query("SELECT * FROM users WHERE userlevel='2'"));
$mods=mysql_num_rows(mysql_query("SELECT * FROM users WHERE userlevel='1'"));
$iti=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'"));

$most=$iti->online;

$select = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND Ghost_mode = '0' AND status = 'Alive' ORDER by username");

$select2 = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND userlevel ='2' AND Ghost_mode = '0' AND status = 'Alive' ORDER by username");

$select1 = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND userlevel ='1' AND Ghost_mode = '0' AND status = 'Alive' ORDER by username");

$selecth = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND helper ='1' AND Ghost_mode = '0' AND status = 'Alive' ORDER by username");

$selectf = mysql_query("SELECT * FROM users WHERE online > '$timenow' AND fmod ='1' AND Ghost_mode = '0' AND status = 'Alive' ORDER by username");

$num = mysql_num_rows($select);

$num2 = mysql_num_rows($select2);

$num1 = mysql_num_rows($select1);

$numh = mysql_num_rows($selecth);

$numf = mysql_num_rows($selectf);
while ($i = mysql_fetch_object($select))

?>
<head>
<html>
<link href="style.css" rel="stylesheet" type="text/css"> 

<style type="text/css"> 

<!--

.style9 {color: #FFFFFF}

.style10 {color: #333333}

.style11 {

color: #000000;

}

.style12 {color: #00FF00}

-->

</style> 

<body> 

<style type="text/css"> 

#skill{

margin: 10px;
z-index: 3000;
border: 2px solid #000000;
width: 260px;
visibility: hidden;
position: absolute;
height: 90px;
color: #FFFFFF;
opacity: 0.85;
padding: 5px;
background-color: #222222;
text-align: center;
max-width: 350px;
font: 11px Verdana, Arial, Helvetica, sans-serif;
}

}

a:link { 

font-family: Verdana;

font-size: 11px;

color: #FFFFFF;

font-weight: normal;

text-decoration: none;

}

a, a:visited{  

font-family: Verdana;

font-size: 11px;

color: #FFFFFF;

font-weight: normal;

text-decoration: none; 

}

a:hover { 

color: #FFFFFF;

font-family: Verdana;

font-size: 11px;

font-weight: normal;   
) 
.ifadmin {

font-size: 10px;

color: #CA0300;

}CA0300



.admin {



font-size: 10px;

color: #CA0300;

}



.admin a:visited,.admin a:active,.admin a:link {

text-decoration: none;

color: #CA0300;

font-size: 11px;



}



.admin a:hover {

text-decoration: underline;

color: #CA0300;

font-size: 11px;



}



.mod {



font-size: 10px;

color: #2B60DE;

}



.mod a:visited,.mod a:active,.mod a:link {

text-decoration: none;

color: #2B60DE;

font-size: 11px;



}



.mod a:hover {

text-decoration: underline;

color: #2B60DE;

font-size: 11px;



}



.gang {



font-size: 10px;

color: #2FB600;

}



.gang a:visited,.gang a:active,.gang a:link {

text-decoration: none;

color: #2FB600;

font-size: 11px;



}



.gang a:hover {

text-decoration: underline;

color: #2FB600;

font-size: 11px;



}



.donator {



font-size: 10px;

color: #FBB117;

}



.donator a:visited,.donator a:active,.donator a:link {

text-decoration: none;

color: #FBB117;

font-size: 11px;



}



.donator a:hover {

text-decoration: underline;

color: #FBB117;

font-size: 11px;



}



.user {



font-size: 10px;

color: #FFFFFF;

}



.user a:visited,.user a:active,.user a:link {

text-decoration: none;

color: #FFFFFF;

font-size: 11px;



}



.user a:hover {

text-decoration: underline;

color: #FFFFFF;

font-size: 11px;



}


</style> 

<div id="skill"></div> 

<script type="text/javascript"> 



function modal (page,title,width,height) {

parent.passModal(page,title,width,height);

return false;

}





var offsetxpoint=-100 //Customize x offset of tooltip

var offsetypoint=0 //Customize y offset of tooltip

var ie=document.all

var ns6=document.getElementById && !document.all

var enabletip=false

if (ie||ns6)

var tipobj=document.all? document.all["skill"] : document.getElementById? document.getElementById("skill") : ""

function ietruebody(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}

function tip(thetext, thecolor, thewidth){

if (ns6||ie){

if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"

if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor

tipobj.innerHTML=thetext

enabletip=true

return false

}

}

function positiontip(e){

if (enabletip){

var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;

var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;

//Find out how close the mouse is to the corner of the window

var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20

var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu

if (rightedge<tipobj.offsetWidth)

//move the horizontal position of the menu to the left by it's width

tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"

else if (curX<leftedge)

tipobj.style.left="5px"

else

//position the horizontal position of the menu where the mouse is positioned

tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position

if (bottomedge<tipobj.offsetHeight)

tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"

else

tipobj.style.top=curY+offsetypoint+"px"

tipobj.style.visibility="visible"

}

}

function hide(){

if (ns6||ie){

enabletip=false

tipobj.style.visibility="hidden"

tipobj.style.left="-1000px"

tipobj.style.backgroundColor=''

tipobj.style.width=''

}

}

document.onmousemove=positiontip

</script> 

<div id="stats"></div>
<table class="table" width="700" align="center" cellspacing="0">
<tr class="header">
	<td>Players Online</td>
</tr>
<tr>
	<td><b><span class='username player' title='			<table style="color: white;" width="250" cellspacing="0" cellpadding="0">
		<tr>

</table>' target='mainFrame'><?
			$timenow=time();
$select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER by 'rank' DESC");
$num = mysql_num_rows($select);
while ($i = mysql_fetch_object($select)){
if ($i->crew == "0"){
$crew="None";
}else{
$crew=$i->crew;
}
if ($i->last_oc > time()){
$oc="No";
}else{
$oc="Yes";
}


if($i->userlevel=="2"){
$echo = "<font color=#CA0300>$i->username</font>";
}elseif ($i->userlevel=="1"){
$echo = "<font color=#2B60DE>$i->username</font>";


}else{
$echo = "$i->username";
}




echo "  <a href='profile.php?viewuser=USERNAME OF USER' onMouseover="tip('<table style=color: black; width=250 cellspacing=0 cellpadding=0><tr><td width=80 style=padding-right: 3px;><img width=80px height=80px src=images/profile.jpg></td><td><b><font color=#FFFFFF>USERNAME OF USER</b><br><span style=font-size: 11px; font-weight: bold; padding-bottom: 5px;><b><font color=#FFFFFF>Rank:</b> Chav</font></span><br><b><font color=#FFFFFF>Gender:</b> Secret</font></td></tr></table> ')"; 
     onMouseout="hide()"><span style="color:#FFFFFF;"><b> <b>USERNAME OF USER</b></b></span></a> - 
?></a></span></b></td>

</tr>
<tr>
	<td align="left">

	</td>

</tr>
</table>
<br />
<br />
<table width="100" align="center" cellspacing="0" class="table">
<tr class="header">
	<td>Total Online</td>
</tr>
<tr>
	<td align="center"><span style="font-size: 14px;"></span></td>

</tr>
</table>

</body>
<script language=JavaScript> 
<!--

//Disable right click script III- By Renigade ([email protected])
//For full source code, visit [url]http://www.dynamicdrive.com[/url]

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script>

Edited by Nickson
use code tags...
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...