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

📄 playermessa.php

📁 Time 4 Crime online
💻 PHP
📖 第 1 页 / 共 3 页
字号:
$text		= str_replace("\\'", "'", $info->text);
$text		= str_replace("\'", "'", $info->text);
$text		= str_replace("\'", "'", $info->text);
$text		= str_replace("\'", "'", $info->text);
$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($data->level >= 50 OR $yschrijver >= 1) {
echo "<table width=100%><tr><td align=center background=topic.gif>Bewerk onderwerp</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=edittopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<input type=\"text\" name=\"titel\" value=\"{$info->titel}\"";
if($data->level < 50)
echo " maxlength=\"25\"";
echo "><br>
<textarea rows=\"10\" cols=\"35\" name=\"newtext\">{$text}</textarea><br>
<input type=\"submit\" name=\"submit\" value=\"bewerk!\" size=\"5\">
</form></td></tr></table>";
}
} else
echo "<font color=red>Dit onderwerp mag niet worden gewijzigd</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == edittopicyes) {
$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 >= 10 OR $yschrijver >= 1) {
mysql_query("UPDATE `playermess` SET `titel`='{$_POST['titel']}', `text`='{$_POST['newtext']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Bewerk onderwerp</td></tr><tr><td class=\"mainTxt\"><b>YJe hebt het onderwerp bewerkt</b></td></tr></table>
				<script>
				setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_GET['m']}&id={$_GET['id']}'\", 1);
				setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_GET['m']}'\", 1);
				</script>";
