⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lastattacks.php

📁 还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep
💻 PHP
字号:
<?php /* ------------------------- */

  include("_include-jail.php");

/* ------------------------- */ ?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css-v1.css">
<title>RealCrime.Be Join The Crime Version</title>
<script language="javascript">
setTimeout("location.reload()",30000);
</script>
</head>

<body>
  <center>
<table width=95%>
  <tr><td class="subTitle" ID="title" colspan="7"><b>Last 100 atacks.</b></td></tr>

<tr>
<td width="10" class="subTitle">#</td>
<td width="120" class="Subtitle">Tijd</td>
<td width="100" class="Subtitle">Attacker</td>
<td width="75" class="Subtitle">Tegen</td>
<td width="100" class="Subtitle">Verdediger</td>
<td width="150" class="Subtitle">Gewonnen</td>
<td width="90" class="Subtitle">Resultaat</td>
</tr>
<?
    $gegevens				= mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `attacktime` FROM `[logs]` WHERE `area`='attack' ORDER BY `time` DESC LIMIT 0,100");
$i = 0;
while($rij = mysql_fetch_object($gegevens)) { 
      $result1				= ($rij->code & 0x01 == 1) ? "Won" : "Lost";
      $money1				= $rij->code >> 1;
$i++;
$money = ($money1 >= 0) ? "\$$money1" : "<font color=red>\$$money1</font>";
$result = ($result1 == Won) ? "<font color=green>$result1</font>" : "<font color=red><b>$result1</b></font>";
echo(" 
<tr>
<td width=\"10\" class=\"mainTxt\"><center>{$i}</center></td>
<td width=\"120\" class=\"mainTxt\">{$rij->attacktime}</td>
<td width=\"100\" class=\"mainTxt\"><a href=\"profile.php?x=$rij->login\">$rij->login</a></td>
<td width=\"75\" class=\"mainTxt\"><center>VS</center></td>
<td width=\"100\" class=\"mainTxt\"><a href=\"profile.php?x=$rij->person\">$rij->person</a></td>
<td width=\"150\" class=\"mainTxt\">$money</td>
<td width=\"90\" class=\"mainTxt\">$result</td></tr>
"); 
} 
?>


</table></center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -