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

📄 berichtenbalk.php

📁 还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep
💻 PHP
字号:
<?php /* ------------------------- */

$banner = "no";
  include("_include-config.php");

/* ------------------------- */ ?>

<html>

<head>

<link rel="stylesheet" type="text/css" href="css-v1.css">
<title>[( Elite Avengers )]</title>

<body>

<?php

$hoeveel = '15';
  echo "<marquee width=90% style=\"cursor: default\" onmouseover=\"this.stop()\" onmouseout=\"this.start()\">"; 

$sql1 = "SELECT * FROM berichtenbalk ORDER BY id DESC LIMIT $hoeveel"; //ophalen van de berichten 
$query1 = mysql_query($sql1); 
while ($list = mysql_fetch_object($query1)) 
{ 
$naam1 = $list->naam; 
$naam1 = ($naam1 == ZeRoDeaD) ? "<font color=red><b>$naam1</b></font>" : "<font color=white>$naam1</font>";
$bericht1 = $list->bericht;  //stuksje ubb 
$bericht1 = htmlspecialchars($bericht1); 
        $bericht1		= preg_replace('/(http:\/\/\S+)/','<a href="$1" target=\"_blank\">$1</a>',$bericht1);
        $bericht1		= preg_replace("/\[B\]/", "<b>", $bericht1);
        $bericht1		= preg_replace("/\[\/B\]/", "</b>", $bericht1);
        $bericht1		= preg_replace("/\[b\]/", "<b>", $bericht1);
        $bericht1		= preg_replace("/\[\/b\]/", "</b>", $bericht1);
        $bericht1		= preg_replace("/\[u\]/", "<u>", $bericht1);
        $bericht1		= preg_replace("/\[\/u\]/", "</u>", $bericht1);
        $bericht1		= preg_replace("/\[U\]/", "<u>", $bericht1);
        $bericht1		= preg_replace("/\[\/U\]/", "</u>", $bericht1);
        $bericht1		= preg_replace("/\[i\]/", "<i>", $bericht1);
        $bericht1		= preg_replace("/\[\/i\]/", "</i>", $bericht1);
        $bericht1		= preg_replace("/\[I\]/", "<i>", $bericht1);
        $bericht1		= preg_replace("/\[\/I\]/", "</i>", $bericht1);
        $bericht1		= preg_replace("/\[s\]/", "<s>", $bericht1);
        $bericht1		= preg_replace("/\[\/s\]/", "</s>", $bericht1);
        $bericht1		= preg_replace("/\[S\]/", "<s>", $bericht1);
        $bericht1		= preg_replace("/\[\/S\]/", "</s>", $bericht1);
        $bericht1		= eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$bericht1);
        $bericht1		= eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\\]","<a href=\"\\1\" target=\"_blank\">\\2</a>",$bericht1);
        $bericht1		= eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","<font color=\"\\1\">\\2</font>",$bericht1);
        $bericht1		= eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=\"_blank\">\\2</a>",$bericht1);

        $bericht1		= str_replace(":)", "<img src=\"images/smilies/icon_smile.gif\">", $bericht1);
        $bericht1		= str_replace(":\'(", "<img src=\"images/smilies/icon_cry.gif\">", $bericht1);
        $bericht1		= str_replace(":(", "<img src=\"images/smilies/icon_sad.gif\">", $bericht1);
        $bericht1		= str_replace(";)", "<img src=\"images/smilies/icon_wink.gif\">", $bericht1);
        $bericht1		= str_replace(":s", "<img src=\"images/smilies/icon_confused.gif\">", $bericht1);
        $bericht1		= str_replace(":P", "<img src=\"images/smilies/icon_razz.gif\">", $bericht1);
        $bericht1		= str_replace(":D", "<img src=\"images/smilies/icon_lol.gif\">", $bericht1);
        $bericht1		= str_replace(":S", "<img src=\"images/smilies/icon_confused.gif\">", $bericht1);
        $bericht1		= str_replace(":p", "<img src=\"images/smilies/icon_razz.gif\">", $bericht1);
        $bericht1		= str_replace(":d", "<img src=\"images/smilies/icon_lol.gif\">", $bericht1);
        $bericht1		= str_replace("8)", "<img src=\"images/smilies/icon_cool.gif\">", $bericht1);
        $bericht1		= str_replace(":!:", "<img src=\"images/smilies/icon_exclaim.gif\">", $bericht1);
        $bericht1		= str_replace(":?:", "<img src=\"images/smilies/icon_question.gif\">", $bericht1);
        $bericht1		= str_replace(":o", "<img src=\"images/smilies/icon_surprised.gif\">", $bericht1);
        $bericht1		= str_replace(":arrow:", "<img src=\"images/smilies/icon_arrow.gif\">", $bericht1);
        $bericht1		= str_replace("8|", "<img src=\"images/smilies/icon_eek.gif\">", $bericht1);
        $bericht1		= str_replace(":mad:", "<img src=\"images/smilies/icon_mad.gif\">", $bericht1);
        $bericht1		= str_replace(":twisted:", "<img src=\"images/smilies/icon_twisted.gif\">", $bericht1);
        $bericht1		= str_replace(":|", "<img src=\"images/smilies/icon_neutral.gif\">", $bericht1);

echo "<b>$naam1</b><font color=white>: $bericht1 $teken </font>";
} 

echo "</marquee>"; 
if($data->level >= 50) {
echo "<a target=_blank href=toevoegen.php>Add message</a>";
}
?>

</body>

</html>

⌨️ 快捷键说明

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