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

📄 playermess.php

📁 Time 4 Crime online
💻 PHP
字号:
<?php

$banner = "no";
  $UPDATE_DB				  = 1;
  $OMNILOG                                = 1;
include ("_include-config.php");
  if(! check_login()) {
    header("Location: login.php");
    exit;
  }

  mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
?>
<html>

<head>

<base target="gfView">
<title>Worldcrime</title>


<link rel="stylesheet" href="css-v3.css" type="text/css">
<script language="JavaScript">

//function blockError(){return true;}

//window.onerror = blockError;

</script>
<style type="css">
A:Link { 
  color: white; 
  text-decoration: none; 
  } 
 
A:Visited { 
  color: white; 
  text-decoration: none; 
  } 
   
A:Hover { 
  color: white; 
  text-decoration: underline; 
  } 
   
A:Active { 
  color: white; 
  text-decoration: none; 
  }
</style>
</head>
<body>
<?php
if($data->level < 10 && $_GET['m'] > 3 OR $_GET['m'] <= 0) {
echo "<b>Ongeldige forum indentificatie</b></font>";
exit;
}
if($_GET['m'] <= 0 OR $_GET['m'] > 3 && $_GET['m'] != 278) {
echo "Ongeldige forum indentificatie</b></font>";
exit;
}
?>
<center>
	<table border=1 cellspacing=0 cellpadding=2 width=95% bordercolor=black class=sub2>
	<tr>

         <td align=left background=topic.gif><a href="playermessadd.php?m=<? echo $_GET['m']; ?>&x=post" target="_self"><b>Nieuw onderwerp</b></TD>
           <td align=center background=topic.gif></TD></TR>

	</tr>

<?PHP

echo "<!-- Important -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='3' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {

$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$info->titel);
$info->titel		= preg_replace("/\[B\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/B\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[b\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/b\]/", "</b>", $info->titel);
if($info->locked == 0) {
echo "<tr>
        <td width=\"92%\" class=\"mainTxt\"><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Belangrijk:</b> ".$info->titel."</a></td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
} else {
echo "<tr>
        <td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Belangrijk:</b> ".$info->titel."</a> (Gesloten)</td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
}
}
echo "<!-- Sticky -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='2' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {

$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$info->titel);
$info->titel		= preg_replace("/\[B\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/B\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[b\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/b\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[u\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/u\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[u\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/u\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[i\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/i\]/", "</b>", $info->titel);
$info->titel		= preg_replace("/\[i\]/", "<b>", $info->titel);
$info->titel		= preg_replace("/\[\/i\]/", "</b>", $info->titel);
if($info->locked == 0) {
echo "<tr>
        <td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>:</b> ".$info->titel."</a></td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
} else {
echo "<tr>
        <td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\"><b>Belangrijk:</b> ".$info->titel."</a> (Gesloten)</td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
}
}
echo "<!-- Normal -->";
$query = mysql_query("SELECT * FROM `playermess` WHERE `forum`='{$_GET['m']}' AND `type`='1' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {

$query2 = mysql_query("SELECT * FROM `forummess` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['m']}'");
$replies = mysql_num_rows($query2);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
$info->titel		= str_replace("\'", "'", $info->titel);
if($info->locked == 0) {
echo "<tr>
        <td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\">".$info->titel."</a></td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
} else {
echo "<tr>
        <td width=\"92%\" class=mainTxt><a href=\"playermessa.php?id={$info->id}&m={$_GET['m']}\">".$info->titel." (locked)</a></td>
				<td width=\"8%\" class=mainTxt align=right>".$replies."</td>
	</tr>";
}
}
echo "
    </table>
    <body>
</body>
</html>";
?>

⌨️ 快捷键说明

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