Also selber hab ich nix reingebaut und "mein" Hoster kann mir nix dazu sagen, weil es nicht meiner ist *gg* , bin bei jemand anders mit drauf. Ich poste mal meine ausgabe.php (hoffe ich darf das)
PHP-Code:
<?php
include ('../../lib/functions.lib.php');
db_connect ();
include ('../../lib/session.lib.php');
$db_auslesen = db_query("Select * FROM ".$db_prefix."_shoutbox_admin");
$limit = mysql_fetch_assoc ($db_auslesen);
$ausgabe_neu = db_query("SELECT ID, Nickname, Inhalt, Datum FROM ".$db_prefix."_shoutbox ORDER BY Datum DESC LIMIT 0, ".$limit['neu']."");
$ausgabe_alt = db_query("SELECT ID, Nickname, Inhalt, Datum FROM ".$db_prefix."_shoutbox ORDER BY Datum DESC LIMIT ".$limit['neu'].", ".$limit['alt']."");
echo "<head><meta http-equiv=\"refresh\" content=\"".$limit['reload']."\";></head>";
$smiley_auslesen = db_query("Select * FROM ".$db_prefix."_shoutbox_smileys");
$style_connect = db_query("Select * FROM ".$db_prefix."_shoutbox_style");
// ***Style***
$style = mysql_fetch_assoc ($style_connect);
echo ("
<head>
<style type=\"text/css\">
.nick {
width: ".$style['nick_width'].";
height: ".$style['nick_height'].";
border: ".$style['nick_border'].";
background:".$style['nick_bg'].";
font-size:".$style['nick_font_size'].";
font-family:".$style['nick_font_fam'].";
}
.nick a:visited {
color:".$style['nick_visited_col'].";
text-decoration:".$style['nick_visited_deco'].";
}
.nick a:hover {
color:".$style['nick_hover_col'].";
text-decoration:".$style['nick_hover_deco'].";
}
.nick a:link {
color:".$style['nick_link_col'].";
text-decoration:".$style['nick_link_deco'].";
}
.shoutbox {
width: ".$style['sb_width'].";
height: ".$style['sb_height'].";
background:".$style['sb_bg'].";
color:".$style['sb_col'].";
padding-top:".$style['sb_pad_top'].";
padding-bottom:".$style['sb_pad_bottom'].";
font-size:".$style['sb_font_size'].";
font-family:".$style['sb_font_fam'].";
}
.body {
background:".$style['sb_bg'].";
}
".$style['own_css']."
</style>
</head>
");
// ***Style - ENDE***
?>
<body class="body">
<?
if(@mysql_num_rows($smiley_auslesen)) {
while($row = mysql_fetch_array($smiley_auslesen)) {
$smiley_search[] = ($row['img_short']);
$smiley_replace[] = ("<img src=\"files/smileys/".$row['img_src']."\" alt=\"".$row['img_short']."\" />");
}
}
if($_GET['Eintraege'] != 'alt') {
if(mysql_num_rows($ausgabe_neu)) {
while($row = mysql_fetch_assoc($ausgabe_neu)) {
$Inhalt = str_replace($smiley_search, $smiley_replace, $row['Inhalt']); // smileys ersetzten
$Datum = date("d.m.Y",$row['Datum']);
$Zeit = date("H:i",$row['Datum']);
echo "<div class=\"nick\">";
echo "<a href=\"".$domain."/?content=/nickpage&nick=".$row['Nickname']."\" target=\"_blank\"><strong>".$row['Nickname']."</strong></a> schrieb am <strong>".$Datum."</strong> um <strong>".$Zeit."</strong> Uhr ";
if ($_SESSION['uid'] == $admin_id) {
echo "<a href=\"?delid=".$row['ID']."\"><strong>[DEL]</strong></a>";
}
echo "</div>";
echo "<div class=\"shoutbox\">".$Inhalt."</div>";
}
} else {
echo"<p>Keine Einträge vorhanden.</p>\n";
}
} else {
if(mysql_num_rows($ausgabe_alt)) {
while($row = mysql_fetch_assoc($ausgabe_alt)) {
$Inhalt = str_replace($smiley_search, $smiley_replace, $row['Inhalt']); // smileys ersetzten
$Datum = date("d.m.Y",$row['Datum']);
$Zeit = date("H:i",$row['Datum']);
echo "<div class=\"nick\">";
echo "<a href=\"".$domain."/?content=/nickpage&nick=".$row['Nickname']."\" target=\"_blank\"><strong>".$row['Nickname']."</strong></a> schrieb am <strong>".$Datum."</strong> um <strong>".$Zeit."</strong> Uhr ";
if ($_SESSION['uid'] == $admin_id) {
echo "<a href=\"?delid=".$row['ID']."&Eintraege=alt\"><strong>[DEL]</strong></a>";
}
echo "</div>";
echo "<div class=\"shoutbox\">".$Inhalt."</div>";
}
} else {
echo"<p>Keine älteren Einträge vorhanden.</p>\n";
}
}
if ($_GET['delid'] && $_SESSION['uid'] == $admin_id && $_GET['Eintraege'] == 'alt') {
db_query ("DELETE FROM ".$db_prefix."_shoutbox WHERE ID='".$_GET['delid']."'");
echo "<head><meta http-equiv=\"refresh\" content=\"0;ausgabe.php?Eintraege=alt\";></head>";
} elseif ($_GET['delid'] && $_SESSION['uid'] == $admin_id) {
db_query ("DELETE FROM ".$db_prefix."_shoutbox WHERE ID='".$_GET['delid']."'");
echo "<head><meta http-equiv=\"refresh\" content=\"0;ausgabe.php\";></head>";
}
mysql_close() or die(mysql_error());
?>
</body>
achja, hatte auch schon probiert das "mysql_close() or die(mysql_error()); " mal rauszunhemen, hat aber nix gebracht.
lg auron2008