$seitentitel News

 

"; // Datenbank Verbindung -.- $zu = $HTTP_GET_VARS[zu]; $connect = @mysql_connect("$host", "$dbuser", "$dbpw") or die ("Keine Verbindung moeglich"); @mysql_select_db("$db") or die ("Die Datenbank existiert nicht"); echo"
"; if( $action == "kommentare") { $news = mysql_query("SELECT * FROM `syx_news_news` WHERE id='$zu' ORDER BY id DESC"); } else { $news = mysql_query("SELECT * FROM `syx_news_news` ORDER BY id DESC"); } while( $row = mysql_fetch_object($news) ) { $row->text = ereg_replace(":)", "\"img\"", $row->text ); $row->text = ereg_replace(":grrr:", "\"img\"", $row->text ); $row->text = ereg_replace(":laugh:", "\"img\"", $row->text ); $row->text = ereg_replace(":eek:", "\"img\"", $row->text ); $row->text = ereg_replace(":frage:", "\"img\"", $row->text ); $row->text = ereg_replace(":cool:", "\"img\"", $row->text ); $row->text = ereg_replace(":tongue:", "\"img\"", $row->text ); $row->text = ereg_replace(":D", "\"img\"", $row->text ); $row->text = ereg_replace(":cry:", "\"img\"", $row->text ); $row->text = ereg_replace(":dead:", "\"img\"", $row->text ); $row->text = ereg_replace(":embarrassed:", "\"img\"", $row->text ); $row->text = ereg_replace(";)", "\"img\"", $row->text ); $row->text = ereg_replace(":no:", "\"img\"", $row->text ); $row->text = ereg_replace(":yes:", "\"img\"", $row->text ); $row->text = ereg_replace(":gr:", "\"img\"", $row->text ); $row->text = ereg_replace(":rolleyes:", "\"img\"", $row->text ); $row->text = ereg_replace(":none:", "\"img\"", $row->text ); $row->text = ereg_replace(":winkgrin:", "\"img\"", $row->text ); $row->text = nl2br($row->text); echo"  

"; } echo"

 

"; if( $action == "kommentare" ) { $commentz = mysql_query("SELECT * FROM syx_news_comments WHERE zu='$zu'"); while( $row = mysql_fetch_object($commentz)) { $row->text = ereg_replace(":)", "\"img\"", $row->text ); $row->text = ereg_replace(":grrr:", "\"img\"", $row->text ); $row->text = ereg_replace(":laugh:", "\"img\"", $row->text ); $row->text = ereg_replace(":eek:", "\"img\"", $row->text ); $row->text = ereg_replace(":frage:", "\"img\"", $row->text ); $row->text = ereg_replace(":cool:", "\"img\"", $row->text ); $row->text = ereg_replace(":tongue:", "\"img\"", $row->text ); $row->text = ereg_replace(":D", "\"img\"", $row->text ); $row->text = ereg_replace(":cry:", "\"img\"", $row->text ); $row->text = ereg_replace(":dead:", "\"img\"", $row->text ); $row->text = ereg_replace(":embarrassed:", "\"img\"", $row->text ); $row->text = ereg_replace(";)", "\"img\"", $row->text ); $row->text = ereg_replace(":no:", "\"img\"", $row->text ); $row->text = ereg_replace(":yes:", "\"img\"", $row->text ); $row->text = ereg_replace(":gr:", "\"img\"", $row->text ); $row->text = ereg_replace(":rolleyes:", "\"img\"", $row->text ); $row->text = ereg_replace(":none:", "\"img\"", $row->text ); $row->text = ereg_replace(":winkgrin:", "\"img\"", $row->text ); $row->text = nl2br($row->text); echo"
$row->titel $row->date
"; if( file_exists("kategorien/$row->id.jpg") ) { echo""; } else { echo""; } echo"$row->text
"; $id = $row->id; echo mysql_num_rows(mysql_query("SELECT * FROM syx_news_comments WHERE zu='$id'")); echo" Kommentare
Link: "; if( $row->link != "") { echo"$row->link"; }else { echo"N/A"; } echo" Autor: $row->autor
$row->autor schrieb am $row->date
$row->text

"; } if( $do == "send" ) { $autor = $HTTP_POST_VARS[autor]; $text = $HTTP_POST_VARS[text]; $date = date("d.m.Y - H:i"); if( $autor != "" AND $text != "" ) { $commm = mysql_query("INSERT INTO `syx_news_comments` (autor, text, date, zu) VALUES ('$autor', '$text', '$date', '$zu')"); echo"Danke, der Kommentar wurde eingetragen!
Um ihn zu sehen, klicke hier"; } else{ echo"fehler"; } } echo"

 

"; echo"
Autor:
Kommentar:
  \"img\" \"img\" \"img\" \"img\" \"img\" \"img\" \"img\" \"img\" \"img\" \"img\" \"img\"
\"img\" \"img\" \"img\" \"img\" \"img\" \"img\"
 

 

«Zurück "; } echo"

 

Copyright © 2005 by sYx | syx.funpic.de

"; echo"
"; include('foot.php'); ?>