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

📄 crew-messages.php

📁 还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php

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

?>
<html>
<head>

<title>[( Elite Avengers )]</title>
<meta name="description" content="Vecht met of tegen drugsdealers, wetenschappers en politie. Recruiteer je vrienden en vreemden en laat ze voor je vechten. Koop de zwaarste wapens en domineer iedereen! Word jij nummer 1 van de game? Durf jij de strijd aan als member of clan? Word dan nu lid!">

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

//function blockError(){return true;}

//window.onerror = blockError;

</script>
<basetarget="vieuw">
<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>
<center>

<?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 {
if(isset($_GET['x']) && $_GET['x'] == deletetopic && ($data->clanlevel >= 7 OR $data->level >= 50)) {
echo "<table width=\"100%\"><tr><td class=\"subTitle\">Delete Topic</td></tr>
<tr><td class=\"mainTxt\"><center>Are you sure you want to delete this topic?<br>
<a href=\"crew-messages.php?x=deletetopicyes&id={$_GET['id']}&c={$_GET['c']}\"><b>Yes</b></a> - <a href=\"javascript:history.back(1)\"><b>No</b></a></center></td></tr><table>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletetopicyes && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("DELETE FROM `crewtopics` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
mysql_query("DELETE FROM `crewreplys` WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Delete</td></tr><tr><td class=\"mainTxt\"><b>The topic has been deleted!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
exit;
}
elseif(isset($_GET['x']) && $_GET['x'] == deletereply && ($data->clanlevel >= 7 OR $data->level >= 50)) {
echo "<table width=\"100%\"><tr><td class=\"subTitle\">Delete Reply</td></tr>
<tr><td class=\"mainTxt\"><center>Are you sure you want to delete that reply?<br>
<a href=\"crew-messages.php?x=deletereplyyes&rid={$_GET['rid']}&c={$_GET['c']}&id={$_GET['id']}\"><b>Yes</b></a> - <a href=\"javascript:history.back(1)\"><b>No</b></a></center></td></tr><table>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletereplyyes && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("DELETE FROM `crewreplys` WHERE `id`='{$_GET['rid']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Delete</td></tr><tr><td class=\"mainTxt\"><b>That reply has been deleted!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				setTimeout(\"parent.vieuw.location = 'crew-messages.php?c={$_GET['c']}&id={$_GET['id']}'\", 1);
				</script>";
exit;
}
elseif(isset($_GET['x']) && $_GET['x'] == normal && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("UPDATE `crewtopics` SET `type`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Normal Topic</td></tr><tr><td class=\"mainTxt\"><b>This topic is now a normal topic!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == opentopic && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("UPDATE `[clans]` SET `open`='{$_GET['id']}' WHERE `name`='{$data->clan}' AND `id`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Home Topic</td></tr><tr><td class=\"mainTxt\"><b>This topic will now be shown at the begin page!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				setTimeout(\"parent.vieuw.location = 'crew-messages.php?c={$_GET['c']}&id={$_GET['id']}'\", 1);
				</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == sticky && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("UPDATE `crewtopics` SET `type`='2' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\"><b>Sticky:</b> Topic</td></tr><tr><td class=\"mainTxt\"><b>This topic is now a Sticky!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == important && ($data->clanlevel >= 7 OR $data->level >= 50)) {
mysql_query("UPDATE `crewtopics` SET `type`='3' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\"><b>Important:</b> Topic</td></tr><tr><td class=\"mainTxt\"><b>This topic has now the priority Important!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == lock) {
$dbres		= mysql_query("SELECT * FROM `crewtopics` WHERE `poster`='{$data->login}' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
$yschrijver	= mysql_num_rows($dbres);
if($data->clanlevel >= 7 OR $yschrijver >= 1 OR $data->level >= 50) {
mysql_query("UPDATE `crewtopics` SET `locked`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Topic (locked)</td></tr><tr><td class=\"mainTxt\"><b>You locked this topic!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
}
}
elseif(isset($_GET['x']) && $_GET['x'] == unlock) {
$dbres		= mysql_query("SELECT * FROM `crewtopics` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
$yschrijver	= mysql_num_rows($dbres);
if($data->clanlevel >= 7 OR $yschrijver >= 1 OR $data->level >= 50) {
mysql_query("UPDATE `crewtopics` SET `locked`='0' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Topic</td></tr><tr><td class=\"mainTxt\"><b>You unlocked this topic!</b></td></tr></table>
				<script>
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
}
}


$query = mysql_query("SELECT * FROM `crewtopics` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
$info = mysql_fetch_object($query);


if(isset($_GET['x']) && $_GET['x'] == edittopic) {
$dbres		= mysql_query("SELECT * FROM `crewtopics` WHERE `poster`='{$data->login}' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
$yschrijver	= mysql_num_rows($dbres);
if($data->clanlevel >= 7 OR $yschrijver >= 1 OR $data->level >= 50) {
echo "<table width=100%><tr><td class=\"subTitle\">Edit Topic</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"crew-messages.php?x=edittopicyes&id={$_GET['id']}&c={$_GET['c']}\">
<input type=\"text\" name=\"titel\" value=\"{$info->titel}\" maxlength=\"25\"><br>
<textarea rows=\"10\" cols=\"35\" name=\"newtext\">{$info->text}</textarea><br>
<input type=\"submit\" name=\"submit\" value=\"Edit!\" size=\"5\">
</form></td></tr></table>";
}
}
elseif(isset($_GET['x']) && $_GET['x'] == edittopicyes) {
$dbres		= mysql_query("SELECT * FROM `crewtopics` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
$yschrijver	= mysql_num_rows($dbres);
if($data->clanlevel >= 7 OR $yschrijver >= 1 OR $data->level >= 50) {
mysql_query("UPDATE `crewtopics` SET `titel`='{$_POST['titel']}', `text`='{$_POST['newtext']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['c']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Delete</td></tr><tr><td class=\"mainTxt\"><b>You have edit the Topic!</b></td></tr></table>
				<script>
				setTimeout(\"parent.vieuw.location = 'crew-messages.php?c={$_GET['c']}&id={$_GET['id']}'\", 1);
				setTimeout(\"parent.topics.location = 'crew-topics.php?c={$_GET['c']}'\", 1);
				</script>";
exit;
}
}

	$info->text		= preg_replace('/\n/',"<br>\n",$info->text);
        $info->text		= preg_replace("/\[B\]/", "<b>", $info->text);
        $info->text		= preg_replace("/\[\/B\]/", "</b>", $info->text);
        $info->text		= preg_replace("/\[b\]/", "<b>", $info->text);
        $info->text		= preg_replace("/\[\/b\]/", "</b>", $info->text);
        $info->text		= preg_replace("/\[u\]/", "<u>", $info->text);
        $info->text		= preg_replace("/\[\/u\]/", "</u>", $info->text);
        $info->text		= preg_replace("/\[U\]/", "<u>", $info->text);
        $info->text		= preg_replace("/\[\/U\]/", "</u>", $info->text);
        $info->text		= preg_replace("/\[i\]/", "<i>", $info->text);
        $info->text		= preg_replace("/\[\/i\]/", "</i>", $info->text);
        $info->text		= preg_replace("/\[I\]/", "<i>", $info->text);
        $info->text		= preg_replace("/\[\/I\]/", "</i>", $info->text);
        $info->text		= preg_replace("/\[s\]/", "<s>", $info->text);
        $info->text		= preg_replace("/\[\/s\]/", "</s>", $info->text);
        $info->text		= preg_replace("/\[S\]/", "<s>", $info->text);
        $info->text		= preg_replace("/\[\/S\]/", "</s>", $info->text);
        $info->text		= preg_replace("/\[center\]/", "<center>", $info->text);
        $info->text		= preg_replace("/\[\/center\]/", "</center>", $info->text);
        $info->text		= preg_replace("/\[CENTER\]/", "<center>", $info->text);
        $info->text		= preg_replace("/\[\/CENTER\]/", "</center>", $info->text);

⌨️ 快捷键说明

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