Project

General

Profile

1
//:Create information on when your site was last updated.
2
//:Create information on when your site was last updated. Any page update counts.
3
$sRetval = '';
4
if (PAGE_ID > 0) {
5
    $sql = 'SELECT MAX(`modified_when`) `modified` '
6
         . 'FROM `'.WbDatabase::getInstance()->TablePrefix.'pages`';
7
	$iModified = WbDatabase::getInstance()->getOne($sql);
8
    $sRetval = "This site was last modified on ".date("d/m/Y",$iModified). " at ".date("H:i",$iModified).".";
9
}
10
return $sRetval;
(11-11/22)