📄 playermessa.php
字号:
<?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="gfView">
<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
if($data->level < 50 && $_GET['m'] > 3 OR $_GET['m'] <= 0) {
echo "<font color=red><b>* Invalid forum id!</b></font>";
exit;
}
if($_GET['m'] <= 0 OR $_GET['m'] > 3 && $_GET['m'] != 278) {
echo "<font color=red><b>* Invalid forum id!</b></font>";
exit;
}
if(isset($_GET['x']) && $_GET['x'] == deletetopic && $data->level >= 50) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='1' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == "ZeRoDeaD"){
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=\"playermessa.php?x=deletetopicyes&id={$_GET['id']}&m={$_GET['m']}\"><b>Yes</b></a> - <a href=\"javascript:history.back(1)\"><b>No</b></a></center></td></tr><table>";
} else
echo "<font color=red>* This topic may not be deleted!</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletetopicyes && $data->level >= 50) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='1' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == ZeRoDeaD){
mysql_query("DELETE FROM `playermess` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
mysql_query("DELETE FROM `forummess` WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
exit;
} else
echo "<font color=red>* This topic may not be deleted!</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == deletereply && $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=\"playermessa.php?x=deletereplyyes&rid={$_GET['rid']}&m={$_GET['m']}&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->level >= 50) {
mysql_query("DELETE FROM `forummess` WHERE `id`='{$_GET['rid']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
</script>";
exit;
}
elseif(isset($_GET['x']) && $_GET['x'] == normal && $data->level >= 50) {
mysql_query("UPDATE `playermess` SET `type`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == sticky && $data->level >= 50) {
mysql_query("UPDATE `playermess` SET `type`='2' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == important && $data->level >= 50) {
mysql_query("UPDATE `playermess` SET `type`='3' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
elseif(isset($_GET['x']) && $_GET['x'] == lock) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
if($data->level >= 50 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `locked`='1' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
}
if(isset($_GET['x']) && $_GET['x'] == truncate && $data->level >= 50) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='2' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == ZeRoDeaD){
echo "<table width=\"100%\"><tr><td class=\"subTitle\">Truncate</td></tr>
<tr><td class=\"mainTxt\"><center>Are you sure you want to delete all the replys of this topic?<br>
<a href=\"playermessa.php?x=truncateyes&id={$_GET['id']}&m={$_GET['m']}\"><b>Yes</b></a> - <a href=\"javascript:history.back(1)\"><b>No</b></a></center></td></tr><table>";
} else
echo "<font color=red>* This topic may not be truncated!</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == truncateyes && $data->level >= 50) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='2' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == ZeRoDeaD){
mysql_query("DELETE FROM `forummess` WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td class=\"subTitle\">Truncate</td></tr><tr><td class=\"mainTxt\"><b>You deleted all the messages of this topic!</b></td></tr></table>
<script>
setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
</script>";
} else
echo "<font color=red>* This topic may not be truncated!</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == unlock) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='$data->login' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
if($data->level >= 50 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `locked`='0' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
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.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
</script>";
}
}
$query = mysql_query("SELECT * FROM `playermess` WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$info = mysql_fetch_object($query);
if(isset($_GET['x']) && $_GET['x'] == edittopic) {
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `protected`='3' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal = mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == ZeRoDeaD){
$dbres = mysql_query("SELECT * FROM `playermess` WHERE `poster`='{$data->login}' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$yschrijver = mysql_num_rows($dbres);
$text = str_replace("\\\'", "'", $info->text);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -