function redirect2($url) { @MYSQL_CLOSE(); echo ' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>..::LCS::..</title <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="refresh" content="0; url='.$url.'"> </head> <body> </body> </html>'; exit(); }
<?php header('Content-type: application/xml'); @($con = mysql_connect("mysql.liberty.li", "li000089", "vr2u39")) or die("cannot connect to MySQL"); echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://purl.org/rss/1.0/\" xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\" xmlns:taxo=\"http://purl.org/rss/1.0/modules/taxonomy/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:syn=\"http://purl.org/rss/1.0/modules/syndication/\" xmlns:admin=\"http://webns.net/mvcb/\" xmlns:feedburner=\"http://rssnamespace.org/feedburner/ext/1.0\">\n<channel rdf:about=\"http://rahim.cc/\">\n<title>http://rahim.cc</title>\n<link>http://rahim.cc</link>\n<description>Persönliche Seite von Rahim Taghizadegan</description>\n <dc:language>de</dc:language>\n <dc:rights>Copyright: Rahim Taghizadegan</dc:rights>\n <dc:date>" . strftime("%Y-%m-%dT%H:%M:%SZ", strtotime(date("Y-m-d H:j:s"))) . "</dc:date>\n <dc:publisher>Rahim Taghizadegan</dc:publisher>\n <dc:creator>rt@wertewirtschaft.org</dc:creator>\n <dc:subject>Wertewirtschaft</dc:subject>\n <syn:updatePeriod>daily</syn:updatePeriod>\n <syn:updateFrequency>1</syn:updateFrequency>\n\n <syn:updateBase>1970-01-01T00:00+00:00</syn:updateBase>\n <items>\n <rdf:Seq>"; $sql = "SELECT * from li000089_rahim.blog order by datum desc, id desc limit 10"; $result = mysql_query($sql); while ($entry = mysql_fetch_array($result)) { echo "<rdf:li rdf:resource=\"http://rahim.cc/?id={$entry['id']}\" />"; } echo "</rdf:Seq>\n </items>\n <textinput rdf:resource=\"http://rahim.cc/\" />\n\n </channel>"; $sql = "SELECT * from li000089_rahim.blog order by datum desc, id desc limit 10"; $result = mysql_query($sql); while ($entry = mysql_fetch_array($result)) { echo "<item rdf:about=\"http://rahim.cc/?id={$entry['id']}\">\n\n <title>" . htmlspecialchars($entry[titel]) . "</title>\n <link>http://rahim.cc/?id={$entry['id']}</link>\n <description>" . ereg_replace("“", "", ereg_replace("„", "", htmlspecialchars(strip_tags(substr($entry[text], 0, 1000))))) . "</description>\n <dc:creator>Rahim Taghizadegan</dc:creator>\n\n <dc:date>" . strftime("%Y-%m-%dT%H:%M:%SZ", strtotime($entry[datum])) . "</dc:date>\n\n <feedburner:origLink>http://rahim.cc/?id={$entry['id']}</feedburner:origLink>\n </item>"; } echo "</rdf:RDF>"; $db_close = @MYSQL_CLOSE($con);
} echo "\r\n\t</table>"; mysql_free_result($result1); } $query2 = "SELECT * FROM setforumsmsgs WHERE topicid='{$topicid}' AND setid='{$setid}' ORDER BY messageid ASC"; $result2 = mysql_query($query2) or die("Could not execute the query!"); if ($result2) { echo "\r\n\t<table border=0 class=f width=95% align=center cellspacing=1 cellpadding=1>"; while ($r2 = mysql_fetch_array($result2)) { extract($r2); echo "\r\n\t\t<tr>\r\n\t\t\t<td bgcolor={$color3} width=15% align=left><b class=forum>{$name}</b></td>\r\n\t\t\t<td bgcolor={$color3} width=80% align=left><b class=forum>{$topic}</b></td>\r\n\t\t\t<td bgcolor={$color3}><strong class=white><a href=sl-delposts.php?delpost=true&mid={$messageid}&tid={$topicid}><font size=-2> Delete</a></strong></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td bgcolor={$color2} valign=top colspan=4><pre>{$datestamp}</pre>{$message}<br><br></td>\r\n\t\t</tr>"; } echo "\r\n\t</table><br><br>"; mysql_free_result($result2); } MYSQL_CLOSE(); ?> <form action="sl-input.posts.php" method="post" name="reply"> <input type="hidden" name="topicid" value="<?php echo $topicid; ?> "> <table border=0 class=f width=<?php echo $tablewidth; ?> cellpadding=0 cellspacing=0 align="center" bgcolor=<?php echo $color2; ?> > <tr>