<?
include "db.php";
$conn = mysql_connect("$host","$user","$pass");
mysql_select_db("$db",$conn);
$q = mysql_query("SELECT ip, msg, pic, flash, bredde, hojde FROM $tabel WHERE blok = 1") or die(mysql_error());
while($r = mysql_fetch_array($q)){
if($r["ip"] == $REMOTE_ADDR){
echo "<TITLE>$titel</TITLE><body bgcolor=$back><p align=$lok><FONT SIZE=$fontsize FACE=$fontface COLOR=$fontcolor>";
if ($r[pic] == ""){
echo "";
}
if ($r[flash] == ""){
echo "";
}
if ($r[pic] != ""){
echo "<img src=\"$r[pic]\"><br>";
die($r["msg"]);
}
if ($r[flash] != ""){
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"
http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\"
id=\"$r[flash]\" width=\"$r[bredde]\" height=\"$r[hojde]\">
<param name=\"movie\" value=\"$r[flash]\">
<param name=\"quality\" value=\"high\">
<param name=\"bgcolor\" value=\"#FFFFFF\">
<embed name=\"$r[flash]\" src=\"$r[flash]\" quality=\"high\" bgcolor=\"$back\"
width=\"$r[bredde]\" height=\"$r[hojde]\"
type=\"application/x-shockwave-flash\"
pluginspage=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> </embed>
</object>
<br>";
}
die($r["msg"]);
}
}
?>