📄 crew-topics.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="vieuw">
<title>[( Elite avengers )]</title>
<META http-equiv=REFRESH content=90>
<link rel="stylesheet" href="css-v1.css" type="text/css">
<script language="JavaScript">
//function blockError(){return true;}
//window.onerror = blockError;
</script>
<style type="text/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
$dbres = mysql_query("SELECT * FROM `[clans]` WHERE `name`='{$data->clan}'");
$clan = mysql_fetch_object($dbres);
if($_GET['c'] != $clan->id && $data->level <= 50) {
echo "* Wrong Forum id!";
exit;
} else {
?>
<center>
<table border=1 cellspacing=0 cellpadding=2 width=95% bordercolor=black class=sub2>
<tr>
<td class=subTitle align=center colspan=2><a href="crew-messageadd.php?c=<? echo $_GET['c']; ?>&x=post" target="_self"><b>New Topic</b></a></td>
</tr>
<?PHP
echo "<!-- Important -->";
$query = mysql_query("SELECT * FROM `crewtopics` WHERE `forum`='{$_GET['c']}' AND `type`='3' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `crewreplys` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['c']}'");
$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);
if($info->locked == 0) {
echo "<tr>
<td width=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\"><b>Important:</b> ".$info->titel."</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\"><b>Important:</b> ".$info->titel." (locked)</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "<!-- Sticky -->";
$query = mysql_query("SELECT * FROM `crewtopics` WHERE `forum`='{$_GET['c']}' AND `type`='2' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `crewreplys` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['c']}'");
$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=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\"><b>Sticky:</b> ".$info->titel."</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\"><b>Sticky:</b> ".$info->titel." (locked)</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "<!-- Normal -->";
$query = mysql_query("SELECT * FROM `crewtopics` WHERE `forum`='{$_GET['c']}' AND `type`='1' ORDER BY `last` DESC");
while ($info = mysql_fetch_object($query)) {
$query2 = mysql_query("SELECT * FROM `crewreplys` WHERE `titel`='{$info->id}' AND `forum`='{$_GET['c']}'");
$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=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\">".$info->titel."</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
} else {
echo "<tr>
<td width=20% class=mainTxt><a href=\"crew-messages.php?id={$info->id}&c={$_GET['c']}\">".$info->titel." (locked)</a></td>
<td width=20% class=mainTxt align=right>".$replies."</td>
</tr>";
}
}
echo "</table></center>";
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -