wb-archiv283/trunk/wb/modules/droplets/example/ModifiedWhen.php @ 1520
1 |
//:Displays the last modification time of the current page
|
---|---|
2 |
//:Use [[ModifiedWhen]]
|
3 |
global $database, $wb; |
4 |
if (PAGE_ID>0) { |
5 |
$query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID); |
6 |
$mod_details=$query->fetchRow(); |
7 |
return "This page was last modified on ".date("d/m/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0])."."; |
8 |
}
|