######################################################################### # News-Script by sYx # # sYx_news_v1.0 # # All rights by sYx (http://www.syx-scripts.tk) # #-----------------------------------------------------------------------# # Info: info@syx.tk # # I-Net: http://www.syx-scripts.tk # # # # Dieses Script ist Freeware # # Dateien dürfen NUR auf sy-scriptsx.tk zum Download angeboten werden.# ######################################################################### // Dieses Copyright darf NICHT entfernt werden! include('head.php'); include('config.php'); echo"
 
"; // 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( 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 | ||
|
"; if( $action == "kommentare" ) { $commentz = mysql_query("SELECT * FROM syx_news_comments WHERE zu='$zu'"); while( $row = mysql_fetch_object($commentz)) { $row->text = ereg_replace(":)", "", $row->text ); $row->text = ereg_replace(":grrr:", "", $row->text ); $row->text = ereg_replace(":laugh:", "", $row->text ); $row->text = ereg_replace(":eek:", "", $row->text ); $row->text = ereg_replace(":frage:", "", $row->text ); $row->text = ereg_replace(":cool:", "", $row->text ); $row->text = ereg_replace(":tongue:", "", $row->text ); $row->text = ereg_replace(":D", "", $row->text ); $row->text = ereg_replace(":cry:", "", $row->text ); $row->text = ereg_replace(":dead:", "", $row->text ); $row->text = ereg_replace(":embarrassed:", "", $row->text ); $row->text = ereg_replace(";)", "", $row->text ); $row->text = ereg_replace(":no:", "", $row->text ); $row->text = ereg_replace(":yes:", "", $row->text ); $row->text = ereg_replace(":gr:", "", $row->text ); $row->text = ereg_replace(":rolleyes:", "", $row->text ); $row->text = ereg_replace(":none:", "", $row->text ); $row->text = ereg_replace(":winkgrin:", "", $row->text ); $row->text = nl2br($row->text); echo"
$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"