<?php
error_reporting(0);
include("_include-config.php");
include("data/names.php");
if(! check_login()) {
header("Location: login.php");
exit;
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/crimestyle12/css/css.css"><link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/crimestyle12/css/forum.css">
</head>
<body style="margin: 0px;">
<div class="title_bg">
<div class="title">ÖZel Mesaj</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width='100%' border='0' class='mod_list' cellspacing='2' cellpadding='2' align='center'>
<tr>
<td width='6%' align='center'>#</td>
<td width='45%' align='left'><b>Subject</b></td>
<td></td>
<td width='25%' align='left'><b>Sender</b></td>
<td></td>
<td width='20%' align='left'><b>Date</b></td>
<td></td>
</tr>
<?
$dbres = mysql_query("SELECT * FROM `messages` WHERE `to`='$data->login' AND `inbox`='1' ORDER BY `date` LIMIT 0,5");
$msgcount = mysql_num_rows($dbres);
if($msgcount > 0){
?>
<tr>
<td align='center'>
<?
for($j=0+1; $info = mysql_fetch_object($dbres); $j++)
{
$poster1 = mysql_query("SELECT * FROM `users` WHERE `login`='$info->from'");
$poster = mysql_fetch_object($poster1);
$schammel = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$poster->login'");
$online = mysql_fetch_object($schammel);
?> <tr>
<td align='center'><?
if($info->read == 0){
?>
<img title="Not readed" src="images/icons_gif/email_open.gif" border="0px">
<?
}
if($info->read == 1){
?>
<img title="Read" src="images/icons_gif/email.gif" border="0px">
<?
}
?>
</td>
<td><a href="generalmessage.php?x=<? echo $info->id; ?>"><? echo $info->title; ?></td>
<td align="center"><?if($online->login == $poster->login){?><img src="images/icons_gif/status_online.gif" title="Online"><?}?><?if($online->login != $poster->login){?><img src="images/icons_gif/status_offline.gif" title="Offline"><?}?></td>
<td> <a href="generalprofile.php?x=<? echo $poster->id; ?>"><? echo $poster->login; ?></a>
</td>
<td align="center"><img src="images/icons_gif/time.gif" border="0px"></td>
<td><? echo $info->date2; ?></td>
<td><a href="generalmessage.php?del=<? echo $info->id; ?>"><img src="images/icons_gif/email_delete.gif" border="0" alt="Delete"></a></td>
</tr>
<?
}
}
if($msgcount == 0){
?>
<tr>
<td colspan="7">
There are no private messages </td>
</tr>
<?}?>
<tr>
<td colspan=7 align="right">
<a href="generalmessage.php">...More messages</a>
</td>
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<br>
<div class="title_bg">
<div class="title">Active forum topics</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td align="center" width="6%"> </td>
<td><b>Title</b></td>
<td></td>
<td><b>Last poster</b></td>
<td></td>
<td align="center"><b>Last comment</b></td>
</tr>
<?
$topic2 = mysql_query("SELECT * FROM `forumtopics` ORDER BY `lastreplydate2` DESC LIMIT 0,5");
while($topic = mysql_fetch_object($topic2)){
$user2 = mysql_query("SELECT * FROM `users` WHERE `login`='$topic->lastreply'");
$user = mysql_fetch_object($user2);
$schammel = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user->login'");
$online = mysql_fetch_object($schammel);
if($user->login == $online->login){$letter = n;}else{$letter = ff;}
?>
<tr>
<td width="6%" align="center"><img src="images/icons_gif/folder.gif" alt="Nieuwsbericht"></td>
<td><a href="viewtopic.php?f=<?echo$topic->subforum;?>&t=<?echo$topic->id;?>"><?echo$topic->title;?></td>
<td><img src="images/icons_gif/status_o<?echo$letter;?>line.gif" title="O<?echo$letter;?>line"></td>
<td><a href="generalprofile.php?x=<?echo$user->id;?>"><?if($user->login == $admin){echo "<font color='red'>";} if($user->login == $moderator){echo "<font color='#FF6600'>";}if($user->vermoord > 0){?><s><?} echo $user->login; if($user->vermoord == 1){?></s><?} if($user->login == $admin || $user->login == $moderator){echo "</font>";}if($user->vipdays > 0){echo '<img src="images/star.gif" border="0" width="10" height="10" alt="Paid account">';}?></a></td>
<td align="center"><img src="images/icons_gif/time.gif" border="0px"></td>
<td><?echo$topic->lastreplydate;?></td>
</tr><?}?> <tr>
<td colspan=7 align="right">
<a href="forum.php">...More forum topics</a>
</td>
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<br>
<div class="title_bg">
<div class="title">Personal information</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td width="35%">Username:</td>
<td width="6%" align=center><img src="images/icons_gif/status_online.gif" border="0px"></td>
<td width="69%"><a href="generalprofile.php?x=<? echo $data->id; ?>"><?=$data->login?></a></td>
</tr>
<tr>
<td width="35%">Health:</td>
<td width="6%" align=center><img src="images/icons_gif/heart.gif" border="0px"></td>
<td width="69%"><a href="cityhospital.php"><? echo $data->health; ?>%</a></td>
</tr>
<tr>
<td width="35%">Power:</td>
<td width="6%" align=center><img src="images/icons_gif/star.gif" border="0px"></td>
<td width="69%"><a href="shop.php"><? echo $data->power; ?></a></td>
</tr>
<tr>
<td width="35%">Money (cash):</td>
<td width="6%" align=center><img src="images/icons_gif/money.gif" border="0px"></td>
<td width="69%"><a href="bank.php">€ <? echo $data->contant; ?></a></td>
</tr>
<tr>
<td width="35%">Money (bank):</td>
<td width="6%" align=center><img src="images/icons_gif/coins.gif" border="0px"></td>
<td width="69%"><a href="bank.php">€ <? echo $data->bank; ?></a></td>
</tr>
<tr>
<td width="35%">Rank:</td>
<td width="6%" align=center><img src="images/icons_gif/lightning.gif" border="0px"></td>
<?
$rank = array("","$ranks_1","$ranks_2","$ranks_3","$ranks_4","$ranks_5","$ranks_6","$ranks_7","$ranks_8","$ranks_9","$ranks_10");
$rank = $rank[$data->rank];
?>
<td width="69%"><? echo $rank; ?></td>
</tr>
<tr>
<td width="35%">Credits:</td>
<td width="6%" align=center><img src="images/icons_gif/telephone.gif" border="0px"></td>
<td width="69%"><a href="vipgamecredits.php"><? echo $data->callcredits; ?></a></td>
</tr>
<tr>
<td width="35%">Paid account:</td>
<td width="6%" align=center><img src="images/icons_gif/user_green.gif" border="0px"></td>
<td width="69%"><a href="vipgamecredits.php"><? echo $data->vipdays; ?></a></td>
</tr>
<tr>
<td width="35%">Rank claiming:</td>
<td width="6%" align=center><img src="images/icons_gif/wand.gif" border="0px"></td>
<td width="69%"><? echo $data->rankvord; ?>%</td>
</tr>
<?
$city = array("","$city_1","$city_2","$city_3","$city_4","$city_5","$city_6");
$city = $city[$data->city];
?>
<tr>
<td width="35%">City:</td>
<td width="6%" align=center><img src="images/icons_gif/world.gif" border="0px"></td>
<td width="69%"><a href="travelstation.php"><? echo $city; ?></a></td>
</tr>
<tr>
<td width="35%">Safe:</td>
<td width="6%" align=center><img src="images/icons_gif/shield.gif" border="0px"></td>
<td width="69%"><? echo $data->safe; ?> hour</td>
</tr>
<tr>
<td width="35%">Protection:</td>
<td width="6%" align=center><img src="images/icons_gif/shield.gif" border="0px"></td>
<td width="69%"><? echo $data->maffia; ?> hour</td>
</tr>
<tr>
<td width="35%">My secret link:</td>
<td width="6%" align=center><img src="images/icons_gif/disconnect.gif" border="0px"></td>
<td width="69%"><a href="generalclick.php?x=<? echo $data->id; ?>"><?echo$sitelink;?>/generalclick.php?x=<? echo $data->id; ?></a></td>
</tr>
<tr>
<td width="35%">Secret link info:</td>
<td width="6%" align=center><img src="images/icons_gif/information.gif" border="0px"></td>
<td width="69%">If someone click your secret link, you will get 500 cash and 1000 at your bank account. You also get a killer!</td>
</tr>
<tr>
<td width="35%">Holiday mode:</td>
<td width="6%" align=center><img src="images/icons_gif/disconnect.gif" border="0px"></td>
<td width="69%"><a href="generalholiday.php">Enable the holiday mode on your account</a></td>
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<br>
<?
$begin = 0;
$num = 0;
$dbres = mysql_query("SELECT `id` FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$numonline = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `login`,UNIX_TIMESTAMP(`signup`) AS `signup`, `vipdays`, `admin`, `power` `contant`, `moderator`, `bank`, `id`, `familie`, `rank`, `vipdays`, `login`, `vermoord` FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,9999999");
?>
<div class="title_bg">
<div class="title">Online players</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td>
<? for($j=$begin+1; $online = mysql_fetch_object($dbres); $j++)
{
?>
<a href="generalprofile.php?x=<? echo $online->id; ?>" width="\"200\"">id; ?> width=\"200\"><? if($online->login == $admin){echo "<font color='red'>";} if($online->login == $moderator){echo "<font color='#FF6600'>";}if($online->vermoord > 0){?><s><?} echo $online->login; if($online->vermoord == 1){?></s><?} if($online->login == $admin || $online->login == $moderator){echo "</font>";}if($online->vipdays > 0){echo '<img src="images/star.gif" border="0" width="10" height="10" alt="Paid account">';} $num = $num+1; ?></a><? if($num < $numonline){?> - <?}?>
<?
}
?>
</td>
</tr>
</table>
</td></tr></table>
</div>
<!-- UPDATE: SAFE -->
<?
if($data->safe > 0){
if($_GET['x'] != delsafemode){
?>
<div class="title_bg">
<div class="title">Under Protection</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td>
<font color='black' id="safe_msg_msg">
<a href="generalnews.php?x=delsafemode">You are safe. In the meanwhile you cant been attacked and you cant attack others. <br> Click here to leave your shelter.</a>
</font>
</td>
</tr>
</table>
</td></tr></table>
</div>
<!-- /UPDATE: SAFE -->
<?
}
}
?>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<br>
<div class="title_bg">
<div class="title">Top 5</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%">
<tr class="top">
<td valign=top width=50%>
<div class=small_title>Top 5 Power</div>
<table border=0 cellspacing=2 cellpadding=2 width=100% class=mod_list><tr class=top>
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY (`power`) DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$power = round($list[power]);
$power2 = number_format($power, 0, '.' , '.');
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?} if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/star.gif alt=Power></td>
<td>$power2</td>
</tr>";
}
?></table> </td>
<td valign="top" width="50%">
<div class="small_title">Top 5 Money</div>
<table border="0" cellspacing="2" cellpadding="2" width="100%" class="mod_list"><tr class="top">
<table border=0 cellspacing=2 cellpadding=2 width=100% class=mod_list><tr class=top>
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY (`contant`+`bank`) DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$geld = round($list[contant]+$list[bank]);
$geld2 = number_format($geld, 0, '.' , '.');
if($list[admin] > 0){echo "<font color='red'>";}if($list[moderator] > 0){?><font color='#FF6600'><?}
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?}if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/money.gif alt=Geld></td>
<td>$geld2</td>
</tr>";
}
?>
</tr></table> </td>
</tr>
<tr>
<td valign="top" width="50%">
<div class="small_title">Top 5 Respect</div>
<table border="0" cellspacing="2" cellpadding="2" width="100%" class="mod_list"><tr class="top">
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY (`respect`) DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$respect = round($list[respect]);
$respect2 = number_format($respect, 0, '.' , '.');
if($list[admin] > 0){echo "<font color='red'>";}if($list[moderator] > 0){?><font color='#FF6600'><?}
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?} if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/ruby.gif alt=Respect></td>
<td>$respect2</td>
</tr>";
}
?>
</tr></table> </td>
<td valign="top" width="50%">
<div class="small_title">Top 5 Killers</div>
<table border="0" cellspacing="2" cellpadding="2" width="100%" class="mod_list"><tr class="top">
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY `killers` DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$killers2 = number_format($list[killers], 0, '.' , '.');
if($list[admin] > 0){echo "<font color='red'>";}if($list[moderator] > 0){?><font color='#FF6600'><?}
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?}if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/bricks.gif alt=Killers></td>
<td>$killers2</td>
</tr>";
}
?>
</tr></table> </td>
</tr>
<tr>
<td valign="top" width="50%">
<div class="small_title">Top 5 Health</div>
<table border="0" cellspacing="2" cellpadding="2" width="100%" class="mod_list"><tr class="top">
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY (`health`) DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$health = round($list[health]);
$health2 = number_format($health, 0, '.' , '.');
if($list[admin] > 0){echo "<font color='red'>";}if($list[moderator] > 0){?><font color='#FF6600'><?}
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?} if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/heart.gif></td>
<td>$health2 %</td>
</tr>";
}
?>
</tr></table> </td>
<td valign="top" width="50%">
<div class="small_title">Top 5 Game Credits</div>
<table border="0" cellspacing="2" cellpadding="2" width="100%" class="mod_list"><tr class="top">
<table border=0 cellspacing=2 cellpadding=2 width=100% class=mod_list><tr class=top>
<?
$select = mysql_query("SELECT * FROM `users` ORDER BY (`callcredits`+`vipdays`) DESC LIMIT 0,5");
while($list = mysql_fetch_assoc($select))
{
$callcredits = round($list[callcredits]+$list[vipdays]);
$callcredits2 = number_format($callcredits, 0, '.' , '.');
if($list[admin] > 0){echo "<font color='red'>";}if($list[moderator] > 0){?><font color='#FF6600'><?}
?>
<td width=60%>
<a href=generalprofile.php?x=<?echo$list[id];?> style="text-decoration:" none;?> style=text-decoration: none;><? if($list[admin] > 0){?><font color='red'><?}if($list[moderator] > 0){?><font color='#FF6600'><?} if($list[vermoord] == 1){?><s><?} echo$list[login]; if($list[vermoord] == 1){?></s><?} if($list[admin] > 0 || $list[moderator] > 0){echo "</font>";} if($list[vipdays] > 0){echo "<img src=images/star.gif border=0 width=10 height=10 alt=Betaald account></a></td>";}
echo" <td width=6%><img src=images/icons_gif/telephone.gif></td>
<td>$callcredits2</td>
</tr>";
}
?>
</tr></table> </td>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<br> </div>
</td>
</tr>
</table>
</td>Kodlar bunlar arkadaşlar