Modification of the SiteModified Droplet, SiteModifiedX will display and link to the last [count] number of pages.
global $database, $wb;
$links="";
if(!isset($x)){$x=10;};
$links="Last $x Modified Pages:<ul>";
if (PAGE_ID>0) {
$query=$database->query("SELECT modified_when, link,page_title FROM ".TABLE_PREFIX."pages where visibility='public' order by modified_when desc limit $x");
while($mod_details=$query->fetchRow()){
$links=$links." <li><a href='".PAGES_DIRECTORY.$mod_details[1].PAGE_EXTENSION."'>".$mod_details[2]." ".date("m/d/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0])."</a></li>";
}
$links=$links."</ul>";
return $links;
}
Without the x parameter the Droplet will show the 10 last modified pages.