Revision [19584]
This is an old revision of LatestAction made by JavierWilson on 2008-02-22 15:33:02.
Latest Action
See also:
- Documentation: LatestActionInfo
ctions/latest.php
<?php
if(!defined('REVISION_DATE_FORMAT')) define('REVISION_DATE_FORMAT', 'd M Y');
$max = 5;
$readable = 0;
$j = 0;
if ($pages = $this->LoadRecentlyChanged()) {
foreach ($pages as $i => $page) {
if (($j <= $max) && $this->HasAccess('read', $page['tag'])) {
$readable++;
list($day, $time) = explode(' ', $page['time']);
$dateformatted = date(REVISION_DATE_FORMAT, strtotime($day));
echo ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
$j++;
}
}
}
?>
if(!defined('REVISION_DATE_FORMAT')) define('REVISION_DATE_FORMAT', 'd M Y');
$max = 5;
$readable = 0;
$j = 0;
if ($pages = $this->LoadRecentlyChanged()) {
foreach ($pages as $i => $page) {
if (($j <= $max) && $this->HasAccess('read', $page['tag'])) {
$readable++;
list($day, $time) = explode(' ', $page['time']);
$dateformatted = date(REVISION_DATE_FORMAT, strtotime($day));
echo ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
$j++;
}
}
}
?>