<?php
/*=========================================================*\
|| ####################################################### ||
|| # Last PostZ for Wordpress # ||
|| # --------------------------------------------------- # ||
|| # Copyright unkn0wn.co.sr - [email protected] # ||
|| # ---------------- Created by Snake --------------- # ||
|| # Unkn0w Security Researcher # ||
|| ####################################################### ||
\*=========================================================*/
include 'wp-config.php';
mysql_connect("$DB_HOST", "$DB_USER", "$DB_PASSWORD") or die("Could not connect: " . mysql_error());
mysql_select_db("$DB_NAME");
$result = mysql_query("SELECT guid, post_title, post_date ,ID FROM wp_posts WHERE post_status='publish' ORDER BY post_date desc limit 6 ");
echo "<center>Lasted PostZ</center>";
echo "<meta http-equiv=Content-Type content=text/html; charset=utf-8><marquee scrollamount='3' onmouseover=stop() onmouseout=start() scrolldelay='80' direction='up' style='color: #008000'><center>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
printf("<a href='%s'>%s</a><p>",$row['guid'], $row["post_title"], $row["post_date"], $row["ID"]);
if ( $row["post_title"]==""){
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
printf("<a href='%s'>Post#%s</a><p>",$row['guid'], $row["ID"]);
}}}
echo "</center></marquee>";
mysql_free_result($result);
?>