Ich habe eine neue Shoutbox Installiert. ( Von MVN050 )
Zeit dem habe ich ein Problem.
Wenn ich mich eingelogt habe, und auf meiner HP Serve .
Bin ich einmal eingelogt und dann wieder nicht.
Das passiert immer wenn ich im zu den News gehe, oder wieder zurück ins Forum. Das Problem hatte ich vorher nicht. Liegt das an der neuen Shoutbox?
<?php /** * @author MVN050 * @copyright 2009 * * http://web61.server101.rhs-it.de/ * */ defined ('main') or die ( 'no direct access' ); $query = db_query('SELECT * FROM `prefix_spambox_confic`'); while($row = db_fetch_assoc($query)) { function MessageFormat($message) { $message = preg_replace( "/<\/?[^\\<>|\/]*>/", "", $message ); $message = str_replace("s0.","<img src=\"include/images/spambox/smilies/s0.gif\">",$message); $message = str_replace("s1.","<img src=\"include/images/spambox/smilies/s1.gif\">",$message); $message = str_replace("s2.","<img src=\"include/images/spambox/smilies/s2.gif\">",$message); $message = str_replace("s3.","<img src=\"include/images/spambox/smilies/s3.gif\">",$message); $message = str_replace("s4.","<img src=\"include/images/spambox/smilies/s4.gif\">",$message); $message = str_replace("s5.","<img src=\"include/images/spambox/smilies/s5.gif\">",$message); $message = str_replace("s6.","<img src=\"include/images/spambox/smilies/s6.gif\">",$message); $message = str_replace("s7.","<img src=\"include/images/spambox/smilies/s7.gif\">",$message); $message = str_replace("s8.","<img src=\"include/images/spambox/smilies/s8.gif\">",$message); $message = str_replace("s9.","<img src=\"include/images/spambox/smilies/s9.gif\">",$message); $message = str_replace("s10","<img src=\"include/images/spambox/smilies/s10.gif\">",$message); $message = str_replace("s11","<img src=\"include/images/spambox/smilies/s11.gif\">",$message); $message = str_replace("s12","<img src=\"include/images/spambox/smilies/s12.gif\">",$message); $message = str_replace("s13","<img src=\"include/images/spambox/smilies/s13.gif\">",$message); $message = str_replace("s14","<img src=\"include/images/spambox/smilies/s14.gif\">",$message); $message = str_replace("s15","<img src=\"include/images/spambox/smilies/s15.gif\">",$message); $message = str_replace("s16","<img src=\"include/images/spambox/smilies/s16.gif\">",$message); $message = str_replace("s17","<img src=\"include/images/spambox/smilies/s17.gif\">",$message); $message = str_replace("s18","<img src=\"include/images/spambox/smilies/s18.gif\">",$message); $message = str_replace("s19","<img src=\"include/images/spambox/smilies/s19.gif\">",$message); $message = str_replace("s20","<img src=\"include/images/spambox/smilies/s20.gif\">",$message); $message = str_replace("s21","<img src=\"include/images/spambox/smilies/s21.gif\">",$message); $message = str_replace("s22","<img src=\"include/images/spambox/smilies/s22.gif\">",$message); $message = str_replace("s23","<img src=\"include/images/spambox/smilies/s23.gif\">",$message); $message = str_replace("s24","<img src=\"include/images/spambox/smilies/s24.gif\">",$message); $message = str_replace("s25","<img src=\"include/images/spambox/smilies/s25.gif\">",$message); $message = str_replace("s26","<img src=\"include/images/spambox/smilies/s26.gif\">",$message); $message = str_replace("s27","<img src=\"include/images/spambox/smilies/s27.gif\">",$message); $message = str_replace("s28","<img src=\"include/images/spambox/smilies/s28.gif\">",$message); $message = str_replace("s29","<img src=\"include/images/spambox/smilies/s29.gif\">",$message); $message = str_replace("s30","<img src=\"include/images/spambox/smilies/s30.gif\">",$message); $message = str_replace("s31","<img src=\"include/images/spambox/smilies/s31.gif\">",$message); $message = str_replace("s32","<img src=\"include/images/spambox/smilies/s32.gif\">",$message); $message = str_replace("s33","<img src=\"include/images/spambox/smilies/s33.gif\">",$message); $message = str_replace("s34","<img src=\"include/images/spambox/smilies/s34.gif\">",$message); $message = str_replace("s35","<img src=\"include/images/spambox/smilies/s35.gif\">",$message); $message = str_replace("s36","<img src=\"include/images/spambox/smilies/s36.gif\">",$message); $message = str_replace("s37","<img src=\"include/images/spambox/smilies/s37.gif\">",$message); $message = str_replace("s38","<img src=\"include/images/spambox/smilies/s38.gif\">",$message); $message = str_replace("s39","<img src=\"include/images/spambox/smilies/s39.gif\">",$message); $message = str_replace("s40","<img src=\"include/images/spambox/smilies/s40.gif\">",$message); $message = str_replace("s41","<img src=\"include/images/spambox/smilies/s41.gif\">",$message); $message = str_replace("s42","<img src=\"include/images/spambox/smilies/s42.gif\">",$message); $message = str_replace("s43","<img src=\"include/images/spambox/smilies/s43.gif\">",$message); $message = str_replace("s44","<img src=\"include/images/spambox/smilies/s44.gif\">",$message); $message = str_replace("s45","<img src=\"include/images/spambox/smilies/s45.gif\">",$message); $message = str_replace("s46","<img src=\"include/images/spambox/smilies/s46.gif\">",$message); $message = str_replace("s47","<img src=\"include/images/spambox/smilies/s47.gif\">",$message); $message = str_replace("s48","<img src=\"include/images/spambox/smilies/s48.gif\">",$message); $message = str_replace("s49","<img src=\"include/images/spambox/smilies/s49.gif\">",$message); $message = str_replace("s50","<img src=\"include/images/spambox/smilies/s50.gif\">",$message); $message = str_replace("s51","<img src=\"include/images/spambox/smilies/s51.gif\">",$message); $message = str_replace("s52","<img src=\"include/images/spambox/smilies/s52.gif\">",$message); $message = str_replace("s53","<img src=\"include/images/spambox/smilies/s53.gif\">",$message); $message = str_replace("s54","<img src=\"include/images/spambox/smilies/s54.gif\">",$message); $message = str_replace("s55","<img src=\"include/images/spambox/smilies/s55.gif\">",$message); $message = str_replace("s56","<img src=\"include/images/spambox/smilies/s56.gif\">",$message); $message = str_replace("s57","<img src=\"include/images/spambox/smilies/s57.gif\">",$message); $message = str_replace("s58","<img src=\"include/images/spambox/smilies/s58.gif\">",$message); $message = preg_replace('#arschloch#i','*****',$message); $message = preg_replace('#arsch#i','*****',$message); $message = preg_replace('#depp#i','*****',$message); $message = preg_replace('#idiot#i','*****',$message); $message = preg_replace('#penner#i','*****',$message); $message = preg_replace( "/\[b\](.+?)\[\/b\]/is", "<b>\\1</b>", $message); $message = preg_replace( "/\[u\](.+?)\[\/u\]/is", "<u>\\1</u>", $message); $message = preg_replace( "/\[i\](.+?)\[\/i\]/is", "<i>\\1</i>", $message); $message = preg_replace( "/\[pre\](.+?)\[\/pre\]/is", "<pre>\\1</pre>", $message); $message = preg_replace( "/\[left\](.+?)\[\/left\]/is", "<div align=\"left\">\\1</div>", $message); $message = preg_replace( "/\[center\](.+?)\[\/center\]/is", "<div align=\"center\">\\1</div>", $message); $message = preg_replace( "/\[right\](.+?)\[\/right\]/is", "<div align=\"right\">\\1</div>", $message); $message = preg_replace( "/\[move\](.+?)\[\/move\]/is", "<marquee>\\1</marquee>", $message); $message = preg_replace( "/\[url=(.+)\](.+)\[\/url\]/is", "<a href=\"\\1\">\\2</a>", $message); $message = preg_replace( "/(([\.a-zA-Z0-9_-]+)@([.a-zA-Z0-9_-]+)([\.a-zA-Z0-9_-]+))/", "<a href=\"mailto:\\2@\\3\\4\">\\1</a>", $message); $message = nl2br($message); return $message; } if ($_SESSION['authright'] <= 0) { if(loggedin()) { $nickname = $_SESSION['authname']; $user_id = $_SESSION['authid']; } else { $nickname = 'Gast'; $user_id = 0; } echo '<form method="POST" name="spambox">'; echo '<p align="left">ihre Nickfarbe bitte<select size="1" name="color"> <option value="'.$row['nickfarbe'].'">'.$row['nicknamefarbe'].'</option> <option value="ffffff">weiß</option> <option value="ff0000">rot</option> <option value="222222">Grau</option> <option value="0000ff">Blau</option> <option value="ffd700">Gold</option> <option value="008000">Grün</option> <option value="ff69b4">Pink</option> <option value="800000">dunkel rot</option> </select></p>'; echo ' <p align="left">ihre Textfarbe bitte<select size="1" name="color1"> <option value="'.$row['textfarbe'].'">'.$row['textfarbename'].'</option> <option value="000000">schwarz</option> <option value="ff0000">rot</option> <option value="222222">Grau</option> <option value="0000ff">Blau</option> <option value="ffd700">Gold</option> <option value="008000">Grün</option> <option value="ff69b4">Pink</option> <option value="800000">dunkel rot</option> </select></p>'; echo '<input type="hidden" name="user_id" value="'.$user_id.'" />'; echo '<input type="hidden" name="nickname" value="'.$nickname.'" '; if(loggedin()) echo 'readonly="readonly"'; echo '/>'; echo'<br>Tickertext<br><textarea style="width: 60%" "hight: 65px" cols="15" rows="2" name="ticker"></textarea><br>'; echo 'Text<br><textarea style="width: 95%" "hight: 100px" cols="15" rows="2" size="50" maxlength="50" name="spam"></textarea>'; echo '<hr>'; echo '<a align="center" onclick="switchinfo(\'sb_smilies\');return false;" href="#"><b>'.$row['smilies'].'<br></b></a>'; echo '<hr>'; echo '<script language="JavaScript" type="text/javascript" src="include/includes/js/spambox.js"></script>'; ?><script type="text/javascript"> function switchinfo(Layer_Name) { var GECKO = document.getElementById? 1:0 ; var NS = document.layers? 1:0 ; var IE = document.all? 1:0 ; if (GECKO) {document.getElementById(Layer_Name).style.display= (document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';} else if (NS) {document.layers[Layer_Name].display=(document.layers[Layer_Name].display=='block') ? 'none' : 'block';} else if (IE) {document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display=='block') ? 'none' : 'block';} } </script><?php echo '<div id="sb_smilies" style="display:none">'; echo '<a href="javascript:put_sb(\'s0. \')"><img src="include/images/spambox/smilies/s0.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s1. \')"><img src="include/images/spambox/smilies/s1.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s2. \')"><img src="include/images/spambox/smilies/s2.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s3. \')"><img src="include/images/spambox/smilies/s3.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s4. \')"><img src="include/images/spambox/smilies/s4.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s5. \')"><img src="include/images/spambox/smilies/s5.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s6. \')"><img src="include/images/spambox/smilies/s6.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s7. \')"><img src="include/images/spambox/smilies/s7.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s8. \')"><img src="include/images/spambox/smilies/s8.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s9. \')"><img src="include/images/spambox/smilies/s9.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s10 \')"><img src="include/images/spambox/smilies/s10.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s11 \')"><img src="include/images/spambox/smilies/s11.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s12 \')"><img src="include/images/spambox/smilies/s12.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s13 \')"><img src="include/images/spambox/smilies/s13.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s14 \')"><img src="include/images/spambox/smilies/s14.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s15 \')"><img src="include/images/spambox/smilies/s15.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s16 \')"><img src="include/images/spambox/smilies/s16.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s17 \')"><img src="include/images/spambox/smilies/s17.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s18 \')"><img src="include/images/spambox/smilies/s18.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s19 \')"><img src="include/images/spambox/smilies/s19.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s20 \')"><img src="include/images/spambox/smilies/s20.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s21 \')"><img src="include/images/spambox/smilies/s21.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s22 \')"><img src="include/images/spambox/smilies/s22.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s23 \')"><img src="include/images/spambox/smilies/s23.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s24 \')"><img src="include/images/spambox/smilies/s24.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s25 \')"><img src="include/images/spambox/smilies/s25.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s26 \')"><img src="include/images/spambox/smilies/s26.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s27 \')"><img src="include/images/spambox/smilies/s27.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s28 \')"><img src="include/images/spambox/smilies/s28.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s29 \')"><img src="include/images/spambox/smilies/s29.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s30 \')"><img src="include/images/spambox/smilies/s30.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s31 \')"><img src="include/images/spambox/smilies/s31.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s32 \')"><img src="include/images/spambox/smilies/s32.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s33 \')"><img src="include/images/spambox/smilies/s33.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s34 \')"><img src="include/images/spambox/smilies/s34.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s35 \')"><img src="include/images/spambox/smilies/s35.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s36 \')"><img src="include/images/spambox/smilies/s36.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s37 \')"><img src="include/images/spambox/smilies/s37.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s38 \')"><img src="include/images/spambox/smilies/s38.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s39 \')"><img src="include/images/spambox/smilies/s39.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s40 \')"><img src="include/images/spambox/smilies/s40.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s41 \')"><img src="include/images/spambox/smilies/s41.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s42 \')"><img src="include/images/spambox/smilies/s42.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s43 \')"><img src="include/images/spambox/smilies/s43.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s44 \')"><img src="include/images/spambox/smilies/s44.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s45 \')"><img src="include/images/spambox/smilies/s45.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s46 \')"><img src="include/images/spambox/smilies/s46.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s47 \')"><img src="include/images/spambox/smilies/s47.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s48 \')"><img src="include/images/spambox/smilies/s48.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s49 \')"><img src="include/images/spambox/smilies/s49.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s50 \')"><img src="include/images/spambox/smilies/s50.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s51 \')"><img src="include/images/spambox/smilies/s51.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s52 \')"><img src="include/images/spambox/smilies/s52.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s53 \')"><img src="include/images/spambox/smilies/s53.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s54 \')"><img src="include/images/spambox/smilies/s54.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s55 \')"><img src="include/images/spambox/smilies/s55.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s56 \')"><img src="include/images/spambox/smilies/s56.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s57 \')"><img src="include/images/spambox/smilies/s57.gif" border ="0"/></a> '; echo '<a href="javascript:put_sb(\'s58 \')"><img src="include/images/spambox/smilies/s58.gif" border ="0"/></a> '; echo'<br><input type="hidden" name="Bild" />'; echo '<hr>'; echo '</div>'; echo '<p align="left"><input type="submit" name="submit" value="Spammen" /></p>'; echo get_antispam ('spambox', 0); echo'<hr />'; echo '</form>'; } else { echo'Bitte einloggen um zu Spammen<br><hr>'; } if(isset($_POST['submit']) AND $_POST['submit'] == 'Spammen' AND chk_antispam ('spambox')) { if(loggedin()) { $_POST['nickname'] = $_SESSION['authname']; if($_POST['user_id'] != $_SESSION['authid']) { $break = true; } $_POST['user_id'] = $_SESSION['authid']; } else { if($_POST['user_id'] != 0) $break = true; $_POST['nickname'] = escape($_POST['nickname'],'string'); } if($_POST['color'] != '') { if(strlen($_POST['color']) != 6) { $_POST['color'] = 'ffffff'; } } $spam = strip_tags($_POST['spam']); $_POST['spam'] = escape($_POST['spam'],'string'); $_POST['nicknamefarbe'] = escape($_POST['nicknamefarbe'],'string'); $_POST['textfarbename'] = escape($_POST['textfarbename'],'string'); $_POST['ticker'] = escape($_POST['ticker'],'string'); $_POST['Bild'] = escape($_POST['Bild'],'string'); $_POST['color'] = escape($_POST['color'],'string'); $_POST['color1'] = escape($_POST['color1'],'string'); if(!empty($_POST['ticker']) or $_POST['spam']) { if($break != true) { db_query('INSERT INTO prefix_spambox VALUES( "", "'.$_POST['user_id'].'", "<br>'.$_POST['spam'].'<br>", "'.$_POST['color'].'", "'.$_POST['nickname'].'", "'.time().'", "'.$_POST['color1'].'", "'.$_POST['Bild'].'", "'.$_POST['ticker'].'" )'); } } echo 'Bitte warten<meta http-equiv="refresh" content="0; url=index.php">'; } $query = db_query('SELECT * FROM `prefix_spambox` ORDER BY time DESC LIMIT 0, '.$row['anzeige'].' '); echo '<div style="overflow:auto; height:'.$row['höhe'].';">'; while($result = db_fetch_assoc($query)) { echo '<table style="hight:200px width:100%;" background="'.$result['Bild'].'" border="0" cellpadding="0" cellspacing="0">'; echo ''; echo' <tr> <td> <b><b><b><a href="index.php?user-details-'.$result['user_id'].'"><font color="#'.$result['color'].'">'.$result['nickname'].'</a></b></b></b><br></font> <font color="#'.$result['color'].'">'.date(' d.m.Y || H:i:s' ,$result['time']).'</font> <br>'; $result['ticker'] = MessageFormat($result['ticker']); echo '<font color="#'.$result['color1'].'"><marquee direction="left" scrollamount="5">'.$result['ticker'].'</marquee></font>'; $result['text'] = MessageFormat($result['text']); $result['text'] = preg_replace( '/([^\s]{'.$row['wortlänge'].'})(?=[^\s])/', "$1\n",$result['text']); if($result['color'] != '') echo'<font color="#'.$result['color1'].'">'.$result['text'].'</font>'; else echo $result['text']; echo' <hr /></td></tr> '; echo '</table>'; } } echo'</div>'; echo'<a href="?spamboxarchiv"><u><i><b><font size="+1">zum Archiv</font></b></i></u></a>'; ?>
verwendete ilchClan Version: 1.1
nrw1.nr.funpic.de
Zuletzt modifiziert von Smoky am 14.07.2009 - 23:05:11