exit;
}
}
if(isset($_GET['x']) && $_GET['x'] == movetopic) {
$dbres		= mysql_query("SELECT * FROM `playermess` WHERE `protected`='4' AND `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
$aantal		= mysql_num_rows($dbres);
if($aantal <= 0 OR $data->login == jeffrey){
if($data->level >= 10) {
echo "<table width=100%><tr><td align=center background=topic.gif>Move Topic</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=movetopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<select name=\"forum\">
	<option value=\"1\">Game Forum</option>
	<option value=\"3\">Sales Forum</option>
	<option value=\"2\">Off Topic Forum</option>
</select><br>
<input type=\"submit\" name=\"submit\" value=\"Move Topic!\">
</form></td></tr></table>";
}
} else
echo "<font color=red>je mag dit onderwerp niet verplaatsen</font>";
}
elseif(isset($_GET['x']) && $_GET['x'] == movetopicyes && ($_POST['forum'] == 1 OR $_POST['forum'] == 2 OR $_POST['forum'] == 3)) {
if($data->level >= 10) {
mysql_query("UPDATE `playermess` SET `forum`='{$_POST['forum']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
mysql_query("UPDATE `forummess` SET `forum`='{$_POST['forum']}' WHERE `titel`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Move Topic</td></tr><tr><td class=\"mainTxt\"><b>You have moved the Topic!</b></td></tr></table>
				<script>
				setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_POST['forum']}&id={$_GET['id']}'\", 1);
				setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_POST['forum']}'\", 1);
				</script>";
exit;
}
}
if(isset($_GET['x']) && $_GET['x'] == protecttopic) {
if($data->level == 225) {
echo "<table width=100%><tr><td align=center background=topic.gif>Beveiligde onderwerpen</td></tr>
<tr><td class=\"mainTxt\"><form method=\"post\" action=\"playermessa.php?x=protecttopicyes&id={$_GET['id']}&m={$_GET['m']}\">
<select name=\"forum\">
	<option value=\"1\">Niet verwijderen!</option>
	<option value=\"2\">Niet reacties weg doen!</option>
	<option value=\"3\">Niet bewerken!</option>
	<option value=\"4\">Niet verwijderen!</option>
</select><br>
<input type=\"submit\" name=\"submit\" value=\"Protect!\">
</form></td></tr></table>";
}
}
elseif(isset($_GET['x']) && $_GET['x'] == protecttopicyes && ($_POST['protection'] == 1 OR $_POST['protection'] == 2 OR $_POST['protection'] == 3 OR $_POST['protection'] == 4)) {
if($data->level == 10) {
mysql_query("UPDATE `playermess` SET `protected`='{$_POST['protection']}' WHERE `id`='{$_GET['id']}' AND `forum`='{$_GET['m']}'");
echo "<table width=100%><tr><td align=center background=topic.gif>Verplaats onderwerp</td></tr><tr><td class=\"mainTxt\"><b>Je hebt de onderwerp verplaatst</b></td></tr></table>
				<script>
				setTimeout(\"parent.gfView.location = 'playermessa.php?m={$_POST['forum']}&id={$_GET['id']}'\", 1);
				setTimeout(\"parent.gfTopics.location = 'playermess.php?m={$_POST['forum']}'\", 1);
				</script>";
exit;
}
}

        $info->text		= htmlspecialchars($info->text);
        $info->text		= preg_replace('/\n/',"<br>\n",$info->text);
        $info->text		= eregi_replace("\\[B\\]", "<b>", $info->text);
        $info->text		= eregi_replace("\\[U\\]", "<u>", $info->text);
        $info->text		= eregi_replace("\\[I\\]", "<i>", $info->text);
        $info->text		= eregi_replace("\\[S\\]", "<s>", $info->text);
        $info->text		= eregi_replace("\\[/B\\]", "</b>", $info->text);
        $info->text		= eregi_replace("\\[/U\\]", "</u>", $info->text);
        $info->text		= eregi_replace("\\[/I\\]", "</i>", $info->text);
        $info->text		= eregi_replace("\\[/S\\]", "</s>", $info->text);
        $info->text		= eregi_replace("\\[HR\\]", "<hr>", $info->text);
        $info->text		= eregi_replace("\\[CENTER\\]", "<center>", $info->text);
        $info->text		= eregi_replace("\\[SCROLL\\]", "<maquee>", $info->text);
        $info->text		= eregi_replace("\\[/CENTER\\]", "</center>", $info->text);
        $info->text		= eregi_replace("\\[/SCROLL\\]", "</maquee>", $info->text);
        $info->text		= eregi_replace("\\[RIGHT\\]", "<align=\"right\">", $info->text);
        $info->text		= eregi_replace("\\[LEFT\\]", "<align=\"left\">", $info->text);
        $info->text		= eregi_replace("\\[/RIGHT\\]", "</align>", $info->text);
        $info->text		= eregi_replace("\\[/LEFT\\]", "</align>", $info->text);
        $info->text		= eregi_replace("\\[TXT\\]([^\\[]*)\\[/TXT\\]", "<textarea rows=\"5\" cols=\"50\">\\1</textarea>", $info->text);
        $info->text		= eregi_replace("\\[SUP\\]([^\\[]*)\\[/SUP\\]", "<sup>\\1</sup>", $info->text);
        $info->text		= eregi_replace("\\[SUB\\]([^\\[]*)\\[/SUB\\]", "<sub>\\1</sub>", $info->text);
        $info->text		= eregi_replace("\\[hr\\]/", "<hr>", $info->text);
        $info->text		= eregi_replace("\\[viewing\\]/", "{$data->login}", $info->text);
        $info->text		= eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$info->text);      
        $info->text		= eregi_replace("\\[SIZE=([^\\[]*)\\]([^\\[]*)\\[/SIZE\\]","<font size=\"\\1\">\\2</font>",$info->text);  
        $info->text		= eregi_replace("\\[ALIGN=([^\\[]*)\\]([^\\[]*)\\[/ALIGN\\]","<p align=\"\\1\">\\2</p>",$info->text);
        $info->text		= eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=\\1 target=_blank>\\2</a>",$info->text);
        $info->text		= eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<b>Quote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\1</td></tr></table>",$info->text);
        $info->text		= eregi_replace("\\[quote=([^\\[]*)\\]([^\\[]*)\\[/quote\\]","<b>\\1 wrote:</b><br><table class=\"quote\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" bordercolor=\"black\"><tr><td>\\2</td></tr></table>",$info->text);
        $info->text		= eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\\1 width=467>",$info->text);

        $info->text		= eregi_replace("kut", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("kloten", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("pik", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("penis", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("vagina", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("lul", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("kanker", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("cancer", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("leier", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("fuck", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("f[b][/b]uck", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("fu[b][/b]ck", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("fuc[b][/b]k", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("neuk", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("anaal", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("gangsta-world", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("bootleggers", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("mobstar", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("omerta", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        $info->text		= eregi_replace("gangsta-world", "<img src=\"images/smilies/icon_censored.gif\">", $info->text);
        
		$info->text		= str_replace("\\\'", "'", $info->text);
		$info->text		= str_replace("\\\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);
		$info->text		= str_replace("\'", "'", $info->text);

        $info->text		= str_replace(":)", "<img src=\"images/smilies/icon_smile.gif\">", $info->text);
        $info->text		= str_replace(":\'(", "<img src=\"images/smilies/icon_cry.gif\">", $info->text);
        $info->text		= str_replace(":(", "<img src=\"images/smilies/icon_sad.gif\">", $info->text);
        $info->text		= str_replace(";)", "<img src=\"images/smilies/icon_wink.gif\">", $info->text);
        $info->text		= str_replace(":s", "<img src=\"images/smilies/icon_confused.gif\">", $info->text);
        $info->text		= str_replace(":P", "<img src=\"images/smilies/icon_razz.gif\">", $info->text);
        $info->text		= str_replace(":D", "<img src=\"images/smilies/icon_lol.gif\">", $info->text);
        $info->text		= str_replace(":S", "<img src=\"images/smilies/icon_confused.gif\">", $info->text);
        $info->text		= str_replace(":p", "<img src=\"images/smilies/icon_razz.gif\">", $info->text);
        $info->text		= str_replace(":d", "<img src=\"images/smilies/icon_lol.gif\">", $info->text);
        $info->text		= str_replace("8)", "<img src=\"images/smilies/icon_cool.gif\">", $info->text);
        $info->text		= str_replace(":!:", "<img src=\"images/smilies/icon_exclaim.gif\">", $info->text);
        $info->text		= str_replace(":?:", "<img src=\"images/smilies/icon_question.gif\">", $info->text);
        $info->text		= str_replace(":o", "<img src=\"images/smilies/icon_surprised.gif\">", $info->text);
        $info->text		= str_replace(":arrow:", "<img src=\"images/smilies/icon_arrow.gif\">", $info->text);
        $info->text		= str_replace("8|", "<img src=\"images/smilies/icon_eek.gif\">", $info->text);
        $info->text		= str_replace(":mad:", "<img src=\"images/smilies/icon_mad.gif\">", $info->text);
        $info->text		= str_replace(":twisted:", "<img src=\"images/smilies/icon_twisted.gif\">", $info->text);
        $info->text		= str_replace(":@", "<img src=\"images/smilies/icon_twisted.gif\">", $info->text);
        $info->text		= str_replace(":|", "<img src=\"images/smilies/icon_neutral.gif\">", $info->text);
        $info->text		= str_replace(":tup:", "<img src=\"images/smilies/icon_tup.gif\">", $info->text);
        $info->text		= str_replace(":tdn:", "<img src=\"images/smilies/icon_tdn.gif\">", $info->text);
        $info->text		= str_replace("(n)", "<img src=\"images/smilies/icon_tdn.gif\">", $info->text);
        $info->text		= str_replace("(y)", "<img src=\"images/smilies/icon_tup.gif\">", $info->text);
        $info->text		= str_replace(":evil:", "<img src=\"images/smilies/icon_evil.gif\">", $info->text);

⌨️ 快捷键说明

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