Warning: Cannot modify header information - headers already sent in /var/www/web60/html/include/boxes/shoutbox.php on line 39
Der Eintrag wird trotzdem gepeichert!
verwendete ilchClan Version: 1.1
betroffene Homepage: www.d-o-bund.de
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||

Warning: Cannot modify header information - headers already sent in /var/www/web60/html/include/boxes/shoutbox.php on line 39

Warning: Cannot modify header information - Header bereits gesendet / var/www/web60/html/include/boxes/shoutbox.php auf Zeile 39



db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "<u>'.$shoutbox_nickname.'</u><br>'.$datum.''.$zeit.'" , "'.$shoutbox_textarea.'" ) ' );
$anz = db_count_query('SELECT COUNT(id) FROM `prefix_shoutbox`');
$limit = 50; //Limit der Shoutbox
if ($anz > $limit) {
db_query('DELETE FROM `prefix_shoutbox` ORDER BY id LIMIT '.($anz-$limit)); }
}
$ref = strstr($_SERVER['HTTP_REFERER'],'index.php?');
$ref = strlen($ref) < 10 ? 'index.php' : $ref;
header('Location: '.$ref);
}
echo '<form action="index.php" method="POST">';
echo '<input type="hidden" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" />';
echo '<textarea cols="15" rows="3" name="shoutbox_textarea" style="border: 1px solid #666666; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #363636; color:#C0C0C0"></textarea>';
//echo get_antispam ('shoutbox', 0);
echo '<input type="submit" value="'.$lang['formsub'].'" name="shoutbox_submit" style="color: #c0c0c0; border: 1px ridge #666666; background-color: #333333">';
}
else {
//Gaeste
echo "<font color=#999999><b><br>Zum Posten<br>Bitte Einloggen!<p></p></b></font>";

<?php
...
if (has_right($allgAr['sb_recht'])){
// ab hier
echo '<form action="'.$ref.'" method="POST" name="shoutbox" onsubmit="return chkShoutbox'.$user.'()">';
// geändert hier ist die Weiterleitung
echo '<table><tr><td>Today:</td><td>'.$datum.'</td></tr><tr><td>Time:</td><td>'.$zeit.'</td></tr><tr><td>Your IP:</td><td><b>'.$shoutbox_VALUE_name2.'</b></td></tr></table>';
echo '<input type="text" size="26" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" '.$onfocus.' maxlength="30" '.$readonly.' >';
echo '<br><textarea cols="22" rows="4" name="shoutbox_textarea"></textarea><br>';
echo get_antispam ('shoutbox', 0);
echo '<button type="submit" value="'.$lang['formsub'].'" name="shoutbox_submit">'.$lang['formsub'].'</button>';
echo '</form>';
...
?>


| Geschlossen | ||
![]() |
Zurück zu Fehlersuche und Probleme | |