Last activity on the homepage

Hi,

Here is my new problem :

what is the php code to display "last activity" on the homepage ? (elgg 1.7.4)

thanks